public final class ByteSourceJsonBootstrapper extends Object
| 构造器和说明 |
|---|
ByteSourceJsonBootstrapper(IOContext ctxt,
byte[] inputBuffer,
int inputStart,
int inputLen) |
ByteSourceJsonBootstrapper(IOContext ctxt,
InputStream in) |
| 限定符和类型 | 方法和说明 |
|---|---|
JacksonParser |
constructParser(int parserFeatures,
ObjectCodec codec,
BytesToNameCanonicalizer rootByteSymbols,
CharsToNameCanonicalizer rootCharSymbols,
boolean canonicalize,
boolean intern) |
Reader |
constructReader() |
JsonEncoding |
detectEncoding()
Method that should be called after constructing an instace.
|
static MatchStrength |
hasJSONFormat(InputAccessor acc)
Current implementation is not as thorough as other functionality
(
ByteSourceJsonBootstrapper);
supports UTF-8, for example. |
public ByteSourceJsonBootstrapper(IOContext ctxt, InputStream in)
public ByteSourceJsonBootstrapper(IOContext ctxt, byte[] inputBuffer, int inputStart, int inputLen)
public static MatchStrength hasJSONFormat(InputAccessor acc) throws IOException
ByteSourceJsonBootstrapper);
supports UTF-8, for example. But it should work, for now, and can
be improved as necessary.IOExceptionpublic JsonEncoding detectEncoding() throws IOException, JsonParseException
public Reader constructReader() throws IOException
IOExceptionpublic JacksonParser constructParser(int parserFeatures, ObjectCodec codec, BytesToNameCanonicalizer rootByteSymbols, CharsToNameCanonicalizer rootCharSymbols, boolean canonicalize, boolean intern) throws IOException, JsonParseException
Copyright © 2002–2019 The MyMMSCs Software Foundation. All rights reserved.