public class JsonStream extends FilterInputStream
This class is not thread safe.
in| Constructor and Description |
|---|
JsonStream(InputStream in)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Charset |
getEncoding() |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
available, close, markpublic JsonStream(InputStream in) throws IOException
in - input stream must contain a JSON contentIOException - if an error occurs during the determination of the encodingCharConversionException - if the UCS4 endianess 2143 or 3412 is usedIllegalArgumentException - if the input stream is nullpublic Charset getEncoding()
public int read()
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class FilterInputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class FilterInputStreamIOExceptionpublic void reset()
throws IOException
reset in class FilterInputStreamIOExceptionpublic boolean markSupported()
markSupported in class FilterInputStreamApache Camel