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, mark
public 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 null
public Charset getEncoding()
public int read() throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] b) throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class FilterInputStream
IOException
public long skip(long n) throws IOException
skip
in class FilterInputStream
IOException
public void reset() throws IOException
reset
in class FilterInputStream
IOException
public boolean markSupported()
markSupported
in class FilterInputStream
Apache Camel