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 | |
| 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 | |
| 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 JacksonException | |
| _writeValue | back to summary |
|---|---|
| protected void _writeValue(Object value, int type) throws JacksonException | |
| 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 JacksonException | |
| writeBigDecimalProperty | back to summary |
|---|---|
| protected void writeBigDecimalProperty(String propName, BigDecimal v) throws JacksonException | |
| writeBigDecimalValue | back to summary |
|---|---|
| protected void writeBigDecimalValue(BigDecimal v) throws JacksonException | |
| writeBigIntegerProperty | back to summary |
|---|---|
| protected void writeBigIntegerProperty(String propName, BigInteger v) throws JacksonException | |
| writeBigIntegerValue | back to summary |
|---|---|
| protected void writeBigIntegerValue(BigInteger v) throws JacksonException | |
| writeBinaryProperty | back to summary |
|---|---|
| protected void writeBinaryProperty(String propName, byte[] data) throws JacksonException | |
| writeBinaryValue | back to summary |
|---|---|
| protected void writeBinaryValue(byte[] data) throws JacksonException | |
| writeBooleanArrayProperty | back to summary |
|---|---|
| protected void writeBooleanArrayProperty(String propName, boolean[] v) throws JacksonException | |
| writeBooleanArrayValue | back to summary |
|---|---|
| protected void writeBooleanArrayValue(boolean[] v) throws JacksonException | |
| writeBooleanProperty | back to summary |
|---|---|
| protected void writeBooleanProperty(String propName, boolean v) throws JacksonException | |
| writeBooleanValue | back to summary |
|---|---|
| protected void writeBooleanValue(boolean v) throws JacksonException | |
| writeCollectionProperty | back to summary |
|---|---|
| protected void writeCollectionProperty(String propName, Collection<?> v) throws JacksonException | |
| writeCollectionValue | back to summary |
|---|---|
| protected void writeCollectionValue(Collection<?> v) throws JacksonException | |
| writeDateProperty | back to summary |
|---|---|
| protected void writeDateProperty(String propName, Date v) throws JacksonException | |
| writeDateValue | back to summary |
|---|---|
| protected void writeDateValue(Date v) throws JacksonException | |
| writeDoubleArrayField | back to summary |
|---|---|
| protected void writeDoubleArrayField(String fieldName, double[] v) throws JacksonException | |
| writeDoubleArrayValue | back to summary |
|---|---|
| protected void writeDoubleArrayValue(double[] v) throws JacksonException | |
| writeDoubleProperty | back to summary |
|---|---|
| protected void writeDoubleProperty(String propName, double v) throws JacksonException | |
| writeDoubleValue | back to summary |
|---|---|
| protected void writeDoubleValue(double v) throws JacksonException | |
| writeEnumProperty | back to summary |
|---|---|
| protected void writeEnumProperty(String propName, Enum<?> v) throws JacksonException | |
| writeEnumValue | back to summary |
|---|---|
| protected void writeEnumValue(Enum<?> v) throws JacksonException | |
| writeFloatArrayField | back to summary |
|---|---|
| protected void writeFloatArrayField(String fieldName, float[] v) throws JacksonException | |
| writeFloatArrayValue | back to summary |
|---|---|
| protected void writeFloatArrayValue(float[] v) throws JacksonException | |
| writeFloatProperty | back to summary |
|---|---|
| protected void writeFloatProperty(String fieldName, float v) throws JacksonException | |
| writeFloatValue | back to summary |
|---|---|
| protected void writeFloatValue(float v) throws JacksonException | |
| writeIntArrayProperty | back to summary |
|---|---|
| protected void writeIntArrayProperty(String propName, int[] v) throws JacksonException | |
| writeIntArrayValue | back to summary |
|---|---|
| protected void writeIntArrayValue(int[] v) throws JacksonException | |
| writeIntProperty | back to summary |
|---|---|
| protected void writeIntProperty(String propName, int v) throws JacksonException | |
| writeIntValue | back to summary |
|---|---|
| protected void writeIntValue(int v) throws JacksonException | |
| writeIterableProperty | back to summary |
|---|---|
| protected void writeIterableProperty(String propName, Iterable<?> v) throws JacksonException | |
| writeIterableValue | back to summary |
|---|---|
| protected void writeIterableValue(Iterable<?> v) throws JacksonException | |
| writeListProperty | back to summary |
|---|---|
| protected void writeListProperty(String propName, List<?> v) throws JacksonException | |
| writeListValue | back to summary |
|---|---|
| protected void writeListValue(List<?> list) throws JacksonException | |
| writeLongArrayProperty | back to summary |
|---|---|
| protected void writeLongArrayProperty(String propName, long[] v) throws JacksonException | |
| writeLongArrayValue | back to summary |
|---|---|
| protected void writeLongArrayValue(long[] v) throws JacksonException | |
| writeLongProperty | back to summary |
|---|---|
| protected void writeLongProperty(String propName, long v) throws JacksonException | |
| writeLongValue | back to summary |
|---|---|
| protected void writeLongValue(long v) throws JacksonException | |
| writeMapProperty | back to summary |
|---|---|
| protected void writeMapProperty(String propName, Map<?, ?> v) throws JacksonException | |
| writeMapValue | back to summary |
|---|---|
| protected void writeMapValue(Map<?, ?> v) throws JacksonException | |
| writeNullProperty | back to summary |
|---|---|
| protected void writeNullProperty(String propName) throws JacksonException | |
| writeNullProperty | back to summary |
|---|---|
| protected void writeNullProperty(SerializedString propName) throws JacksonException | |
| writeNullValue | back to summary |
|---|---|
| protected void writeNullValue() throws JacksonException | |
| writeObjectArrayProperty | back to summary |
|---|---|
| protected void writeObjectArrayProperty(String propName, Object[] v) throws JacksonException | |
| writeObjectArrayValue | back to summary |
|---|---|
| protected void writeObjectArrayValue(Object[] v) throws JacksonException | |
| writeProperty | back to summary |
|---|---|
| public void writeProperty(String propName, Object value, int type) throws JacksonException | |
| writeShortArrayField | back to summary |
|---|---|
| protected void writeShortArrayField(String fieldName, short[] v) throws JacksonException | |
| writeShortArrayValue | back to summary |
|---|---|
| protected void writeShortArrayValue(short[] v) throws JacksonException | |
| writeStringLikeProperty | back to summary |
|---|---|
| protected void writeStringLikeProperty(String propName, String v, int actualType) throws JacksonException | |
| writeStringLikeValue | back to summary |
|---|---|
| protected void writeStringLikeValue(String v, int actualType) throws JacksonException | |
| writeStringProperty | back to summary |
|---|---|
| protected void writeStringProperty(String propName, String v) throws JacksonException | |
| writeStringValue | back to summary |
|---|---|
| protected void writeStringValue(String v) throws JacksonException | |
| writeTreeNodeProperty | back to summary |
|---|---|
| protected void writeTreeNodeProperty(String propName, TreeNode v) throws JacksonException | |
| writeTreeNodeValue | back to summary |
|---|---|
| protected void writeTreeNodeValue(TreeNode v) throws JacksonException | |
| writeUnknownProperty | back to summary |
|---|---|
| protected void writeUnknownProperty(String propName, Object data) throws JacksonException | |
| writeUnknownValue | back to summary |
|---|---|
| protected void writeUnknownValue(Object data) throws JacksonException | |
| writeValue | back to summary |
|---|---|
| public void writeValue(Object value) throws JacksonException Main entry point for non-blueprint instances: called for the root value to write it out. | |