public class UnicodeInputStream
extends java.io.InputStream
| Constructor and Description |
|---|
UnicodeInputStream(java.io.InputStream in,
java.lang.String defaultEnc) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
java.lang.String |
getDefaultEncoding() |
java.lang.String |
getEncoding()
Read encoding based on BOM mark and skip bytes.
|
protected void |
init()
Read-ahead four bytes and check for BOM marks.
|
boolean |
isBOMSkipped() |
int |
read() |
void |
setSkipBOM(boolean b) |
public UnicodeInputStream(java.io.InputStream in,
java.lang.String defaultEnc)
public boolean isBOMSkipped()
public void setSkipBOM(boolean b)
public java.lang.String getDefaultEncoding()
public java.lang.String getEncoding()
protected void init()
throws java.io.IOException
java.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 read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOExceptionCopyright © 2018 SAP SE. All Rights Reserved.