public class RpcUnicodeInputStream
extends java.io.InputStream
EF BB BF = UTF-8 BOM FF FE = UTF-16, little-endian BOM FE FF = UTF-16, big-endian BOM FF FE 00 00 = UTF-32, little-endian BOM 00 00 FE FF = UTF-32, big-endian BOM
| Modifier and Type | Class and Description |
|---|---|
static class |
RpcUnicodeInputStream.BOM
Types of Unicode BOMs.
|
| Constructor and Description |
|---|
RpcUnicodeInputStream(java.io.InputStream inputStream)
Constructs a new RpcUnicodeInputStream that wraps the InputStream.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
RpcUnicodeInputStream.BOM |
getBOM()
Returns the BOM found in the InputStream.
|
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
RpcUnicodeInputStream |
skipBOM()
Skips the BOM found in the InputStream.
|
public RpcUnicodeInputStream(java.io.InputStream inputStream)
throws java.lang.NullPointerException,
java.io.IOException
inputStream - inputStreamjava.lang.NullPointerException - on errorjava.io.IOException - on errorpublic final RpcUnicodeInputStream.BOM getBOM()
public final RpcUnicodeInputStream skipBOM() throws java.io.IOException
java.io.IOException - on errorpublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b)
throws java.io.IOException,
java.lang.NullPointerException
read in class java.io.InputStreamjava.io.IOExceptionjava.lang.NullPointerExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException,
java.lang.NullPointerException
read in class java.io.InputStreamjava.io.IOExceptionjava.lang.NullPointerExceptionpublic long skip(long n)
throws java.io.IOException
skip in class java.io.InputStreamjava.io.IOExceptionpublic int available()
throws java.io.IOException
available 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 void mark(int readlimit)
mark in class java.io.InputStreampublic void reset()
throws java.io.IOException
reset in class java.io.InputStreamjava.io.IOExceptionpublic boolean markSupported()
markSupported in class java.io.InputStream