java.lang.Object
java.io.InputStream
io.sf.jclf.util.charset.UTF8BOMTranslator.UnicodeInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
- UTF8BOMTranslator
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Field Details
-
BOM_SIZE
public static final int BOM_SIZE- See Also:
-
-
Constructor Details
-
UnicodeInputStream
-
-
Method Details
-
getDefaultEncoding
-
getEncoding
-
init
Read-ahead four bytes and check for BOM marks. Extra bytes are unread back to the stream, only BOM bytes are skipped.- Throws:
IOException
- if an I/O error occurs.
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
getBOMOffset
public int getBOMOffset()
-