JSONReader, writer does actually implement write methods itself
and uses delegation for only some special cases.
Life-cycle is such that initial instance (called blueprint)
is constructed first (including possible configuration
using mutant factory methods). This blueprint object
acts as a factory, and is never used for direct writing;
instead, per-call instance is created by calling
perOperationInstance.
| Modifier and Type | Field and Description |
|---|---|
| protected final int | |
| protected final JsonGenerator | |
| protected final TimeZone | |
| protected final TreeCodec | |
| protected final boolean | |
| protected final ValueWriterLocator | _writerLocator
Object that is used to dynamically find Bean (and custom type) value writers |
| private static final TimeZone |
| Access | Constructor and Description |
|---|---|
| public | |
| protected | JSONWriter(JSONWriter
Blueprint instance to base settings of the new instance on base, int Active features for the write operation features, ValueWriterLocator Helper object to use for dynamically located value writers loc, TreeCodec TreeCodec to use for writing tree values, if any tc, JsonGenerator Underlying streaming encoder to use g)Constructor for non-blueprint instances. |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| protected void | |
| protected void | |
| protected String | |
| public int | |
| public boolean | |
| protected String | |
| protected String | |
| public JSONWriter | |
| public JSONWriter | |
| public void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| public void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| public void | writeValue(Object value)
Main entry point for non-blueprint instances: called for the root value to write it out. |
| _features | back to summary |
|---|---|
| protected final int _features | |
| _generator | back to summary |
|---|---|
| protected final JsonGenerator _generator | |
| _timezone | back to summary |
|---|---|
| protected final TimeZone _timezone | |
| _treeCodec | back to summary |
|---|---|
| protected final TreeCodec _treeCodec | |
| _writeNullValues | back to summary |
|---|---|
| protected final boolean _writeNullValues | |
| _writerLocator | back to summary |
|---|---|
| protected final ValueWriterLocator _writerLocator Object that is used to dynamically find Bean (and custom type) value writers | |
| DEFAULT_TIMEZONE | back to summary |
|---|---|
| private static final TimeZone DEFAULT_TIMEZONE | |
| JSONWriter | back to summary |
|---|---|
| public JSONWriter() Constructor used for creating differently configured blueprint instances | |
| JSONWriter | back to summary |
|---|---|
| protected JSONWriter(JSONWriter base, int features, ValueWriterLocator loc, TreeCodec tc, JsonGenerator g) Constructor for non-blueprint instances.
| |
| _badType | back to summary |
|---|---|
| private void _badType(int type, Object value) | |
| _checkUnknown | back to summary |
|---|---|
| protected void _checkUnknown(Object value) throws IOException | |
| _writeValue | back to summary |
|---|---|
| protected void _writeValue(Object value, int type) throws IOException | |
| dateToString | back to summary |
|---|---|
protected String dateToString(Date v)
| |
| features | back to summary |
|---|---|
public int features()
| |
| isEnabled | back to summary |
|---|---|
public boolean isEnabled(JSON.
| |
| keyToString | back to summary |
|---|---|
| protected String keyToString(Object rawKey) | |
| pathToString | back to summary |
|---|---|
protected String pathToString(Path value)
| |
| perOperationInstance | back to summary |
|---|---|
| public JSONWriter perOperationInstance(int features, ValueWriterLocator loc, TreeCodec tc, JsonGenerator g) | |
| withCacheCheck | back to summary |
|---|---|
| public JSONWriter withCacheCheck(int features) | |
| writeBeanValue | back to summary |
|---|---|
| public void writeBeanValue(BeanPropertyWriter[] props, Object bean) throws IOException | |
| writeBigDecimalField | back to summary |
|---|---|
| protected void writeBigDecimalField(String fieldName, BigDecimal v) throws IOException | |
| writeBigDecimalValue | back to summary |
|---|---|
| protected void writeBigDecimalValue(BigDecimal v) throws IOException | |
| writeBigIntegerField | back to summary |
|---|---|
| protected void writeBigIntegerField(String fieldName, BigInteger v) throws IOException | |
| writeBigIntegerValue | back to summary |
|---|---|
| protected void writeBigIntegerValue(BigInteger v) throws IOException | |
| writeBinaryField | back to summary |
|---|---|
| protected void writeBinaryField(String fieldName, byte[] data) throws IOException | |
| writeBinaryValue | back to summary |
|---|---|
| protected void writeBinaryValue(byte[] data) throws IOException | |
| writeBooleanArrayField | back to summary |
|---|---|
| protected void writeBooleanArrayField(String fieldName, boolean[] v) throws IOException | |
| writeBooleanArrayValue | back to summary |
|---|---|
| protected void writeBooleanArrayValue(boolean[] v) throws IOException | |
| writeBooleanField | back to summary |
|---|---|
| protected void writeBooleanField(String fieldName, boolean v) throws IOException | |
| writeBooleanValue | back to summary |
|---|---|
| protected void writeBooleanValue(boolean v) throws IOException | |
| writeCollectionField | back to summary |
|---|---|
| protected void writeCollectionField(String fieldName, Collection<?> v) throws IOException | |
| writeCollectionValue | back to summary |
|---|---|
| protected void writeCollectionValue(Collection<?> v) throws IOException | |
| writeDateField | back to summary |
|---|---|
| protected void writeDateField(String fieldName, Date v) throws IOException | |
| writeDateValue | back to summary |
|---|---|
| protected void writeDateValue(Date v) throws IOException | |
| writeDoubleField | back to summary |
|---|---|
| protected void writeDoubleField(String fieldName, double v) throws IOException | |
| writeDoubleValue | back to summary |
|---|---|
| protected void writeDoubleValue(double v) throws IOException | |
| writeEnumField | back to summary |
|---|---|
| protected void writeEnumField(String fieldName, Enum<?> v) throws IOException | |
| writeEnumValue | back to summary |
|---|---|
| protected void writeEnumValue(Enum<?> v) throws IOException | |
| writeField | back to summary |
|---|---|
| public void writeField(String fieldName, Object value, int type) throws IOException | |
| writeFloatField | back to summary |
|---|---|
| protected void writeFloatField(String fieldName, float v) throws IOException | |
| writeFloatValue | back to summary |
|---|---|
| protected void writeFloatValue(float v) throws IOException | |
| writeIntArrayField | back to summary |
|---|---|
| protected void writeIntArrayField(String fieldName, int[] v) throws IOException | |
| writeIntArrayValue | back to summary |
|---|---|
| protected void writeIntArrayValue(int[] v) throws IOException | |
| writeIntField | back to summary |
|---|---|
| protected void writeIntField(String fieldName, int v) throws IOException | |
| writeIntValue | back to summary |
|---|---|
| protected void writeIntValue(int v) throws IOException | |
| writeIterableField | back to summary |
|---|---|
| protected void writeIterableField(String fieldName, Iterable<?> v) throws IOException | |
| writeIterableValue | back to summary |
|---|---|
| protected void writeIterableValue(Iterable<?> v) throws IOException | |
| writeListField | back to summary |
|---|---|
| protected void writeListField(String fieldName, List<?> v) throws IOException | |
| writeListValue | back to summary |
|---|---|
| protected void writeListValue(List<?> list) throws IOException | |
| writeLongArrayField | back to summary |
|---|---|
| protected void writeLongArrayField(String fieldName, long[] v) throws IOException | |
| writeLongArrayValue | back to summary |
|---|---|
| protected void writeLongArrayValue(long[] v) throws IOException | |
| writeLongField | back to summary |
|---|---|
| protected void writeLongField(String fieldName, long v) throws IOException | |
| writeLongValue | back to summary |
|---|---|
| protected void writeLongValue(long v) throws IOException | |
| writeMapField | back to summary |
|---|---|
| protected void writeMapField(String fieldName, Map<?, ?> v) throws IOException | |
| writeMapValue | back to summary |
|---|---|
| protected void writeMapValue(Map<?, ?> v) throws IOException | |
| writeNullField | back to summary |
|---|---|
| protected void writeNullField(String fieldName) throws IOException | |
| writeNullField | back to summary |
|---|---|
| protected void writeNullField(SerializedString fieldName) throws IOException | |
| writeNullValue | back to summary |
|---|---|
| protected void writeNullValue() throws IOException | |
| writeObjectArrayField | back to summary |
|---|---|
| protected void writeObjectArrayField(String fieldName, Object[] v) throws IOException | |
| writeObjectArrayValue | back to summary |
|---|---|
| protected void writeObjectArrayValue(Object[] v) throws IOException | |
| writeStringField | back to summary |
|---|---|
| protected void writeStringField(String fieldName, String v) throws IOException | |
| writeStringLikeField | back to summary |
|---|---|
| protected void writeStringLikeField(String fieldName, String v, int actualType) throws IOException | |
| writeStringLikeValue | back to summary |
|---|---|
| protected void writeStringLikeValue(String v, int actualType) throws IOException | |
| writeStringValue | back to summary |
|---|---|
| protected void writeStringValue(String v) throws IOException | |
| writeTreeNodeField | back to summary |
|---|---|
| protected void writeTreeNodeField(String fieldName, TreeNode v) throws IOException | |
| writeTreeNodeValue | back to summary |
|---|---|
| protected void writeTreeNodeValue(TreeNode v) throws IOException | |
| writeUnknownField | back to summary |
|---|---|
| protected void writeUnknownField(String fieldName, Object data) throws IOException | |
| writeUnknownValue | back to summary |
|---|---|
| protected void writeUnknownValue(Object data) throws IOException | |
| writeValue | back to summary |
|---|---|
| public void writeValue(Object value) throws IOException Main entry point for non-blueprint instances: called for the root value to write it out. | |