AvroReadContext implementations.
| Modifier and Type | Field and Description |
|---|---|
| protected ApacheCodecRecycler | |
| protected boolean | _bufferRecyclable
Flag that indicates whether the input buffer is recycable (and needs to be returned to recycler once we are done) or not. |
| protected BinaryDecoder | _decoder
Actual decoder in use, possible same as |
| protected byte[] | _inputBuffer
Current buffer from which data is read; generally data is read into buffer from input source, but in some cases pre-loaded buffer is handed to the parser. |
| protected InputStream | |
| protected String | _textValue
We need to keep track of text values. |
| protected static final DecoderFactory |
| Access | Constructor and Description |
|---|---|
| public | ApacheAvroParserImpl(IOContext ctxt, int parserFeatures, int avroFeatures, ApacheCodecRecycler apacheCodecRecycler, ObjectCodec codec, InputStream in)
|
| public | ApacheAvroParserImpl(IOContext ctxt, int parserFeatures, int avroFeatures, ApacheCodecRecycler apacheCodecRecycler, ObjectCodec codec, byte[] buffer, int offset, int len)
|
| _apacheCodecRecycler | back to summary |
|---|---|
protected ApacheCodecRecycler _apacheCodecRecycler
| |
| _bufferRecyclable | back to summary |
|---|---|
| protected boolean _bufferRecyclable Flag that indicates whether the input buffer is recycable (and needs to be returned to recycler once we are done) or not. If it is not, it also means that parser can NOT modify underlying buffer. | |
| _decoder | back to summary |
|---|---|
| protected BinaryDecoder _decoder Actual decoder in use, possible same as | |
| _inputBuffer | back to summary |
|---|---|
| protected byte[] _inputBuffer Current buffer from which data is read; generally data is read into buffer from input source, but in some cases pre-loaded buffer is handed to the parser. | |
| _inputStream | back to summary |
|---|---|
| protected InputStream _inputStream | |
| _textValue | back to summary |
|---|---|
| protected String _textValue We need to keep track of text values. | |
| DECODER_FACTORY | back to summary |
|---|---|
protected static final DecoderFactory DECODER_FACTORY
| |
| ApacheAvroParserImpl | back to summary |
|---|---|
| public ApacheAvroParserImpl(IOContext ctxt, int parserFeatures, int avroFeatures, ApacheCodecRecycler apacheCodecRecycler, ObjectCodec codec, InputStream in) | |
| ApacheAvroParserImpl | back to summary |
|---|---|
| public ApacheAvroParserImpl(IOContext ctxt, int parserFeatures, int avroFeatures, ApacheCodecRecycler apacheCodecRecycler, ObjectCodec codec, byte[] buffer, int offset, int len) | |
| _closeInput | back to summary |
|---|---|
| protected void _closeInput() throws IOException Implements abstract com.
| |
| _releaseBuffers | back to summary |
|---|---|
| protected void _releaseBuffers() throws IOException Overrides com. Doc from com. Method called to release internal buffers owned by the base
reader. This may be called along with
| |
| checkInputEnd | back to summary |
|---|---|
| public boolean checkInputEnd() throws IOException Implements abstract com.
| |
| decodeArrayNext | back to summary |
|---|---|
| public long decodeArrayNext() throws IOException Implements abstract com.
| |
| decodeArrayStart | back to summary |
|---|---|
| public long decodeArrayStart() throws IOException Implements abstract com.
| |
| decodeBoolean | back to summary |
|---|---|
| public JsonToken decodeBoolean() throws IOException Implements abstract com.
| |
| decodeBytes | back to summary |
|---|---|
| public JsonToken decodeBytes() throws IOException Implements abstract com.
| |
| decodeDouble | back to summary |
|---|---|
| public JsonToken decodeDouble() throws IOException Implements abstract com.
| |
| decodeEnum | back to summary |
|---|---|
| public int decodeEnum() throws IOException Implements abstract com.
| |
| decodeFixed | back to summary |
|---|---|
| public JsonToken decodeFixed(int size) throws IOException Implements abstract com.
| |
| decodeFloat | back to summary |
|---|---|
| public JsonToken decodeFloat() throws IOException Implements abstract com.
| |
| decodeIndex | back to summary |
|---|---|
| public int decodeIndex() throws IOException Implements abstract com.
| |
| decodeInt | back to summary |
|---|---|
| public int decodeInt() throws IOException Implements abstract com.
| |
| decodeIntToken | back to summary |
|---|---|
| public JsonToken decodeIntToken() throws IOException Implements abstract com.
| |
| decodeLong | back to summary |
|---|---|
| public long decodeLong() throws IOException Implements abstract com.
| |
| decodeLongToken | back to summary |
|---|---|
| public JsonToken decodeLongToken() throws IOException Implements abstract com.
| |
| decodeMapKey | back to summary |
|---|---|
| public String decodeMapKey() throws IOException Implements abstract com.
| |
| decodeMapNext | back to summary |
|---|---|
| public long decodeMapNext() throws IOException Implements abstract com.
| |
| decodeMapStart | back to summary |
|---|---|
| public long decodeMapStart() throws IOException Implements abstract com.
| |
| decodeString | back to summary |
|---|---|
| public void decodeString() throws IOException Implements abstract com.
| |
| decodeStringToken | back to summary |
|---|---|
| public JsonToken decodeStringToken() throws IOException Implements abstract com.
| |
| getInputSource | back to summary |
|---|---|
| public Object getInputSource() Implements abstract com. Doc from com. Method that can be used to get access to object that is used
to access input being parsed; this is usually either
In general use of this accessor should be considered as "last effort", i.e. only used if no other mechanism is applicable. | |
| getText | back to summary |
|---|---|
| public String getText() throws IOException Implements abstract com. Doc from com. Method for accessing textual representation of the current token;
if no current token (before first call to
| |
| getText | back to summary |
|---|---|
| public int getText(Writer writer) throws IOException Implements abstract com. Doc from com. Method to read the textual representation of the current token in chunks and pass it to the given Writer. Conceptually same as calling: writer.write(parser.getText());but should typically be more efficient as longer content does need to be combined into a single String to return, and write
can occur directly from intermediate buffers Jackson uses.Note textual content will still be buffered (usually
using
| |
| hasTextCharacters | back to summary |
|---|---|
| public boolean hasTextCharacters() Implements abstract com. Doc from com. Method that can be used to determine whether calling of
Default implementation simply returns false since only actual implementation class has knowledge of its internal buffering state. Implementations are strongly encouraged to properly override this method, to allow efficient copying of content by other code.
| |
| nextTextValue | back to summary |
|---|---|
| public String nextTextValue() throws IOException Implements abstract com. Doc from com. Method that fetches next token (as if calling return (nextToken() == JsonToken.VALUE_STRING) ? getText() : null;but may be faster for parser to process, and can therefore be used if caller expects to get a String value next from input.
| |
| setString | back to summary |
|---|---|
| protected JsonToken setString(String str) Implements abstract com.
| |
| skipArray | back to summary |
|---|---|
| public long skipArray() throws IOException Implements abstract com.
| |
| skipBoolean | back to summary |
|---|---|
| public void skipBoolean() throws IOException Implements abstract com.
| |
| skipBytes | back to summary |
|---|---|
| public void skipBytes() throws IOException Implements abstract com.
| |
| skipDouble | back to summary |
|---|---|
| public void skipDouble() throws IOException Implements abstract com.
| |
| skipFixed | back to summary |
|---|---|
| public void skipFixed(int size) throws IOException Implements abstract com.
| |
| skipFloat | back to summary |
|---|---|
| public void skipFloat() throws IOException Implements abstract com.
| |
| skipInt | back to summary |
|---|---|
| public void skipInt() throws IOException Implements abstract com.
| |
| skipLong | back to summary |
|---|---|
| public void skipLong() throws IOException Implements abstract com.
| |
| skipMap | back to summary |
|---|---|
| public long skipMap() throws IOException Implements abstract com.
| |
| skipString | back to summary |
|---|---|
| public void skipString() throws IOException Implements abstract com.
| |