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 | |
| protected int | |
| protected final IonSystem | |
| protected static final int | DEFAULT_ION_GENERATOR_FEATURE_FLAGS
Bitfield (set of flags) of all generator features that are enabled by default. |
| protected static final int | DEFAULT_ION_PARSER_FEATURE_FLAGS
Bitfield (set of flags) of all parser features that are enabled by default. |
| public static final String | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected IonGenerator | |
| protected IonGenerator | |
| protected JsonParser | _createParser(InputStream
InputStream to use for reading content to parse in, IOContext I/O context to use for parsing ctxt)Overrides com. Overridable factory method that actually instantiates desired parser
given |
| protected JsonParser | _createParser(Reader
Reader to use for reading content to parse r, IOContext I/O context to use for parsing ctxt)Overrides com. Overridable factory method that actually instantiates parser
using given |
| protected JsonParser | _createParser(char[]
Buffer that contains content to parse data, int Offset to the first character of data to parse offset, int Number of characters within buffer to parse len, IOContext I/O context to use for parsing ctxt, boolean Whether input buffer is recycled by the factory recyclable)Overrides com. Overridable factory method that actually instantiates parser
using given |
| protected JsonParser | _createParser(byte[]
Buffer that contains content to parse data, int Offset to the first character of data to parse offset, int Number of characters within buffer to parse len, IOContext I/O context to use for parsing ctxt)Overrides com. Overridable factory method that actually instantiates parser
using given |
| protected String | |
| public static IonFactoryBuilder | builderForBinaryWriters()
Method for creating |
| public static IonFactoryBuilder | builderForTextualWriters()
Method for creating |
| public boolean | canHandleBinaryNatively()
Overrides com. Introspection method that higher-level functionality may call to see whether underlying data format can read and write binary data natively; that is, embeded it as-is without using encodings such as Base64. |
| public boolean | canUseCharArrays()
Overrides com. Introspection method that can be used by base factory to check
whether access using |
| public final IonFactory | configure(IonParser.
Method for enabling or disabling specified parser feature
(check |
| public final IonFactory | configure(IonGenerator.
Method for enabling or disabling specified generator feature
(check |
| public IonFactory | copy()
Overrides com. Method for constructing a new |
| public boolean | |
| public JsonGenerator | |
| public JsonGenerator | createGenerator(OutputStream
OutputStream to use for writing JSON content out, JsonEncoding Character encoding to use enc)Overrides com. Method for constructing JSON generator for writing JSON content using specified output stream. |
| public JsonGenerator | createGenerator(Writer
Writer to use for writing JSON content out)Overrides com. Method for constructing JSON generator for writing JSON content using specified Writer. |
| public JsonGenerator | createGenerator(File
File to write contents to f, JsonEncoding Character encoding to use enc)Overrides com. Method for constructing JSON generator for writing JSON content to specified file, overwriting contents it might have (or creating it if such file does not yet exist). |
| public JsonGenerator | |
| public IonParser | |
| public IonParser | |
| public IonParser | |
| public IonParser | |
| public IonFactory | disable(IonParser.
Method for disabling specified parser features
(check |
| public IonFactory | disable(IonGenerator.
Method for disabling specified generator feature
(check |
| public IonFactory | enable(IonParser.
Method for enabling specified parser feature
(check |
| public IonFactory | enable(IonGenerator.
Method for enabling specified generator features
(check |
| public static IonFactory | |
| public static IonFactory | |
| public int | |
| public String | getFormatName()
Overrides com. Method that returns short textual id identifying format this factory supports. |
| public int | |
| public IonSystem | |
| public final boolean | |
| public final boolean | |
| public IonFactoryBuilder | rebuild()
Overrides com. Method that allows construction of differently configured factory, starting with settings of this factory. |
| public void | |
| public Version | version()
Overrides com. Implements com. Method called to detect version of the component that implements this interface;
returned version should never be null, but may return specific "not available"
instance (see |
| _cfgCreateBinaryWriters | back to summary |
|---|---|
| protected boolean _cfgCreateBinaryWriters Whether we will produce binary or text Ion writers: default is textual. | |
| _ionGeneratorFeatures | back to summary |
|---|---|
| protected int _ionGeneratorFeatures | |
| _ionParserFeatures | back to summary |
|---|---|
| protected int _ionParserFeatures | |
| _system | back to summary |
|---|---|
| protected final IonSystem _system | |
| DEFAULT_ION_GENERATOR_FEATURE_FLAGS | back to summary |
|---|---|
| protected static final int DEFAULT_ION_GENERATOR_FEATURE_FLAGS Bitfield (set of flags) of all generator features that are enabled by default. | |
| DEFAULT_ION_PARSER_FEATURE_FLAGS | back to summary |
|---|---|
| protected static final int DEFAULT_ION_PARSER_FEATURE_FLAGS Bitfield (set of flags) of all parser features that are enabled by default. | |
| FORMAT_NAME_ION | back to summary |
|---|---|
| public static final String FORMAT_NAME_ION | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| IonFactory | back to summary |
|---|---|
| public IonFactory() | |
| IonFactory | back to summary |
|---|---|
| public IonFactory(ObjectCodec mapper) | |
| IonFactory | back to summary |
|---|---|
| public IonFactory(ObjectCodec mapper, IonSystem system) | |
| IonFactory | back to summary |
|---|---|
| protected IonFactory(IonFactory src, ObjectCodec oc) | |
| IonFactory | back to summary |
|---|---|
| protected IonFactory(IonFactoryBuilder b) Constructors used by | |
| _createGenerator | back to summary |
|---|---|
| protected IonGenerator _createGenerator(OutputStream out, JsonEncoding enc, boolean isManaged) throws IOException | |
| _createGenerator | back to summary |
|---|---|
| protected IonGenerator _createGenerator(IonWriter ion, boolean ionWriterIsManaged, IOContext ctxt, Closeable dst) | |
| _createParser | back to summary |
|---|---|
| protected JsonParser _createParser(InputStream in, IOContext ctxt) throws IOException Overrides com. Doc from com. Overridable factory method that actually instantiates desired parser
given This method is specifically designed to remain compatible between minor versions so that sub-classes can count on it being called as expected. That is, it is part of official interface from sub-class perspective, although not a public method available to users of factory implementations.
| |
| _createParser | back to summary |
|---|---|
| protected JsonParser _createParser(Reader r, IOContext ctxt) throws IOException Overrides com. Doc from com. Overridable factory method that actually instantiates parser
using given This method is specifically designed to remain compatible between minor versions so that sub-classes can count on it being called as expected. That is, it is part of official interface from sub-class perspective, although not a public method available to users of factory implementations.
| |
| _createParser | back to summary |
|---|---|
| protected JsonParser _createParser(char[] data, int offset, int len, IOContext ctxt, boolean recyclable) throws IOException Overrides com. Doc from com. Overridable factory method that actually instantiates parser
using given
| |
| _createParser | back to summary |
|---|---|
| protected JsonParser _createParser(byte[] data, int offset, int len, IOContext ctxt) throws IOException Overrides com. Doc from com. Overridable factory method that actually instantiates parser
using given This method is specifically designed to remain compatible between minor versions so that sub-classes can count on it being called as expected. That is, it is part of official interface from sub-class perspective, although not a public method available to users of factory implementations.
| |
| _readAll | back to summary |
|---|---|
| protected String _readAll(Reader r, IOContext ctxt) throws IOException
Deprecated
| |
| builderForBinaryWriters | back to summary |
|---|---|
| public static IonFactoryBuilder builderForBinaryWriters() Method for creating | |
| builderForTextualWriters | back to summary |
|---|---|
| public static IonFactoryBuilder builderForTextualWriters() Method for creating | |
| canHandleBinaryNatively | back to summary |
|---|---|
| public boolean canHandleBinaryNatively() Overrides com. Doc from com. Introspection method that higher-level functionality may call to see whether underlying data format can read and write binary data natively; that is, embeded it as-is without using encodings such as Base64.
Default implementation returns
| |
| canUseCharArrays | back to summary |
|---|---|
| public boolean canUseCharArrays() Overrides com. Doc from com. Introspection method that can be used by base factory to check
whether access using
| |
| configure | back to summary |
|---|---|
| public final IonFactory configure(IonParser. Method for enabling or disabling specified parser feature
(check | |
| configure | back to summary |
|---|---|
| public final IonFactory configure(IonGenerator. Method for enabling or disabling specified generator feature
(check | |
| copy | back to summary |
|---|---|
| public IonFactory copy() Overrides com. Doc from com. Method for constructing a new
| |
| createBinaryWriters | back to summary |
|---|---|
| public boolean createBinaryWriters() | |
| createGenerator | back to summary |
|---|---|
public JsonGenerator createGenerator(IonWriter out)
| |
| createGenerator | back to summary |
|---|---|
| public JsonGenerator createGenerator(OutputStream out, JsonEncoding enc) throws IOException Overrides com. Doc from com. Method for constructing JSON generator for writing JSON content using specified output stream. Encoding to use must be specified, and needs to be one of available types (as per JSON specification).
Underlying stream is NOT owned by the generator constructed,
so that generator will NOT close the output stream when
Note there are formats that use fixed encoding (like most binary data formats) and that ignore passed in encoding.
| |
| createGenerator | back to summary |
|---|---|
| public JsonGenerator createGenerator(Writer out) throws IOException Overrides com. Doc from com. Method for constructing JSON generator for writing JSON content using specified Writer.
Underlying stream is NOT owned by the generator constructed,
so that generator will NOT close the Reader when
| |
| createGenerator | back to summary |
|---|---|
| public JsonGenerator createGenerator(File f, JsonEncoding enc) throws IOException Overrides com. Doc from com. Method for constructing JSON generator for writing JSON content to specified file, overwriting contents it might have (or creating it if such file does not yet exist). Encoding to use must be specified, and needs to be one of available types (as per JSON specification).
Underlying stream is owned by the generator constructed,
i.e. generator will handle closing of file when
| |
| createJsonGenerator | back to summary |
|---|---|
| public JsonGenerator createJsonGenerator(IonWriter out)
Deprecated Since 2.7
| |
| createJsonParser | back to summary |
|---|---|
| public IonParser createJsonParser(IonReader in)
Deprecated Since 2.7
| |
| createJsonParser | back to summary |
|---|---|
| public IonParser createJsonParser(IonValue value)
Deprecated Since 2.7
| |
| createParser | back to summary |
|---|---|
public IonParser createParser(IonReader in)
| |
| createParser | back to summary |
|---|---|
public IonParser createParser(IonValue value)
| |
| disable | back to summary |
|---|---|
| public IonFactory disable(IonParser. Method for disabling specified parser features
(check | |
| disable | back to summary |
|---|---|
| public IonFactory disable(IonGenerator. Method for disabling specified generator feature
(check | |
| enable | back to summary |
|---|---|
| public IonFactory enable(IonParser. Method for enabling specified parser feature
(check | |
| enable | back to summary |
|---|---|
| public IonFactory enable(IonGenerator. Method for enabling specified generator features
(check | |
| forBinaryWriters | back to summary |
|---|---|
| public static IonFactory forBinaryWriters() Method for creating | |
| forTextualWriters | back to summary |
|---|---|
| public static IonFactory forTextualWriters() Method for creating | |
| getFormatGeneratorFeatures | back to summary |
|---|---|
| public int getFormatGeneratorFeatures() Overrides com.
| |
| getFormatName | back to summary |
|---|---|
| public String getFormatName() Overrides com. Doc from com. Method that returns short textual id identifying format this factory supports. Note sub-classes should override this method; default implementation will return null for all sub-classes | |
| getFormatParserFeatures | back to summary |
|---|---|
| public int getFormatParserFeatures() Overrides com.
| |
| getIonSystem | back to summary |
|---|---|
public IonSystem getIonSystem()
| |
| isEnabled | back to summary |
|---|---|
| public final boolean isEnabled(IonParser. Checked whether specified parser feature is enabled. | |
| isEnabled | back to summary |
|---|---|
| public final boolean isEnabled(IonGenerator. Check whether specified generator feature is enabled. | |
| rebuild | back to summary |
|---|---|
| public IonFactoryBuilder rebuild() Overrides com. Doc from com. Method that allows construction of differently configured factory, starting with settings of this factory.
| |
| setCreateBinaryWriters | back to summary |
|---|---|
| public void setCreateBinaryWriters(boolean b) | |
| version | back to summary |
|---|---|
| public Version version() Overrides com. Implements com. Doc from com. Method called to detect version of the component that implements this interface;
returned version should never be null, but may return specific "not available"
instance (see | |