public class CBORParserBootstrapper extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
_bufferRecyclable
Flag that indicates whether buffer above is to be recycled
after being used or not.
|
protected com.fasterxml.jackson.core.io.IOContext |
_context |
protected InputStream |
_in |
protected byte[] |
_inputBuffer |
protected int |
_inputEnd |
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 |
_inputPtr |
Constructor and Description |
---|
CBORParserBootstrapper(com.fasterxml.jackson.core.io.IOContext ctxt,
byte[] inputBuffer,
int inputStart,
int inputLen) |
CBORParserBootstrapper(com.fasterxml.jackson.core.io.IOContext ctxt,
InputStream in) |
Modifier and Type | Method and Description |
---|---|
CBORParser |
constructParser(int factoryFeatures,
int generalParserFeatures,
int formatFeatures,
com.fasterxml.jackson.core.ObjectCodec codec,
com.fasterxml.jackson.core.sym.BytesToNameCanonicalizer rootByteSymbols) |
protected boolean |
ensureLoaded(int minimum) |
static com.fasterxml.jackson.core.format.MatchStrength |
hasCBORFormat(com.fasterxml.jackson.core.format.InputAccessor acc) |
protected final com.fasterxml.jackson.core.io.IOContext _context
protected final InputStream _in
protected final byte[] _inputBuffer
protected int _inputPtr
protected int _inputEnd
protected final boolean _bufferRecyclable
protected int _inputProcessed
Note: includes possible BOMs, if those were part of the input.
public CBORParserBootstrapper(com.fasterxml.jackson.core.io.IOContext ctxt, InputStream in)
public CBORParserBootstrapper(com.fasterxml.jackson.core.io.IOContext ctxt, byte[] inputBuffer, int inputStart, int inputLen)
public CBORParser constructParser(int factoryFeatures, int generalParserFeatures, int formatFeatures, com.fasterxml.jackson.core.ObjectCodec codec, com.fasterxml.jackson.core.sym.BytesToNameCanonicalizer rootByteSymbols) throws IOException, com.fasterxml.jackson.core.JsonParseException
IOException
com.fasterxml.jackson.core.JsonParseException
public static com.fasterxml.jackson.core.format.MatchStrength hasCBORFormat(com.fasterxml.jackson.core.format.InputAccessor acc) throws IOException
IOException
protected boolean ensureLoaded(int minimum) throws IOException
IOException
Copyright © 2014–2015 FasterXML. All rights reserved.