Top Description Fields Constructors Methods
com.fasterxml.jackson.dataformat.cbor

public Class CBORParserBootstrapper

extends Object
Class Inheritance
Imports
java.io.*, com.fasterxml.jackson.core.*, com.fasterxml.jackson.core.format.InputAccessor, .MatchStrength, com.fasterxml.jackson.core.io.IOContext, com.fasterxml.jackson.core.sym.ByteQuadsCanonicalizer

Simple bootstrapper version used with CBOR format parser.

Field Summary

Modifier and TypeField and Description
protected final boolean
_bufferRecyclable

Flag that indicates whether buffer above is to be recycled after being used or not.

protected final IOContext
protected final InputStream
protected final byte[]
protected int
protected int
_inputProcessed

Current number of input units (bytes or chars) that were processed in previous blocks, before contents of current input buffer.

protected int

Constructor Summary

AccessConstructor and Description
public
public
CBORParserBootstrapper(IOContext ctxt, byte[] inputBuffer, int inputStart, int inputLen)

Method Summary

Modifier and TypeMethod and Description
public CBORParser
constructParser(int factoryFeatures, int generalParserFeatures, int formatFeatures, ObjectCodec codec, ByteQuadsCanonicalizer rootByteSymbols)

protected boolean
ensureLoaded(int minimum)

public static MatchStrength
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_bufferRecyclableback to summary
protected final boolean _bufferRecyclable

Flag that indicates whether buffer above is to be recycled after being used or not.

_contextback to summary
protected final IOContext _context
_inback to summary
protected final InputStream _in
_inputBufferback to summary
protected final byte[] _inputBuffer
_inputEndback to summary
protected int _inputEnd
_inputProcessedback to summary
protected int _inputProcessed

Current 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.

_inputPtrback to summary
protected int _inputPtr

Constructor Detail

CBORParserBootstrapperback to summary
public CBORParserBootstrapper(IOContext ctxt, InputStream in)
CBORParserBootstrapperback to summary
public CBORParserBootstrapper(IOContext ctxt, byte[] inputBuffer, int inputStart, int inputLen)

Method Detail

constructParserback to summary
public CBORParser constructParser(int factoryFeatures, int generalParserFeatures, int formatFeatures, ObjectCodec codec, ByteQuadsCanonicalizer rootByteSymbols) throws IOException, JsonParseException
ensureLoadedback to summary
protected boolean ensureLoaded(int minimum) throws IOException
hasCBORFormatback to summary
public static MatchStrength hasCBORFormat(InputAccessor acc) throws IOException