public class UnicodeInputStream extends InputStream
| Modifier and Type | Field and Description |
|---|---|
static byte[] |
BOM_UTF16_BE |
static byte[] |
BOM_UTF16_LE |
static byte[] |
BOM_UTF32_BE |
static byte[] |
BOM_UTF32_LE |
static byte[] |
BOM_UTF8 |
static int |
MAX_BOM_SIZE |
| Constructor and Description |
|---|
UnicodeInputStream(InputStream in,
String targetEncoding) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getBOMSize() |
String |
getDetectedEncoding() |
int |
read() |
available, mark, markSupported, read, read, reset, skippublic static final int MAX_BOM_SIZE
public static final byte[] BOM_UTF8
public static final byte[] BOM_UTF16_BE
public static final byte[] BOM_UTF16_LE
public static final byte[] BOM_UTF32_BE
public static final byte[] BOM_UTF32_LE
public UnicodeInputStream(InputStream in, String targetEncoding)
public String getDetectedEncoding()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int getBOMSize()
Copyright © 2016 jetbrick. All rights reserved.