| Modifier and Type | Field and Description |
|---|---|
| protected static final String | |
| pack-priv static final JavaPropsSchema | |
| public static final String | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| protected | |
| protected | JavaPropsFactory(JavaPropsFactoryBuilder b)
Constructors used by |
| Modifier and Type | Method and Description |
|---|---|
| protected JsonGenerator | _createGenerator(ObjectWriteContext writeCtxt, IOContext ioCtxt, Writer out)
Implements abstract tools. Overridable factory method that actually instantiates generator for
given |
| protected JsonParser | _createParser(ObjectReadContext readCtxt, IOContext ioCtxt, InputStream in)
Implements abstract tools.
|
| protected JsonParser | _createParser(ObjectReadContext readCtxt, IOContext ioCtxt, Reader r)
Implements abstract tools.
|
| protected JsonParser | _createParser(ObjectReadContext readCtxt, IOContext ioCtxt, char[] data, int offset, int len, boolean recyclable)
Implements abstract tools.
|
| protected JsonParser | _createParser(ObjectReadContext readCtxt, IOContext ioCtxt, byte[] data, int offset, int len)
Implements abstract tools.
|
| protected JsonParser | _createParser(ObjectReadContext readCtxt, IOContext ctxt, DataInput input)
Implements abstract tools.
|
| protected JsonGenerator | _createUTF8Generator(ObjectWriteContext writeCtxt, IOContext ioCtxt, OutputStream out)
Implements abstract tools. Overridable factory method that actually instantiates generator for
given |
| protected Writer | _createWriter(IOContext ctioCtxtxt, OutputStream out, JsonEncoding enc)
Overrides tools.
|
| private final JavaPropsSchema | |
| private final JavaPropsSchema | |
| protected Properties | |
| protected Properties | |
| protected <T> T | |
| public static JavaPropsFactoryBuilder | 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 JavaPropsFactory | copy()
Implements abstract tools. Method similar to |
| public JavaPropsGenerator | createGenerator(ObjectWriteContext writeCtxt, JavaPropsSchema schema, Map<?, ?> target)
Convenience method to allow using a pre-constructed |
| public JavaPropsParser | createParser(ObjectReadContext readCtxt, JavaPropsSchema schema, Map<?, ?> content)
Convenience method to allow feeding a pre-parsed |
| 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 JavaPropsFactoryBuilder | 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 boolean | requiresPropertyOrdering()
Overrides tools. Introspection method that higher-level functionality may call to see whether underlying data format requires a stable ordering of object properties or not. |
| 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 |
| CHARSET_ID_LATIN1 | back to summary |
|---|---|
| protected static final String CHARSET_ID_LATIN1 | |
| EMPTY_SCHEMA | back to summary |
|---|---|
| pack-priv static final JavaPropsSchema EMPTY_SCHEMA | |
| FORMAT_NAME_JAVA_PROPERTIES | back to summary |
|---|---|
| public static final String FORMAT_NAME_JAVA_PROPERTIES | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides tools. | |
| JavaPropsFactory | back to summary |
|---|---|
| public JavaPropsFactory() | |
| JavaPropsFactory | back to summary |
|---|---|
| protected JavaPropsFactory(JavaPropsFactory src) | |
| JavaPropsFactory | back to summary |
|---|---|
| protected JavaPropsFactory(JavaPropsFactoryBuilder b) Constructors used by
| |
| _createGenerator | back to summary |
|---|---|
| protected JsonGenerator _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 JsonParser _createParser(ObjectReadContext readCtxt, IOContext ioCtxt, InputStream in) Implements abstract tools.
| |
| _createParser | back to summary |
|---|---|
| protected JsonParser _createParser(ObjectReadContext readCtxt, IOContext ioCtxt, Reader r) Implements abstract tools.
| |
| _createParser | back to summary |
|---|---|
| protected JsonParser _createParser(ObjectReadContext readCtxt, IOContext ioCtxt, char[] data, int offset, int len, boolean recyclable) Implements abstract tools.
| |
| _createParser | back to summary |
|---|---|
| protected JsonParser _createParser(ObjectReadContext readCtxt, IOContext ioCtxt, byte[] data, int offset, int len) Implements abstract tools.
| |
| _createParser | back to summary |
|---|---|
| protected JsonParser _createParser(ObjectReadContext readCtxt, IOContext ctxt, DataInput input) Implements abstract tools.
| |
| _createUTF8Generator | back to summary |
|---|---|
| protected JsonGenerator _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 ctioCtxtxt, OutputStream out, JsonEncoding enc) Overrides tools.
| |
| _getSchema | back to summary |
|---|---|
| private final JavaPropsSchema _getSchema(ObjectReadContext readCtxt) | |
| _getSchema | back to summary |
|---|---|
| private final JavaPropsSchema _getSchema(ObjectWriteContext ctxt) | |
| _loadProperties | back to summary |
|---|---|
| protected Properties _loadProperties(InputStream in, IOContext ctxt) | |
| _loadProperties | back to summary |
|---|---|
| protected Properties _loadProperties(Reader r0, IOContext ctxt) | |
| _reportReadException | back to summary |
|---|---|
| protected <T> T _reportReadException(String msg, Exception rootCause) | |
| builder | back to summary |
|---|---|
| public static JavaPropsFactoryBuilder 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 JavaPropsFactory copy() Implements abstract tools. Doc from tools. Method similar to Implementation should be functionally equivalent to:
factoryInstance.rebuild().build();
| |
| createGenerator | back to summary |
|---|---|
| public JavaPropsGenerator createGenerator(ObjectWriteContext writeCtxt, JavaPropsSchema schema, Map<?, ?> target) Convenience method to allow using a pre-constructed | |
| createParser | back to summary |
|---|---|
| public JavaPropsParser createParser(ObjectReadContext readCtxt, JavaPropsSchema schema, Map<?, ?> content) Convenience method to allow feeding a pre-parsed | |
| 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
| |
| rebuild | back to summary |
|---|---|
| public JavaPropsFactoryBuilder 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.
| |
| requiresPropertyOrdering | back to summary |
|---|---|
| public boolean requiresPropertyOrdering() Overrides tools. Doc from tools. Introspection method that higher-level functionality may call to see whether underlying data format requires a stable ordering of object properties or not. This is usually used for determining whether to force a stable ordering (like alphabetic ordering by name) if no ordering if explicitly specified.
| |
| 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
| |