| Modifier and Type | Field and Description |
|---|---|
| protected final DumpSettings | _dumpSettings
Configuration for underlying generator to follow, if specified;
left as |
| protected final LoadSettings | _loadSettings
Configuration for underlying parser to follow, if specified;
left as |
| protected final StringQuotingChecker | _quotingChecker
Helper object used to determine whether property names, String values must be quoted or not. |
| protected final SpecVersion | _version
YAML version for underlying generator to follow, if specified. |
| protected static final int | DEFAULT_YAML_GENERATOR_FEATURE_FLAGS
Bitfield (set of flags) of all generator features that are enabled by default. |
| protected static final int | DEFAULT_YAML_PARSER_FEATURE_FLAGS
Bitfield (set of flags) of all generator features that are enabled by default. |
| public static final String | FORMAT_NAME_YAML
Name used to identify YAML format. |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | YAMLFactory()
Default constructor used to create factory instances that may be
used to construct an instance with default settings, instead of
using |
| public | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected YAMLGenerator | _createGenerator(ObjectWriteContext writeCtxt, IOContext ioCtxt, Writer out)
Implements abstract tools. Overridable factory method that actually instantiates generator for
given |
| protected YAMLParser | _createParser(ObjectReadContext readCtxt, IOContext ioCtxt, InputStream in)
Implements abstract tools.
|
| protected YAMLParser | _createParser(ObjectReadContext readCtxt, IOContext ioCtxt, Reader r)
Implements abstract tools.
|
| protected YAMLParser | _createParser(ObjectReadContext readCtxt, IOContext ioCtxt, char[] data, int offset, int len, boolean recyclable)
Implements abstract tools.
|
| protected YAMLParser | _createParser(ObjectReadContext readCtxt, IOContext ioCtxt, byte[] data, int offset, int len)
Implements abstract tools.
|
| protected JsonParser | _createParser(ObjectReadContext readCtxt, IOContext ioCtxt, DataInput input)
Implements abstract tools.
|
| protected Reader | |
| protected Reader | |
| protected YAMLGenerator | _createUTF8Generator(ObjectWriteContext writeCtxt, IOContext ioCtxt, OutputStream out)
Implements abstract tools. Overridable factory method that actually instantiates generator for
given |
| protected Writer | _createWriter(IOContext ioCtxt, OutputStream out, JsonEncoding enc)
Overrides tools.
|
| public static YAMLFactoryBuilder | builder()
Main factory method to use for constructing |
| public boolean | canParseAsync()
Implements abstract tools. Introspection method that can be used to check whether this
factory can create non-blocking parsers: parsers that do not
use blocking I/O abstractions but instead use a
|
| public boolean | canUseCharArrays()
Overrides tools. Introspection method that can be used by base factory to check
whether access using |
| public boolean | canUseSchema(FormatSchema schema)
Implements abstract tools. Method that can be used to quickly check whether given schema is something that parsers and/or generators constructed by this factory could use. |
| public YAMLFactory | copy()
Implements abstract tools. Method similar to |
| public String | getFormatName()
Implements abstract tools. Method that returns short textual id identifying format this factory supports. |
| public int | |
| public Class | getFormatReadFeatureType()
Overrides tools. Method for accessing kind of |
| public int | |
| public Class | getFormatWriteFeatureType()
Overrides tools. Method for accessing kind of |
| public boolean | |
| public boolean | |
| protected Object | readResolve()
Method that we need to override to actually make restoration go through constructors etc. |
| public YAMLFactoryBuilder | rebuild()
Implements abstract tools. Method that can be used to create differently configured stream factories: it will create and return a Builder instance with exact settings of this stream factory. |
| public TokenStreamFactory | snapshot()
Implements abstract tools. Implements tools. Instances are immutable so just return `this` |
| public Version | version()
Implements abstract tools. Implements tools. 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 |
| _dumpSettings | back to summary |
|---|---|
| protected final DumpSettings _dumpSettings Configuration for underlying generator to follow, if specified;
left as
These
| |
| _loadSettings | back to summary |
|---|---|
| protected final LoadSettings _loadSettings Configuration for underlying parser to follow, if specified;
left as | |
| _quotingChecker | back to summary |
|---|---|
| protected final StringQuotingChecker _quotingChecker Helper object used to determine whether property names, String values must be quoted or not. | |
| _version | back to summary |
|---|---|
| protected final SpecVersion _version YAML version for underlying generator to follow, if specified. | |
| DEFAULT_YAML_GENERATOR_FEATURE_FLAGS | back to summary |
|---|---|
| protected static final int DEFAULT_YAML_GENERATOR_FEATURE_FLAGS Bitfield (set of flags) of all generator features that are enabled by default. | |
| DEFAULT_YAML_PARSER_FEATURE_FLAGS | back to summary |
|---|---|
| protected static final int DEFAULT_YAML_PARSER_FEATURE_FLAGS Bitfield (set of flags) of all generator features that are enabled by default. | |
| FORMAT_NAME_YAML | back to summary |
|---|---|
| public static final String FORMAT_NAME_YAML Name used to identify YAML format.
(and returned by | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides tools. | |
| YAMLFactory | back to summary |
|---|---|
| public YAMLFactory() Default constructor used to create factory instances that may be
used to construct an instance with default settings, instead of
using | |
| YAMLFactory | back to summary |
|---|---|
| public YAMLFactory(YAMLFactory src) | |
| YAMLFactory | back to summary |
|---|---|
| protected YAMLFactory(YAMLFactoryBuilder b) Constructors used by
| |
| _createGenerator | back to summary |
|---|---|
| protected YAMLGenerator _createGenerator(ObjectWriteContext writeCtxt, IOContext ioCtxt, Writer out) Implements abstract tools. Doc from tools. Overridable factory method that actually instantiates generator for
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 YAMLParser _createParser(ObjectReadContext readCtxt, IOContext ioCtxt, InputStream in) Implements abstract tools.
| |
| _createParser | back to summary |
|---|---|
| protected YAMLParser _createParser(ObjectReadContext readCtxt, IOContext ioCtxt, Reader r) Implements abstract tools.
| |
| _createParser | back to summary |
|---|---|
| protected YAMLParser _createParser(ObjectReadContext readCtxt, IOContext ioCtxt, char[] data, int offset, int len, boolean recyclable) Implements abstract tools.
| |
| _createParser | back to summary |
|---|---|
| protected YAMLParser _createParser(ObjectReadContext readCtxt, IOContext ioCtxt, byte[] data, int offset, int len) Implements abstract tools.
| |
| _createParser | back to summary |
|---|---|
| protected JsonParser _createParser(ObjectReadContext readCtxt, IOContext ioCtxt, DataInput input) Implements abstract tools.
| |
| _createReader | back to summary |
|---|---|
| protected Reader _createReader(InputStream in, JsonEncoding enc, IOContext ctxt) | |
| _createReader | back to summary |
|---|---|
| protected Reader _createReader(byte[] data, int offset, int len, JsonEncoding enc, IOContext ctxt) | |
| _createUTF8Generator | back to summary |
|---|---|
| protected YAMLGenerator _createUTF8Generator(ObjectWriteContext writeCtxt, IOContext ioCtxt, OutputStream out) Implements abstract tools. Doc from tools. Overridable factory method that actually instantiates generator for
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.
| |
| _createWriter | back to summary |
|---|---|
| protected Writer _createWriter(IOContext ioCtxt, OutputStream out, JsonEncoding enc) Overrides tools.
| |
| builder | back to summary |
|---|---|
| public static YAMLFactoryBuilder builder() Main factory method to use for constructing | |
| canParseAsync | back to summary |
|---|---|
| public boolean canParseAsync() Implements abstract tools. Doc from tools. Introspection method that can be used to check whether this
factory can create non-blocking parsers: parsers that do not
use blocking I/O abstractions but instead use a
| |
| canUseCharArrays | back to summary |
|---|---|
| public boolean canUseCharArrays() Overrides tools. Doc from tools. Introspection method that can be used by base factory to check
whether access using
Default implementation simply returns
| |
| canUseSchema | back to summary |
|---|---|
| public boolean canUseSchema(FormatSchema schema) Implements abstract tools. Doc from tools. Method that can be used to quickly check whether given schema is something that parsers and/or generators constructed by this factory could use. Note that this means possible use, at the level of data format (i.e. schema is for same data format as parsers and generators this factory constructs); individual schema instances may have further usage restrictions.
| |
| copy | back to summary |
|---|---|
| public YAMLFactory copy() Implements abstract tools. Doc from tools. Method similar to Implementation should be functionally equivalent to:
factoryInstance.rebuild().build();
| |
| getFormatName | back to summary |
|---|---|
| public String getFormatName() Implements abstract tools. Doc from tools. Method that returns short textual id identifying format this factory supports.
| |
| getFormatReadFeatures | back to summary |
|---|---|
| public int getFormatReadFeatures() Overrides tools.
| |
| getFormatReadFeatureType | back to summary |
|---|---|
| public Class Overrides tools. Doc from tools. Method for accessing kind of
| |
| getFormatWriteFeatures | back to summary |
|---|---|
| public int getFormatWriteFeatures() Overrides tools.
| |
| getFormatWriteFeatureType | back to summary |
|---|---|
| public Class Overrides tools. Doc from tools. Method for accessing kind of
| |
| isEnabled | back to summary |
|---|---|
| public boolean isEnabled(YAMLReadFeature f) | |
| isEnabled | back to summary |
|---|---|
| public boolean isEnabled(YAMLWriteFeature f) | |
| readResolve | back to summary |
|---|---|
| protected Object readResolve() Method that we need to override to actually make restoration go through constructors etc. | |
| rebuild | back to summary |
|---|---|
| public YAMLFactoryBuilder rebuild() Implements abstract tools. Doc from tools. Method that can be used to create differently configured stream factories: it will create and return a Builder instance with exact settings of this stream factory.
| |
| snapshot | back to summary |
|---|---|
| public TokenStreamFactory snapshot() Implements abstract tools. Implements tools. Instances are immutable so just return `this`
| |
| version | back to summary |
|---|---|
| public Version version() Implements abstract tools. Implements tools. Doc from tools. 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
| |