Changeset 10182 in josm for trunk/src/org
- Timestamp:
- 2016-05-11T04:51:06+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/UTFInputStreamReader.java
r9231 r10182 9 9 10 10 /** 11 * Detects the different UTF encodings from byte order mark 11 * Detects the different UTF encodings from byte order mark. 12 * @since 3372 12 13 */ 13 14 public final class UTFInputStreamReader extends InputStreamReader { 15 16 private UTFInputStreamReader(InputStream in, String cs) throws UnsupportedEncodingException { 17 super(in, cs); 18 } 14 19 15 20 /** … … 64 69 65 70 if (encoding == null) { 66 return new UTFInputStreamReader(pushbackStream); 67 } else { 68 return new UTFInputStreamReader(pushbackStream, encoding); 71 encoding = "UTF-8"; 69 72 } 70 } 71 72 private UTFInputStreamReader(InputStream in) { 73 super(in); 74 } 75 76 private UTFInputStreamReader(InputStream in, String cs) throws UnsupportedEncodingException { 77 super(in, cs); 73 return new UTFInputStreamReader(pushbackStream, encoding); 78 74 } 79 75 }
Note:
See TracChangeset
for help on using the changeset viewer.