Class UnicodeUtil.UnicodeInputStream
java.lang.Object
java.io.InputStream
com.inductiveautomation.ignition.common.util.UnicodeUtil.UnicodeInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
- UnicodeUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
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
-
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()
-