Top Fields Constructors Methods
com.fasterxml.jackson.dataformat.javaprop.impl

public Class PropertiesBackedGenerator

extends JavaPropsGenerator
Class Inheritance
Imports
java.io.*, java.util.Map, .Properties, com.fasterxml.jackson.core.*, com.fasterxml.jackson.core.io.IOContext, com.fasterxml.jackson.dataformat.javaprop.JavaPropsGenerator

Field Summary

Modifier and TypeField and Description
protected final Map<String, Object>
_content

Underlying Properties that we will update with logical properties written out.

Inherited from com.fasterxml.jackson.dataformat.javaprop.JavaPropsGenerator:
_basePath_headerChecked_indentLength_jpropContext_schema_streamWriteConstraintsBOGUS_WRITE_CONTEXTSHORT_WRITE

Constructor Summary

AccessConstructor and Description
public
PropertiesBackedGenerator(IOContext ctxt, Map<?, ?> content, int stdFeatures, ObjectCodec codec)

public
PropertiesBackedGenerator(IOContext ctxt, Properties props, int stdFeatures, ObjectCodec codec)
Deprecated

Method Summary

Modifier and TypeMethod and Description
protected void
protected void
_releaseBuffers()

Implements abstract com.fasterxml.jackson.core.base.GeneratorBase._releaseBuffers.

Method called to release any buffers generator may be holding, once generator is being closed.

protected void
protected void
protected void
protected void
protected void
protected void
_writeRaw(char[] text, int offset, int len)

Implements abstract com.fasterxml.jackson.dataformat.javaprop.JavaPropsGenerator._writeRaw.

protected void
protected void
protected void
public void
close()

Overrides com.fasterxml.jackson.core.base.GeneratorBase.close.

Implements java.io.Closeable.close.

Method called to close this generator, so that no more content can be written.

public void
flush()

Implements abstract com.fasterxml.jackson.core.base.GeneratorBase.flush.

Implements java.io.Flushable.flush.

Method called to flush any buffered content to the underlying target (output stream, writer), and to flush the target itself as well.

public Object
getOutputTarget()

Overrides com.fasterxml.jackson.core.JsonGenerator.getOutputTarget.

Method that can be used to get access to object that is used as target for generated output; this is usually either OutputStream or Writer, depending on what generator was constructed with.

Inherited from com.fasterxml.jackson.dataformat.javaprop.JavaPropsGenerator:
_verifyValueWriteassignCurrentValuecanOmitFieldscanUseSchemacanWriteBinaryNativelycanWriteFormattedNumberscanWriteObjectIdcanWriteTypeIdcurrentValuegetCurrentValuegetOutputContextgetSchemagetWriteCapabilitiessetCurrentValuesetPrettyPrintersetSchemastreamWriteConstraintsuseDefaultPrettyPrinterversionwriteBinarywriteBooleanwriteEndArraywriteEndObjectwriteFieldNamewriteNullwriteNumberwriteNumberwriteNumberwriteNumberwriteNumberwriteNumberwriteNumberwriteRawwriteRawwriteRawwriteRawwriteRawwriteRawUTF8StringwriteStartArraywriteStartObjectwriteStringwriteStringwriteUTF8String

Field Detail

_contentback to summary
protected final Map<String, Object> _content

Underlying Properties that we will update with logical properties written out.

Constructor Detail

PropertiesBackedGeneratorback to summary
public PropertiesBackedGenerator(IOContext ctxt, Map<?, ?> content, int stdFeatures, ObjectCodec codec)
Annotations
@SuppressWarnings:unchecked
PropertiesBackedGeneratorback to summary
public PropertiesBackedGenerator(IOContext ctxt, Properties props, int stdFeatures, ObjectCodec codec)

Deprecated

Annotations
@SuppressWarnings:unchecked
@Deprecated

Method Detail

_appendFieldNameback to summary
protected void _appendFieldName(StringBuilder path, String name)

Implements abstract com.fasterxml.jackson.dataformat.javaprop.JavaPropsGenerator._appendFieldName.

