|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.fasterxml.jackson.core.format.InputAccessor.Std
public static class InputAccessor.Std
Basic implementation that reads data from given
InputStream and buffers it as necessary.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.fasterxml.jackson.core.format.InputAccessor |
|---|
InputAccessor.Std |
| Field Summary | |
|---|---|
protected byte[] |
_buffer
|
protected int |
_bufferedAmount
Number of bytes in _buffer that are valid
buffered content. |
protected InputStream |
_in
|
protected int |
_ptr
Pointer to next available buffered byte in _buffer. |
| Constructor Summary | |
|---|---|
InputAccessor.Std(byte[] inputDocument)
Constructor used when the full input (or at least enough leading bytes of full input) is available. |
|
InputAccessor.Std(InputStream in,
byte[] buffer)
Constructor used when content to check is available via input stream and must be read. |
|
| Method Summary | |
|---|---|
DataFormatMatcher |
createMatcher(JsonFactory match,
MatchStrength matchStrength)
|
boolean |
hasMoreBytes()
Method to call to check if more input is available. |
byte |
nextByte()
Returns next byte available, if any; if no more bytes are available, will throw EOFException. |
void |
reset()
Method that can be called to reset accessor to read from beginning of input. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final InputStream _in
protected final byte[] _buffer
protected int _bufferedAmount
_buffer that are valid
buffered content.
protected int _ptr
_buffer.
| Constructor Detail |
|---|
public InputAccessor.Std(InputStream in,
byte[] buffer)
public InputAccessor.Std(byte[] inputDocument)
| Method Detail |
|---|
public boolean hasMoreBytes()
throws IOException
InputAccessorIOException may get thrown.
hasMoreBytes in interface InputAccessorIOException
public byte nextByte()
throws IOException
InputAccessorEOFException.
nextByte in interface InputAccessorIOExceptionpublic void reset()
InputAccessor
reset in interface InputAccessor
public DataFormatMatcher createMatcher(JsonFactory match,
MatchStrength matchStrength)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||