public final class BomDetectingInputStream
extends java.io.InputStream
Modifier and Type | Field and Description |
---|---|
java.lang.String |
byteOrderMark
Holds the byte-order mark, if present.
|
Constructor and Description |
---|
BomDetectingInputStream(java.io.InputStream in) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
java.io.Reader |
inputStreamReader() |
java.io.Reader |
inputStreamReader(java.lang.String defaultCharset) |
int |
read() |
long |
skip(long n) |
public final java.lang.String byteOrderMark
public BomDetectingInputStream(java.io.InputStream in) throws java.io.IOException
in
- the wrapped input streamjava.io.IOException
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.InputStream
java.io.IOException
public int available() throws java.io.IOException
available
in class java.io.InputStream
java.io.IOException
public long skip(long n) throws java.io.IOException
skip
in class java.io.InputStream
java.io.IOException
public java.io.Reader inputStreamReader() throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public java.io.Reader inputStreamReader(java.lang.String defaultCharset) throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException