public class UnicodeInputStream extends InputStream
| Constructor and Description |
|---|
UnicodeInputStream(InputStream in,
String defaultEnc) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
String |
getDefaultEncoding() |
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) |
mark, markSupported, read, read, reset, skippublic UnicodeInputStream(InputStream in, String defaultEnc)
public boolean isBOMSkipped()
public void setSkipBOM(boolean b)
public String getDefaultEncoding()
public String getEncoding()
protected void init()
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionCopyright © 2017 SAP SE. All Rights Reserved.