Annotations
@Override
_releaseBuffersback to summary
protected void _releaseBuffers()

Implements abstract com.fasterxml.jackson.core.base.GeneratorBase._releaseBuffers.

Doc from com.fasterxml.jackson.core.base.GeneratorBase._releaseBuffers.

Method called to release any buffers generator may be holding, once generator is being closed.

Annotations
@Override
_writeEscapedEntryback to summary
protected void _writeEscapedEntry(char[] text, int offset, int len) throws IOException

Implements abstract com.fasterxml.jackson.dataformat.javaprop.JavaPropsGenerator._writeEscapedEntry.

Annotations
@Override
_writeEscapedEntryback to summary
protected void _writeEscapedEntry(String value) throws IOException

Implements abstract com.fasterxml.jackson.dataformat.javaprop.JavaPropsGenerator._writeEscapedEntry.

Annotations
@Override
_writeRawback to summary
protected void _writeRaw(char c) throws IOException

Implements abstract com.fasterxml.jackson.dataformat.javaprop.JavaPropsGenerator._writeRaw.

Annotations
@Override
_writeRawback to summary
protected void _writeRaw(String text) throws IOException

Implements abstract com.fasterxml.jackson.dataformat.javaprop.JavaPropsGenerator._writeRaw.

Annotations
@Override
_writeRawback to summary
protected void _writeRaw(StringBuilder text) throws IOException

Implements abstract com.fasterxml.jackson.dataformat.javaprop.JavaPropsGenerator._writeRaw.

Annotations
@Override
_writeRawback to summary
protected void _writeRaw(char[] text, int offset, int len) throws IOException

Implements abstract com.fasterxml.jackson.dataformat.javaprop.JavaPropsGenerator._writeRaw.

Annotations
@Override
_writeRawLongback to summary
protected void _writeRawLong(String text) throws IOException
_writeRawLongback to summary
protected void _writeRawLong(StringBuilder text) throws IOException
_writeUnescapedEntryback to summary
protected void _writeUnescapedEntry(String value) throws IOException

Implements abstract com.fasterxml.jackson.dataformat.javaprop.JavaPropsGenerator._writeUnescapedEntry.

Annotations
@Override
closeback to summary
public void close() throws IOException

Overrides com.fasterxml.jackson.core.base.GeneratorBase.close.

Implements java.io.Closeable.close.

Doc from com.fasterxml.jackson.core.JsonGenerator.close.

Method called to close this generator, so that no more content can be written.

Whether the underlying target (stream, writer) gets closed depends on whether this generator either manages the target (i.e. is the only one with access to the target -- case if caller passes a reference to the resource such as File, but not stream); or has feature Feature#AUTO_CLOSE_TARGET enabled. If either of above is true, the target is also closed. Otherwise (not managing, feature not enabled), target is not closed.

Annotations
@Override
Exceptions
IOException:
if there is either an underlying I/O problem
flushback to summary
public void flush() throws IOException

Implements abstract com.fasterxml.jackson.core.base.GeneratorBase.flush.

Implements java.io.Flushable.flush.

Doc from com.fasterxml.jackson.core.JsonGenerator.flush.

Method called to flush any buffered content to the underlying target (output stream, writer), and to flush the target itself as well.

Annotations
@Override
Exceptions
IOException:
if there is either an underlying I/O problem or encoding issue at format layer
getOutputTargetback to summary
public Object getOutputTarget()

Overrides com.fasterxml.jackson.core.JsonGenerator.getOutputTarget.

Doc from com.fasterxml.jackson.core.JsonGenerator.getOutputTarget.

Method that can be used to get access to object that is used as target for generated output; this is usually either OutputStream or Writer, depending on what generator was constructed with. Note that returned value may be null in some cases; including case where implementation does not want to exposed raw source to caller. In cases where output has been decorated, object returned here is the decorated version; this allows some level of interaction between users of generator and decorator object.

In general use of this accessor should be considered as "last effort", i.e. only used if no other mechanism is applicable.

Returns:Object

Output target this generator was configured with

Annotations
@Override