| Modifier and Type | Field and Description |
|---|---|
| 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 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 | |
| public static final int[] | sUtf8UnitLengths
Additionally we can combine UTF-8 decoding info into similar data table. |
| Access | Constructor and Description |
|---|---|
| public | JacksonAvroParserImpl(ObjectReadContext readCtxt, IOContext ioCtxt, int parserFeatures, int avroFeatures, AvroSchema schema, InputStream in)
|
| public | JacksonAvroParserImpl(ObjectReadContext readCtxt, IOContext ioCtxt, int parserFeatures, int avroFeatures, AvroSchema schema, byte[] data, int offset, int len)
|
| Modifier and Type | Method and Description |
|---|---|
| protected void | _closeInput()
Implements abstract tools. Abstract method for sub-classes to implement; to be called by
|
| private final long | |
| public int | |
| private long | |
| public long | |
| private long | |
| private final int | |
| private final int | |
| private final void | |
| private final String | |
| protected final boolean | |
| protected final void | |
| protected final void | _loadToHaveAtLeast(int minAvailable)
Helper method that will try to load at least specified number bytes in input buffer, possible moving existing data around if necessary |
| private final byte | |
| private final byte | |
| private final void | |
| protected void | _releaseBuffers()
Overrides tools. Method called to release internal buffers owned by the base reader. |
| private void | |
| private void | |
| private void | |
| private void | |
| private final void | |
| private final void | |
| private long | |
| public void | |
| private final void | |
| public void | |
| public boolean | checkInputEnd()
Implements abstract tools.
|
| public long | decodeArrayNext()
Implements abstract tools.
|
| public long | decodeArrayStart()
Implements abstract tools.
|
| public JsonToken | decodeBoolean()
Implements abstract tools.
|
| public JsonToken | |
| public JsonToken | |
| public int | |
| public JsonToken | decodeFixed(int size)
Implements abstract tools.
|
| public JsonToken | |
| public int | |
| public final int | |
| public JsonToken | decodeIntToken()
Implements abstract tools.
|
| public long | |
| public JsonToken | decodeLongToken()
Implements abstract tools.
|
| public String | |
| public long | decodeMapNext()
Implements abstract tools.
|
| public long | decodeMapStart()
Implements abstract tools.
|
| public void | |
| public JsonToken | decodeStringToken()
Implements abstract tools.
|
| public String | getString()
Implements abstract tools. Method for accessing textual representation of the current token;
if no current token (before first call to |
| public int | getString(Writer writer)
Implements abstract tools. Method to read the textual representation of the current token in chunks and pass it to the given Writer. |
| public boolean | hasStringCharacters()
Implements abstract tools. Method that can be used to determine whether calling of
|
| public String | nextStringValue()
Implements abstract tools. Method that fetches next token (as if calling |
| public int | releaseBuffered(OutputStream out)
Overrides tools. Method that can be called to push back any content that has been read but not consumed by the parser. |
| protected JsonToken | setString(String str)
Implements abstract tools.
|
| public long | |
| public void | |
| public void | |
| public void | |
| public void | skipFixed(int size)
Implements abstract tools.
|
| public void | |
| public void | |
| public void | |
| public long | |
| public void | |
| public Object | streamReadInputSource()
Implements abstract tools. Method that can be used to get access to object that is used
to access input being parsed; this is usually either
|
| _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. | |
| _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 | |
| sUtf8UnitLengths | back to summary |
|---|---|
| public static final int[] sUtf8UnitLengths Additionally we can combine UTF-8 decoding info into similar data table. Values indicate "byte length - 1"; meaning -1 is used for invalid bytes, 0 for single-byte codes, 1 for 2-byte codes and 2 for 3-byte codes. | |
| JacksonAvroParserImpl | back to summary |
|---|---|
| public JacksonAvroParserImpl(ObjectReadContext readCtxt, IOContext ioCtxt, int parserFeatures, int avroFeatures, AvroSchema schema, InputStream in) | |
| JacksonAvroParserImpl | back to summary |
|---|---|
| public JacksonAvroParserImpl(ObjectReadContext readCtxt, IOContext ioCtxt, int parserFeatures, int avroFeatures, AvroSchema schema, byte[] data, int offset, int len) | |
| _closeInput | back to summary |
|---|---|
| protected void _closeInput() throws IOException Implements abstract tools. Doc from tools. Abstract method for sub-classes to implement; to be called by
| |
| _decodeChunkLength | back to summary |
|---|---|
| private final long _decodeChunkLength() throws IOException | |
| _decodeIntSlow | back to summary |
|---|---|
| public int _decodeIntSlow() throws IOException | |
| _decodeLong2 | back to summary |
|---|---|
| private long _decodeLong2(int ptr, long lo) throws IOException | |
| _decodeLongSlow | back to summary |
|---|---|
| public long _decodeLongSlow() throws IOException | |
| _decodeLongSlow2 | back to summary |
|---|---|
| private long _decodeLongSlow2(long lo) throws IOException | |
| _decodeUTF8_3 | back to summary |
|---|---|
| private final int _decodeUTF8_3(int c1) throws IOException | |
| _decodeUTF8_4 | back to summary |
|---|---|
| private final int _decodeUTF8_4(int c) throws IOException | |
| _finishLongString | back to summary |
|---|---|
| private final void _finishLongString(int len) throws IOException | |
| _finishShortString | back to summary |
|---|---|
| private final String _finishShortString(int len) throws IOException | |
| _loadMore | back to summary |
|---|---|
| protected final boolean _loadMore() throws IOException | |
| _loadMoreGuaranteed | back to summary |
|---|---|
| protected final void _loadMoreGuaranteed() throws IOException | |
| _loadToHaveAtLeast | back to summary |
|---|---|
| protected final void _loadToHaveAtLeast(int minAvailable) throws IOException Helper method that will try to load at least specified number bytes in input buffer, possible moving existing data around if necessary | |
| _nextByteGuaranteed | back to summary |
|---|---|
| private final byte _nextByteGuaranteed() throws IOException | |
| _nextByteGuaranteed2 | back to summary |
|---|---|
| private final byte _nextByteGuaranteed2() throws IOException | |
| _read | back to summary |
|---|---|
| private final void _read(byte[] target, int offset, int len) throws IOException | |
| _releaseBuffers | back to summary |
|---|---|
| protected void _releaseBuffers() Overrides tools. Doc from tools. Method called to release internal buffers owned by the base
reader. This is expected to be called after
| |
| _reportInvalidInitial | back to summary |
|---|---|
| private void _reportInvalidInitial(int mask) throws JacksonException | |
| _reportInvalidNegative | back to summary |
|---|---|
| private void _reportInvalidNegative(int v) throws JacksonException | |
| _reportInvalidOther | back to summary |
|---|---|
| private void _reportInvalidOther(int mask) throws JacksonException | |
| _reportInvalidOther | back to summary |
|---|---|
| private void _reportInvalidOther(int mask, int ptr) throws JacksonException | |
| _skip | back to summary |
|---|---|
| private final void _skip(int len) throws IOException | |
| _skipByteGuaranteed | back to summary |
|---|---|
| private final void _skipByteGuaranteed() throws IOException | |
| _skipChunkElements | back to summary |
|---|---|
| private long _skipChunkElements() throws IOException | |
| _skipIntSlow | back to summary |
|---|---|
| public void _skipIntSlow() throws IOException | |
| _skipL | back to summary |
|---|---|
| private final void _skipL(long len) throws IOException | |
| _skipLongSlow | back to summary |
|---|---|
| public void _skipLongSlow() throws IOException | |
| checkInputEnd | back to summary |
|---|---|
| public boolean checkInputEnd() throws IOException Implements abstract tools.
| |
| decodeArrayNext | back to summary |
|---|---|
| public long decodeArrayNext() throws IOException Implements abstract tools.
| |
| decodeArrayStart | back to summary |
|---|---|
| public long decodeArrayStart() throws IOException Implements abstract tools.
| |
| decodeBoolean | back to summary |
|---|---|
| public JsonToken decodeBoolean() throws IOException Implements abstract tools.
| |
| decodeBytes | back to summary |
|---|---|
| public JsonToken decodeBytes() throws IOException Implements abstract tools.
| |
| decodeDouble | back to summary |
|---|---|
| public JsonToken decodeDouble() throws IOException Implements abstract tools.
| |
| decodeEnum | back to summary |
|---|---|
| public int decodeEnum() throws IOException Implements abstract tools.
| |
| decodeFixed | back to summary |
|---|---|
| public JsonToken decodeFixed(int size) throws IOException Implements abstract tools.
| |
| decodeFloat | back to summary |
|---|---|
| public JsonToken decodeFloat() throws IOException Implements abstract tools.
| |
| decodeIndex | back to summary |
|---|---|
| public int decodeIndex() throws IOException Implements abstract tools.
| |
| decodeInt | back to summary |
|---|---|
| public final int decodeInt() throws IOException Implements abstract tools.
| |
| decodeIntToken | back to summary |
|---|---|
| public JsonToken decodeIntToken() throws IOException Implements abstract tools.
| |
| decodeLong | back to summary |
|---|---|
| public long decodeLong() throws IOException Implements abstract tools.
| |
| decodeLongToken | back to summary |
|---|---|
| public JsonToken decodeLongToken() throws IOException Implements abstract tools.
| |
| decodeMapKey | back to summary |
|---|---|
| public String decodeMapKey() throws IOException Implements abstract tools.
| |
| decodeMapNext | back to summary |
|---|---|
| public long decodeMapNext() throws IOException Implements abstract tools.
| |
| decodeMapStart | back to summary |
|---|---|
| public long decodeMapStart() throws IOException Implements abstract tools.
| |
| decodeString | back to summary |
|---|---|
| public void decodeString() throws IOException Implements abstract tools.
| |
| decodeStringToken | back to summary |
|---|---|
| public JsonToken decodeStringToken() throws IOException Implements abstract tools.
| |
| getString | back to summary |
|---|---|
| public String getString() throws JacksonException Implements abstract tools. Doc from tools. Method for accessing textual representation of the current token;
if no current token (before first call to
| |
| getString | back to summary |
|---|---|
| public int getString(Writer writer) throws JacksonException Implements abstract tools. Doc from tools. Method to read the textual representation of the current token in chunks and pass it to the given Writer. Functionally same as calling: writer.write(parser.getString());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 String value will still be buffered (usually
using Note In Jackson 2.x this method was called
| |
| hasStringCharacters | back to summary |
|---|---|
| public boolean hasStringCharacters() Implements abstract tools. Doc from tools. Method that can be used to determine whether calling of
| |
| nextStringValue | back to summary |
|---|---|
| public String nextStringValue() throws JacksonException Implements abstract tools. Doc from tools. Method that fetches next token (as if calling return (nextToken() == JsonToken.VALUE_STRING) ? getString() : 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.
| |
| releaseBuffered | back to summary |
|---|---|
| public int releaseBuffered(OutputStream out) Overrides tools. Doc from tools. Method that can be called to push back any content that has been read but not consumed by the parser. This is usually done after reading all content of interest using parser. Content is released by writing it to given stream if possible; if underlying input is byte-based it can released, if not (char-based) it cannot.
| |
| setString | back to summary |
|---|---|
| protected JsonToken setString(String str) throws IOException Implements abstract tools.
| |
| skipArray | back to summary |
|---|---|
| public long skipArray() throws IOException Implements abstract tools.
| |
| skipBoolean | back to summary |
|---|---|
| public void skipBoolean() throws IOException Implements abstract tools.
| |
| skipBytes | back to summary |
|---|---|
| public void skipBytes() throws IOException Implements abstract tools.
| |
| skipDouble | back to summary |
|---|---|
| public void skipDouble() throws IOException Implements abstract tools.
| |
| skipFixed | back to summary |
|---|---|
| public void skipFixed(int size) throws IOException Implements abstract tools.
| |
| skipFloat | back to summary |
|---|---|
| public void skipFloat() throws IOException Implements abstract tools.
| |
| skipInt | back to summary |
|---|---|
| public void skipInt() throws IOException Implements abstract tools.
| |
| skipLong | back to summary |
|---|---|
| public void skipLong() throws IOException Implements abstract tools.
| |
| skipMap | back to summary |
|---|---|
| public long skipMap() throws IOException Implements abstract tools.
| |
| skipString | back to summary |
|---|---|
| public void skipString() throws IOException Implements abstract tools.
| |
| streamReadInputSource | back to summary |
|---|---|
| public Object streamReadInputSource() Implements abstract tools. Doc from tools. 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. Note was named
| |