public class NBTFactory
extends com.fasterxml.jackson.core.JsonFactory
| Modifier and Type | Class and Description |
|---|---|
static class |
NBTFactory.Feature |
| Modifier and Type | Field and Description |
|---|---|
protected int |
_nbtGeneratorFeatures |
protected int |
_nbtParserFeatures |
protected static int |
DEFAULT_NBT_GENERATOR_FEATURE_FLAGS
Bitfield (set of flags) of all generator features that are enabled
by default.
|
protected static int |
DEFAULT_NBT_PARSER_FEATURE_FLAGS
Bitfield (set of flags) of all parser features that are enabled
by default.
|
static String |
FORMAT_NAME_NBT |
static com.fasterxml.jackson.core.Version |
VERSION |
_byteSymbolCanonicalizer, _characterEscapes, _factoryFeatures, _generatorFeatures, _inputDecorator, _maximumNonEscapedChar, _objectCodec, _outputDecorator, _parserFeatures, _quoteChar, _rootCharSymbols, _rootValueSeparator, DEFAULT_FACTORY_FEATURE_FLAGS, DEFAULT_GENERATOR_FEATURE_FLAGS, DEFAULT_PARSER_FEATURE_FLAGS, DEFAULT_QUOTE_CHAR, DEFAULT_ROOT_VALUE_SEPARATOR, FORMAT_NAME_JSON| Constructor and Description |
|---|
NBTFactory() |
NBTFactory(NBTFactory factory,
com.fasterxml.jackson.core.ObjectCodec oc) |
NBTFactory(com.fasterxml.jackson.core.ObjectCodec oc) |
| Modifier and Type | Method and Description |
|---|---|
protected NBTParser |
_createParser(InputStream in,
com.fasterxml.jackson.core.io.IOContext context) |
boolean |
canUseCharArrays() |
NBTFactory |
configure(NBTFactory.Feature f,
boolean state) |
NBTFactory |
configureGen(NBTFactory.Feature f,
boolean state)
Method for enabling or disabling specified generator feature
(check
NBTFactory.Feature for list of features) |
NBTFactory |
configureParser(NBTFactory.Feature f,
boolean state)
Method for enabling or disabling specified parser feature
(check
NBTFactory.Feature for list of features) |
NBTGenerator |
createGenerator(File f,
com.fasterxml.jackson.core.JsonEncoding enc) |
NBTGenerator |
createGenerator(OutputStream out) |
NBTGenerator |
createGenerator(OutputStream out,
com.fasterxml.jackson.core.JsonEncoding enc) |
NBTGenerator |
createGenerator(Writer w) |
NBTParser |
createParser(byte[] data) |
NBTParser |
createParser(byte[] data,
int offset,
int len) |
NBTParser |
createParser(char[] content) |
NBTParser |
createParser(char[] content,
int offset,
int len) |
NBTParser |
createParser(File f) |
NBTParser |
createParser(Reader r) |
NBTParser |
createParser(String content) |
NBTParser |
createParser(URL url) |
NBTFactory |
disable(NBTFactory.Feature f) |
NBTFactory |
disableGen(NBTFactory.Feature f)
Method for disabling specified generator feature
(check
NBTFactory.Feature for list of features) |
NBTFactory |
disableParser(NBTFactory.Feature f)
Method for disabling specified parser features
(check
NBTFactory.Feature for list of features) |
NBTFactory |
enable(NBTFactory.Feature f) |
NBTFactory |
enableGen(NBTFactory.Feature f)
Method for enabling specified generator features
(check
NBTFactory.Feature for list of features) |
NBTFactory |
enableParser(NBTFactory.Feature f)
Method for enabling specified parser feature
(check
NBTFactory.Feature for list of features) |
int |
getFormatGeneratorFeatures() |
String |
getFormatName() |
int |
getFormatParserFeatures() |
com.fasterxml.jackson.core.format.MatchStrength |
hasFormat(com.fasterxml.jackson.core.format.InputAccessor acc) |
boolean |
isEnabledGen(NBTFactory.Feature f)
Check whether specified generator feature is enabled.
|
boolean |
isEnabledParser(NBTFactory.Feature f)
Checked whether specified parser feature is enabled.
|
protected Object |
readResolve() |
com.fasterxml.jackson.core.Version |
version() |
_checkInvalidCopy, _createContext, _createGenerator, _createNonBlockingContext, _createParser, _createParser, _createParser, _createParser, _createUTF8Generator, _createWriter, _decorate, _decorate, _decorate, _decorate, _decorate, _getBufferRecycler, builder, canHandleBinaryNatively, canParseAsync, canUseSchema, configure, configure, configure, copy, createGenerator, createGenerator, createJsonGenerator, createJsonGenerator, createJsonGenerator, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createNonBlockingByteArrayParser, createParser, createParser, disable, disable, disable, enable, enable, enable, getCharacterEscapes, getCodec, getFormatReadFeatureType, getFormatWriteFeatureType, getGeneratorFeatures, getInputDecorator, getOutputDecorator, getParserFeatures, getRootValueSeparator, hasJSONFormat, isEnabled, isEnabled, isEnabled, isEnabled, isEnabled, rebuild, requiresCustomCodec, requiresPropertyOrdering, setCharacterEscapes, setCodec, setInputDecorator, setOutputDecorator, setRootValueSeparatorpublic static final String FORMAT_NAME_NBT
public static final com.fasterxml.jackson.core.Version VERSION
protected static final int DEFAULT_NBT_PARSER_FEATURE_FLAGS
protected static final int DEFAULT_NBT_GENERATOR_FEATURE_FLAGS
protected int _nbtParserFeatures
protected int _nbtGeneratorFeatures
public NBTFactory()
public NBTFactory(com.fasterxml.jackson.core.ObjectCodec oc)
public NBTFactory(NBTFactory factory, com.fasterxml.jackson.core.ObjectCodec oc)
protected Object readResolve()
readResolve in class com.fasterxml.jackson.core.JsonFactorypublic com.fasterxml.jackson.core.Version version()
version in interface com.fasterxml.jackson.core.Versionedversion in class com.fasterxml.jackson.core.JsonFactorypublic boolean canUseCharArrays()
canUseCharArrays in class com.fasterxml.jackson.core.JsonFactorypublic String getFormatName()
getFormatName in class com.fasterxml.jackson.core.JsonFactorypublic com.fasterxml.jackson.core.format.MatchStrength hasFormat(com.fasterxml.jackson.core.format.InputAccessor acc)
throws IOException
hasFormat in class com.fasterxml.jackson.core.JsonFactoryIOExceptionpublic final NBTFactory configure(NBTFactory.Feature f, boolean state)
public NBTFactory enable(NBTFactory.Feature f)
public NBTFactory disable(NBTFactory.Feature f)
public final NBTFactory configureParser(NBTFactory.Feature f, boolean state)
NBTFactory.Feature for list of features)public NBTFactory enableParser(NBTFactory.Feature f)
NBTFactory.Feature for list of features)public NBTFactory disableParser(NBTFactory.Feature f)
NBTFactory.Feature for list of features)public final boolean isEnabledParser(NBTFactory.Feature f)
public int getFormatParserFeatures()
getFormatParserFeatures in class com.fasterxml.jackson.core.JsonFactorypublic final NBTFactory configureGen(NBTFactory.Feature f, boolean state)
NBTFactory.Feature for list of features)public NBTFactory enableGen(NBTFactory.Feature f)
NBTFactory.Feature for list of features)public NBTFactory disableGen(NBTFactory.Feature f)
NBTFactory.Feature for list of features)public final boolean isEnabledGen(NBTFactory.Feature f)
public int getFormatGeneratorFeatures()
getFormatGeneratorFeatures in class com.fasterxml.jackson.core.JsonFactorypublic NBTParser createParser(File f) throws IOException
createParser in class com.fasterxml.jackson.core.JsonFactoryIOExceptionpublic NBTParser createParser(URL url) throws IOException
createParser in class com.fasterxml.jackson.core.JsonFactoryIOExceptionpublic NBTParser createParser(byte[] data) throws IOException
createParser in class com.fasterxml.jackson.core.JsonFactoryIOExceptionpublic NBTParser createParser(byte[] data, int offset, int len) throws IOException
createParser in class com.fasterxml.jackson.core.JsonFactoryIOExceptionpublic NBTParser createParser(Reader r)
createParser in class com.fasterxml.jackson.core.JsonFactorypublic NBTParser createParser(String content)
createParser in class com.fasterxml.jackson.core.JsonFactorypublic NBTParser createParser(char[] content, int offset, int len)
createParser in class com.fasterxml.jackson.core.JsonFactorypublic NBTParser createParser(char[] content)
createParser in class com.fasterxml.jackson.core.JsonFactorypublic NBTGenerator createGenerator(OutputStream out, com.fasterxml.jackson.core.JsonEncoding enc) throws IOException
createGenerator in class com.fasterxml.jackson.core.JsonFactoryIOExceptionpublic NBTGenerator createGenerator(OutputStream out) throws IOException
createGenerator in class com.fasterxml.jackson.core.JsonFactoryIOExceptionpublic NBTGenerator createGenerator(Writer w)
createGenerator in class com.fasterxml.jackson.core.JsonFactorypublic NBTGenerator createGenerator(File f, com.fasterxml.jackson.core.JsonEncoding enc) throws IOException
createGenerator in class com.fasterxml.jackson.core.JsonFactoryIOExceptionprotected NBTParser _createParser(InputStream in, com.fasterxml.jackson.core.io.IOContext context) throws IOException
_createParser in class com.fasterxml.jackson.core.JsonFactoryIOExceptionCopyright © 2021 FasterXML. All rights reserved.