modnlp.capte
public static class UnicodeUtil.UnicodeInputStream extends java.io.InputStream
Modifier and Type | Field and Description |
---|---|
static int |
BOM_SIZE |
Constructor and Description |
---|
UnicodeUtil.UnicodeInputStream(java.io.InputStream in,
java.lang.String defaultEnc) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
getBOMOffset() |
java.lang.String |
getDefaultEncoding() |
java.lang.String |
getEncoding() |
protected void |
init()
Read-ahead four bytes and check for BOM marks.
|
int |
read() |
public static final int BOM_SIZE
public UnicodeUtil.UnicodeInputStream(java.io.InputStream in, java.lang.String defaultEnc)
public java.lang.String getDefaultEncoding()
public java.lang.String getEncoding()
protected void init() throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.InputStream
java.io.IOException
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int getBOMOffset()