Class CBORParserBootstrapper
java.lang.Object
tools.jackson.dataformat.cbor.CBORParserBootstrapper
Simple bootstrapper version used with CBOR format parser.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final booleanFlag that indicates whether buffer above is to be recycled after being used or not.protected final InputStreamprotected final byte[]protected intprotected intCurrent number of input units (bytes or chars) that were processed in previous blocks, before contents of current input buffer.protected intprotected final tools.jackson.core.io.IOContext -
Constructor Summary
ConstructorsConstructorDescriptionCBORParserBootstrapper(tools.jackson.core.io.IOContext ioCtxt, byte[] inputBuffer, int inputStart, int inputLen) CBORParserBootstrapper(tools.jackson.core.io.IOContext ioCtxt, InputStream in) -
Method Summary
Modifier and TypeMethodDescriptionconstructParser(tools.jackson.core.ObjectReadContext readCtxt, int factoryFeatures, int generalParserFeatures, int formatFeatures, tools.jackson.core.sym.ByteQuadsCanonicalizer rootByteSymbols) protected booleanensureLoaded(int minimum)
-
Field Details
-
_ioContext
protected final tools.jackson.core.io.IOContext _ioContext -
_in
-
_inputBuffer
protected final byte[] _inputBuffer -
_inputPtr
protected int _inputPtr -
_inputEnd
protected int _inputEnd -
_bufferRecyclable
protected final boolean _bufferRecyclableFlag that indicates whether buffer above is to be recycled after being used or not. -
_inputProcessed
protected int _inputProcessedCurrent number of input units (bytes or chars) that were processed in previous blocks, before contents of current input buffer.Note: includes possible BOMs, if those were part of the input.
-
-
Constructor Details
-
CBORParserBootstrapper
-
CBORParserBootstrapper
public CBORParserBootstrapper(tools.jackson.core.io.IOContext ioCtxt, byte[] inputBuffer, int inputStart, int inputLen)
-
-
Method Details
-
constructParser
public CBORParser constructParser(tools.jackson.core.ObjectReadContext readCtxt, int factoryFeatures, int generalParserFeatures, int formatFeatures, tools.jackson.core.sym.ByteQuadsCanonicalizer rootByteSymbols) throws tools.jackson.core.JacksonException - Throws:
tools.jackson.core.JacksonException
-
ensureLoaded
protected boolean ensureLoaded(int minimum) throws tools.jackson.core.JacksonException - Throws:
tools.jackson.core.JacksonException
-