public class IonFactory
extends com.fasterxml.jackson.core.JsonFactory
JsonFactory that will work on Ion content, instead of JSON
content.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
_cfgCreateBinaryWriters
Whether we will produce binary or text Ion writers: default is textual.
|
protected int |
_ionGeneratorFeatures |
protected int |
_ionParserFeatures |
protected com.amazon.ion.IonSystem |
_system |
protected static int |
DEFAULT_ION_GENERATOR_FEATURE_FLAGS
Bitfield (set of flags) of all generator features that are enabled
by default.
|
protected static int |
DEFAULT_ION_PARSER_FEATURE_FLAGS
Bitfield (set of flags) of all parser features that are enabled
by default.
|
static String |
FORMAT_NAME_ION |
_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| Modifier | Constructor and Description |
|---|---|
|
IonFactory() |
protected |
IonFactory(IonFactoryBuilder b)
Constructors used by
IonFactoryBuilder for instantiation. |
protected |
IonFactory(IonFactory src,
com.fasterxml.jackson.core.ObjectCodec oc) |
|
IonFactory(com.fasterxml.jackson.core.ObjectCodec mapper) |
|
IonFactory(com.fasterxml.jackson.core.ObjectCodec mapper,
com.amazon.ion.IonSystem system) |
| Modifier and Type | Method and Description |
|---|---|
protected IonGenerator |
_createGenerator(com.amazon.ion.IonWriter ion,
boolean ionWriterIsManaged,
com.fasterxml.jackson.core.io.IOContext ctxt,
Closeable dst) |
protected IonGenerator |
_createGenerator(OutputStream out,
com.fasterxml.jackson.core.JsonEncoding enc,
boolean isManaged) |
protected com.fasterxml.jackson.core.JsonParser |
_createParser(byte[] data,
int offset,
int len,
com.fasterxml.jackson.core.io.IOContext ctxt) |
protected com.fasterxml.jackson.core.JsonParser |
_createParser(char[] data,
int offset,
int len,
com.fasterxml.jackson.core.io.IOContext ctxt,
boolean recyclable) |
protected com.fasterxml.jackson.core.JsonParser |
_createParser(InputStream in,
com.fasterxml.jackson.core.io.IOContext ctxt) |
protected com.fasterxml.jackson.core.JsonParser |
_createParser(Reader r,
com.fasterxml.jackson.core.io.IOContext ctxt) |
protected String |
_readAll(Reader r,
com.fasterxml.jackson.core.io.IOContext ctxt)
Deprecated.
|
static IonFactoryBuilder |
builderForBinaryWriters()
Method for creating
IonFactoryBuilder initialized with settings to
create binary (not textual) writers. |
static IonFactoryBuilder |
builderForTextualWriters()
Method for creating
IonFactoryBuilder initialized with settings to
create textual (not binary) writers. |
boolean |
canHandleBinaryNatively() |
boolean |
canUseCharArrays() |
IonFactory |
configure(IonGenerator.Feature f,
boolean state)
Method for enabling or disabling specified generator feature
(check
IonGenerator.Feature for list of features) |
IonFactory |
configure(IonParser.Feature f,
boolean state)
Method for enabling or disabling specified parser feature
(check
IonParser.Feature for list of features) |
IonFactory |
copy() |
boolean |
createBinaryWriters() |
com.fasterxml.jackson.core.JsonGenerator |
createGenerator(File f,
com.fasterxml.jackson.core.JsonEncoding enc) |
com.fasterxml.jackson.core.JsonGenerator |
createGenerator(com.amazon.ion.IonWriter out) |
com.fasterxml.jackson.core.JsonGenerator |
createGenerator(OutputStream out,
com.fasterxml.jackson.core.JsonEncoding enc) |
com.fasterxml.jackson.core.JsonGenerator |
createGenerator(Writer out) |
com.fasterxml.jackson.core.JsonGenerator |
createJsonGenerator(com.amazon.ion.IonWriter out)
Deprecated.
Since 2.7
|
IonParser |
createJsonParser(com.amazon.ion.IonReader in)
Deprecated.
Since 2.7
|
IonParser |
createJsonParser(com.amazon.ion.IonValue value)
Deprecated.
Since 2.7
|
IonParser |
createParser(com.amazon.ion.IonReader in) |
IonParser |
createParser(com.amazon.ion.IonValue value) |
IonFactory |
disable(IonGenerator.Feature f)
Method for disabling specified generator feature
(check
IonGenerator.Feature for list of features) |
IonFactory |
disable(IonParser.Feature f)
Method for disabling specified parser features
(check
IonParser.Feature for list of features) |
IonFactory |
enable(IonGenerator.Feature f)
Method for enabling specified generator features
(check
IonGenerator.Feature for list of features) |
IonFactory |
enable(IonParser.Feature f)
Method for enabling specified parser feature
(check
IonParser.Feature for list of features) |
static IonFactory |
forBinaryWriters()
Method for creating
IonFactory that will
create binary (not textual) writers. |
static IonFactory |
forTextualWriters()
Method for creating
IonFactory that will
create textual (not binary) writers. |
int |
getFormatGeneratorFeatures() |
String |
getFormatName() |
int |
getFormatParserFeatures() |
com.amazon.ion.IonSystem |
getIonSystem() |
boolean |
isEnabled(IonGenerator.Feature f)
Check whether specified generator feature is enabled.
|
boolean |
isEnabled(IonParser.Feature f)
Checked whether specified parser feature is enabled.
|
IonFactoryBuilder |
rebuild() |
void |
setCreateBinaryWriters(boolean b) |
com.fasterxml.jackson.core.Version |
version() |
_checkInvalidCopy, _createContentReference, _createContentReference, _createContext, _createContext, _createGenerator, _createNonBlockingContext, _createParser, _createUTF8Generator, _createWriter, _decorate, _decorate, _decorate, _decorate, _decorate, _getBufferRecycler, builder, canParseAsync, canUseSchema, configure, configure, configure, createGenerator, createGenerator, createGenerator, createJsonGenerator, createJsonGenerator, createJsonGenerator, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createJsonParser, createNonBlockingByteArrayParser, createParser, createParser, createParser, createParser, createParser, createParser, createParser, createParser, createParser, createParser, disable, disable, disable, enable, enable, enable, getCharacterEscapes, getCodec, getFormatReadFeatureType, getFormatWriteFeatureType, getGeneratorFeatures, getInputDecorator, getOutputDecorator, getParserFeatures, getRootValueSeparator, hasFormat, hasJSONFormat, isEnabled, isEnabled, isEnabled, isEnabled, isEnabled, readResolve, requiresCustomCodec, requiresPropertyOrdering, setCharacterEscapes, setCodec, setInputDecorator, setOutputDecorator, setRootValueSeparatorpublic static final String FORMAT_NAME_ION
protected final com.amazon.ion.IonSystem _system
protected boolean _cfgCreateBinaryWriters
protected static final int DEFAULT_ION_PARSER_FEATURE_FLAGS
protected static final int DEFAULT_ION_GENERATOR_FEATURE_FLAGS
protected int _ionParserFeatures
protected int _ionGeneratorFeatures
public IonFactory()
public IonFactory(com.fasterxml.jackson.core.ObjectCodec mapper)
public IonFactory(com.fasterxml.jackson.core.ObjectCodec mapper,
com.amazon.ion.IonSystem system)
protected IonFactory(IonFactory src, com.fasterxml.jackson.core.ObjectCodec oc)
protected IonFactory(IonFactoryBuilder b)
IonFactoryBuilder for instantiation.public IonFactoryBuilder rebuild()
rebuild in class com.fasterxml.jackson.core.JsonFactorypublic static IonFactory forBinaryWriters()
IonFactory that will
create binary (not textual) writers.public static IonFactory forTextualWriters()
IonFactory that will
create textual (not binary) writers.public static IonFactoryBuilder builderForBinaryWriters()
IonFactoryBuilder initialized with settings to
create binary (not textual) writers.public static IonFactoryBuilder builderForTextualWriters()
IonFactoryBuilder initialized with settings to
create textual (not binary) writers.public IonFactory copy()
copy 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 String getFormatName()
getFormatName in class com.fasterxml.jackson.core.JsonFactorypublic void setCreateBinaryWriters(boolean b)
public boolean createBinaryWriters()
public boolean canHandleBinaryNatively()
canHandleBinaryNatively in class com.fasterxml.jackson.core.JsonFactorypublic boolean canUseCharArrays()
canUseCharArrays in class com.fasterxml.jackson.core.JsonFactorypublic final IonFactory configure(IonParser.Feature f, boolean state)
IonParser.Feature for list of features)public IonFactory enable(IonParser.Feature f)
IonParser.Feature for list of features)public IonFactory disable(IonParser.Feature f)
IonParser.Feature for list of features)public final boolean isEnabled(IonParser.Feature f)
public int getFormatParserFeatures()
getFormatParserFeatures in class com.fasterxml.jackson.core.JsonFactorypublic final IonFactory configure(IonGenerator.Feature f, boolean state)
IonGenerator.Feature for list of features)public IonFactory enable(IonGenerator.Feature f)
IonGenerator.Feature for list of features)public IonFactory disable(IonGenerator.Feature f)
IonGenerator.Feature for list of features)public final boolean isEnabled(IonGenerator.Feature f)
public int getFormatGeneratorFeatures()
getFormatGeneratorFeatures in class com.fasterxml.jackson.core.JsonFactorypublic IonParser createParser(com.amazon.ion.IonReader in)
public IonParser createParser(com.amazon.ion.IonValue value)
public com.fasterxml.jackson.core.JsonGenerator createGenerator(com.amazon.ion.IonWriter out)
public com.amazon.ion.IonSystem getIonSystem()
@Deprecated public IonParser createJsonParser(com.amazon.ion.IonReader in)
@Deprecated public IonParser createJsonParser(com.amazon.ion.IonValue value)
@Deprecated public com.fasterxml.jackson.core.JsonGenerator createJsonGenerator(com.amazon.ion.IonWriter out)
protected com.fasterxml.jackson.core.JsonParser _createParser(InputStream in, com.fasterxml.jackson.core.io.IOContext ctxt) throws IOException
_createParser in class com.fasterxml.jackson.core.JsonFactoryIOExceptionprotected com.fasterxml.jackson.core.JsonParser _createParser(Reader r, com.fasterxml.jackson.core.io.IOContext ctxt) throws IOException
_createParser in class com.fasterxml.jackson.core.JsonFactoryIOExceptionprotected com.fasterxml.jackson.core.JsonParser _createParser(char[] data,
int offset,
int len,
com.fasterxml.jackson.core.io.IOContext ctxt,
boolean recyclable)
throws IOException
_createParser in class com.fasterxml.jackson.core.JsonFactoryIOExceptionprotected com.fasterxml.jackson.core.JsonParser _createParser(byte[] data,
int offset,
int len,
com.fasterxml.jackson.core.io.IOContext ctxt)
throws IOException
_createParser in class com.fasterxml.jackson.core.JsonFactoryIOExceptionpublic com.fasterxml.jackson.core.JsonGenerator createGenerator(OutputStream out, com.fasterxml.jackson.core.JsonEncoding enc) throws IOException
createGenerator in class com.fasterxml.jackson.core.JsonFactoryIOExceptionpublic com.fasterxml.jackson.core.JsonGenerator createGenerator(Writer out) throws IOException
createGenerator in class com.fasterxml.jackson.core.JsonFactoryIOExceptionpublic com.fasterxml.jackson.core.JsonGenerator createGenerator(File f, com.fasterxml.jackson.core.JsonEncoding enc) throws IOException
createGenerator in class com.fasterxml.jackson.core.JsonFactoryIOException@Deprecated protected String _readAll(Reader r, com.fasterxml.jackson.core.io.IOContext ctxt) throws IOException
IOExceptionprotected IonGenerator _createGenerator(OutputStream out, com.fasterxml.jackson.core.JsonEncoding enc, boolean isManaged) throws IOException
IOExceptionprotected IonGenerator _createGenerator(com.amazon.ion.IonWriter ion, boolean ionWriterIsManaged, com.fasterxml.jackson.core.io.IOContext ctxt, Closeable dst)
Copyright © 2021 FasterXML. All rights reserved.