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.IOExceptionpublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOExceptionpublic int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOExceptionpublic long skip(long n)
throws java.io.IOException
skip in class java.io.InputStreamjava.io.IOExceptionpublic java.io.Reader inputStreamReader()
throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingExceptionpublic java.io.Reader inputStreamReader(java.lang.String defaultCharset)
throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException