public class SmileParserBootstrapper extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
_inputProcessed
Current number of input units (bytes or chars) that were processed in
previous blocks,
before contents of current input buffer.
|
Constructor and Description |
---|
SmileParserBootstrapper(IOContext ctxt,
byte[] inputBuffer,
int inputStart,
int inputLen) |
SmileParserBootstrapper(IOContext ctxt,
InputStream in) |
Modifier and Type | Method and Description |
---|---|
SmileParser |
constructParser(int generalParserFeatures,
int smileFeatures,
ObjectCodec codec,
BytesToNameCanonicalizer rootByteSymbols) |
protected boolean |
ensureLoaded(int minimum) |
static MatchStrength |
hasSmileFormat(InputAccessor acc)
Helper
|
protected int _inputProcessed
Note: includes possible BOMs, if those were part of the input.
public SmileParserBootstrapper(IOContext ctxt, InputStream in)
public SmileParserBootstrapper(IOContext ctxt, byte[] inputBuffer, int inputStart, int inputLen)
public SmileParser constructParser(int generalParserFeatures, int smileFeatures, ObjectCodec codec, BytesToNameCanonicalizer rootByteSymbols) throws IOException, JsonParseException
IOException
JsonParseException
public static MatchStrength hasSmileFormat(InputAccessor acc) throws IOException
IOException
protected boolean ensureLoaded(int minimum) throws IOException
IOException