public class SmileParserBootstrapper
extends java.lang.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,
java.io.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, java.io.InputStream in)
public SmileParserBootstrapper(IOContext ctxt, byte[] inputBuffer, int inputStart, int inputLen)
public SmileParser constructParser(int generalParserFeatures, int smileFeatures, ObjectCodec codec, BytesToNameCanonicalizer rootByteSymbols) throws java.io.IOException, JsonParseException
java.io.IOException
JsonParseException
public static MatchStrength hasSmileFormat(InputAccessor acc) throws java.io.IOException
java.io.IOException
protected boolean ensureLoaded(int minimum) throws java.io.IOException
java.io.IOException