public class RpcUnicodeInputStream extends 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(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(InputStream inputStream) throws NullPointerException, IOException
NullPointerExceptionIOExceptionpublic final RpcUnicodeInputStream.BOM getBOM()
public final RpcUnicodeInputStream skipBOM() throws IOException
IOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b)
throws IOException,
NullPointerException
read in class InputStreamIOExceptionNullPointerExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException,
NullPointerException
read in class InputStreamIOExceptionNullPointerExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic void mark(int readlimit)
mark in class InputStreampublic void reset()
throws IOException
reset in class InputStreamIOExceptionpublic boolean markSupported()
markSupported in class InputStreamCopyright © 2017 Perforce Software. All Rights Reserved.