| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected void | |
| protected OutputStream | |
| protected InputStream | Returns: InputStream constructedFile to open stream for f)Helper methods used for constructing an |
| protected OutputStream | Returns: OutputStream constructedFile to open stream for f)Helper methods used for constructing an |
| protected InputStream | Returns: InputStream constructed for givenURLSource to read content to parse from url)Helper method used for constructing an optimal stream for parsers to use, when input is to be read from an URL. |
| protected <T> T | |
| public abstract boolean | Returns: Whether format supported by this factory supports native binary contentIntrospection 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 abstract boolean | Returns: Whether this factory supports non-blocking ("async") parsing or not (and consequently whethercreateNonBlockingXxx() method(s) work)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 abstract boolean | Returns: Whether parsers and generators constructed by this factory can use specified format schema instanceSchema instance to check schema)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 abstract JsonGenerator | |
| public abstract JsonGenerator | |
| public abstract JsonGenerator | |
| public abstract JsonGenerator | |
| public abstract JsonGenerator | |
| public abstract JsonGenerator | |
| public abstract JsonParser | Returns: Constructed parserOptional method for constructing parser for non-blocking parsing
via |
| public abstract JsonParser | Returns: Constructed parserOptional method for constructing parser for non-blocking parsing
via |
| public abstract JsonParser | |
| public abstract JsonParser | |
| public abstract JsonParser | |
| public abstract JsonParser | |
| public abstract JsonParser | |
| public abstract JsonParser | |
| public abstract JsonParser | |
| public abstract JsonParser | |
| public abstract JsonParser | |
| public abstract JsonParser | |
| public abstract int | Returns: Bitset of enabledJsonFactory.s.Method for getting bit set of all |
| public abstract int | |
| public abstract String | Returns: Name of the format handled by parsers, generators this factory createsMethod that returns short textual id identifying format this factory supports. |
| public abstract int | |
| public abstract Class | Returns: Type of format-specific stream read features, if any;null if noneMethod for accessing kind of |
| public abstract Class | Returns: Type of format-specific stream read features, if any;null if noneMethod for accessing kind of |
| public abstract int | |
| public abstract int | |
| public abstract boolean | |
| public abstract boolean | |
| public abstract boolean | |
| public abstract boolean | |
| public abstract boolean | |
| public abstract boolean | Returns: Whether format supported by this factory requires Object properties to be ordered.Introspection method that higher-level functionality may call to see whether underlying data format requires a stable ordering of object properties or not. |
| public abstract StreamReadConstraints | Returns: Constraints to apply to reads done byJsonParsers constructed
by this factory.Get the constraints to apply when performing streaming reads. |
| public abstract StreamWriteConstraints | Returns: Constraints to apply to reads done byJsonGenerators constructed
by this factory.Get the constraints to apply when performing streaming writes. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| TokenStreamFactory | back to summary |
|---|---|
| public TokenStreamFactory() | |
| _checkRangeBoundsForByteArray | back to summary |
|---|---|
| protected void _checkRangeBoundsForByteArray(byte[] data, int offset, int len) throws IllegalArgumentException | |
| _checkRangeBoundsForCharArray | back to summary |
|---|---|
| protected void _checkRangeBoundsForCharArray(char[] data, int offset, int len) throws IOException | |
| _createDataOutputWrapper | back to summary |
|---|---|
| protected OutputStream _createDataOutputWrapper(DataOutput out) | |
| _fileInputStream | back to summary |
|---|---|
| protected InputStream _fileInputStream(File f) throws IOException Helper methods used for constructing an
| |
| _fileOutputStream | back to summary |
|---|---|
| protected OutputStream _fileOutputStream(File f) throws IOException Helper methods used for constructing an
| |
| _optimizedStreamFromURL | back to summary |
|---|---|
| protected InputStream _optimizedStreamFromURL(URL url) throws IOException Helper method used for constructing an optimal stream for parsers to use, when input is to be read from an URL. This helps when reading file content via URL.
| |
| _reportRangeError | back to summary |
|---|---|
| protected <T> T _reportRangeError(String msg) throws IllegalArgumentException | |
| canHandleBinaryNatively | back to summary |
|---|---|
| public abstract boolean canHandleBinaryNatively() 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
| |
| canParseAsync | back to summary |
|---|---|
| public abstract boolean canParseAsync() 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
| |
| canUseSchema | back to summary |
|---|---|
| public abstract boolean canUseSchema(FormatSchema schema) 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.
| |
| createGenerator | back to summary |
|---|---|
| public abstract JsonGenerator createGenerator(DataOutput out, JsonEncoding enc) throws IOException | |
| createGenerator | back to summary |
|---|---|
| public abstract JsonGenerator createGenerator(DataOutput out) throws IOException | |
| createGenerator | back to summary |
|---|---|
| public abstract JsonGenerator createGenerator(File f, JsonEncoding enc) throws IOException | |
| createGenerator | back to summary |
|---|---|
| public abstract JsonGenerator createGenerator(OutputStream out) throws IOException | |
| createGenerator | back to summary |
|---|---|
| public abstract JsonGenerator createGenerator(OutputStream out, JsonEncoding enc) throws IOException | |
| createGenerator | back to summary |
|---|---|
| public abstract JsonGenerator createGenerator(Writer w) throws IOException | |
| createNonBlockingByteArrayParser | back to summary |
|---|---|
| public abstract JsonParser createNonBlockingByteArrayParser() throws IOException Optional method for constructing parser for non-blocking parsing
via
If this factory does not support non-blocking parsing (either at all,
or from byte array),
will throw Note that JSON-backed factory only supports parsing of UTF-8 encoded JSON content (and US-ASCII since it is proper subset); other encodings are not supported at this point.
| |
| createNonBlockingByteBufferParser | back to summary |
|---|---|
| public abstract JsonParser createNonBlockingByteBufferParser() throws IOException Optional method for constructing parser for non-blocking parsing
via
If this factory does not support non-blocking parsing (either at all,
or from byte array),
will throw Note that JSON-backed factory only supports parsing of UTF-8 encoded JSON content (and US-ASCII since it is proper subset); other encodings are not supported at this point.
| |
| createParser | back to summary |
|---|---|
| public abstract JsonParser createParser(byte[] data) throws IOException | |
| createParser | back to summary |
|---|---|
| public abstract JsonParser createParser(byte[] data, int offset, int len) throws IOException | |
| createParser | back to summary |
|---|---|
| public abstract JsonParser createParser(char[] content) throws IOException | |
| createParser | back to summary |
|---|---|
| public abstract JsonParser createParser(char[] content, int offset, int len) throws IOException | |
| createParser | back to summary |
|---|---|
| public abstract JsonParser createParser(DataInput in) throws IOException | |
| createParser | back to summary |
|---|---|
| public abstract JsonParser createParser(File f) throws IOException | |
| createParser | back to summary |
|---|---|
| public abstract JsonParser createParser(InputStream in) throws IOException | |
| createParser | back to summary |
|---|---|
| public abstract JsonParser createParser(Reader r) throws IOException | |
| createParser | back to summary |
|---|---|
| public abstract JsonParser createParser(String content) throws IOException | |
| createParser | back to summary |
|---|---|
| public abstract JsonParser createParser(URL url) throws IOException | |
| getFactoryFeatures | back to summary |
|---|---|
| public abstract int getFactoryFeatures() Method for getting bit set of all
| |
| getFormatGeneratorFeatures | back to summary |
|---|---|
| public abstract int getFormatGeneratorFeatures() | |
| getFormatName | back to summary |
|---|---|
| public abstract String getFormatName() Method that returns short textual id identifying format this factory supports.
| |
| getFormatParserFeatures | back to summary |
|---|---|
| public abstract int getFormatParserFeatures() | |
| getFormatReadFeatureType | back to summary |
|---|---|
| public abstract Class Method for accessing kind of
| |
| getFormatWriteFeatureType | back to summary |
|---|---|
| public abstract Class Method for accessing kind of
| |
| getGeneratorFeatures | back to summary |
|---|---|
| public abstract int getGeneratorFeatures() | |
| getParserFeatures | back to summary |
|---|---|
| public abstract int getParserFeatures() | |
| isEnabled | back to summary |
|---|---|
| public abstract boolean isEnabled(JsonFactory. | |
| isEnabled | back to summary |
|---|---|
| public abstract boolean isEnabled(StreamReadFeature f) | |
| isEnabled | back to summary |
|---|---|
| public abstract boolean isEnabled(StreamWriteFeature f) | |
| isEnabled | back to summary |
|---|---|
| public abstract boolean isEnabled(JsonParser. | |
| isEnabled | back to summary |
|---|---|
| public abstract boolean isEnabled(JsonGenerator. | |
| requiresPropertyOrdering | back to summary |
|---|---|
| public abstract boolean requiresPropertyOrdering() 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.
Default implementation returns
| |
| streamReadConstraints | back to summary |
|---|---|
| public abstract StreamReadConstraints streamReadConstraints() Get the constraints to apply when performing streaming reads.
| |
| streamWriteConstraints | back to summary |
|---|---|
| public abstract StreamWriteConstraints streamWriteConstraints() Get the constraints to apply when performing streaming writes.
| |