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

public Class SmileParserBootstrapper

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 Smile 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
SmileParserBootstrapper(IOContext ctxt, byte[] inputBuffer, int inputStart, int inputLen)

Method Summary

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

public static MatchStrength
private static boolean
private static boolean
possibleSmileValue(byte b, boolean
Whether to consider more speculative matches or not (typically true when there is context like start-array)
lenient
)

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

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

Method Detail

constructParserback to summary
public SmileParser constructParser(int factoryFeatures, int generalParserFeatures, int smileFeatures, ObjectCodec codec, ByteQuadsCanonicalizer rootByteSymbols) throws IOException, JsonParseException
hasSmileFormatback to summary
public static MatchStrength hasSmileFormat(InputAccessor acc) throws IOException
likelySmileValueback to summary
private static boolean likelySmileValue(byte b)
possibleSmileValueback to summary
private static boolean possibleSmileValue(byte b, boolean lenient)
Parameters
lenient:boolean

Whether to consider more speculative matches or not (typically true when there is context like start-array)