eu.vexpro.editor.util
Class UnicodeUtil.UnicodeInputStream
java.lang.Object
java.io.InputStream
eu.vexpro.editor.util.UnicodeUtil.UnicodeInputStream
- All Implemented Interfaces:
- java.io.Closeable
- Enclosing class:
- UnicodeUtil
public static class UnicodeUtil.UnicodeInputStream
- extends java.io.InputStream
Methods inherited from class java.io.InputStream |
available, mark, markSupported, read, read, reset, skip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BOM_SIZE
public static final int BOM_SIZE
- See Also:
- Constant Field Values
UnicodeUtil.UnicodeInputStream
public UnicodeUtil.UnicodeInputStream(java.io.InputStream in,
java.lang.String defaultEnc)
getDefaultEncoding
public java.lang.String getDefaultEncoding()
getEncoding
public java.lang.String getEncoding()
init
protected void init()
throws java.io.IOException
- Read-ahead four bytes and check for BOM marks. Extra bytes are unread
back to the stream, only BOM bytes are skipped.
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Specified by:
close
in interface java.io.Closeable
- Overrides:
close
in class java.io.InputStream
- Throws:
java.io.IOException
read
public int read()
throws java.io.IOException
- Specified by:
read
in class java.io.InputStream
- Throws:
java.io.IOException
getBOMOffset
public int getBOMOffset()