Class JavaPropsGenerator
java.lang.Object
com.fasterxml.jackson.core.JsonGenerator
com.fasterxml.jackson.core.base.GeneratorBase
com.fasterxml.jackson.dataformat.javaprop.JavaPropsGenerator
- All Implemented Interfaces:
com.fasterxml.jackson.core.Versioned
,Closeable
,Flushable
,AutoCloseable
- Direct Known Subclasses:
PropertiesBackedGenerator
,WriterBackedGenerator
public abstract class JavaPropsGenerator
extends com.fasterxml.jackson.core.base.GeneratorBase
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.core.JsonGenerator
com.fasterxml.jackson.core.JsonGenerator.Feature
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final StringBuilder
protected boolean
protected int
protected final com.fasterxml.jackson.core.io.IOContext
protected JPropWriteContext
Current context, in form we can use it (GeneratorBase has untyped reference; left as null)protected JavaPropsSchema
Definition of columns being written, if available.protected static final com.fasterxml.jackson.core.json.JsonWriteContext
Since our context object does NOT implement standard write context, need to do something like use a placeholder...private static final JavaPropsSchema
protected static final int
Fields inherited from class com.fasterxml.jackson.core.base.GeneratorBase
_cfgNumbersAsStrings, _closed, _features, _objectCodec, _writeContext, DERIVED_FEATURES_MASK, MAX_BIG_DECIMAL_SCALE, SURR1_FIRST, SURR1_LAST, SURR2_FIRST, SURR2_LAST, WRITE_BINARY, WRITE_BOOLEAN, WRITE_NULL, WRITE_NUMBER, WRITE_RAW, WRITE_STRING
Fields inherited from class com.fasterxml.jackson.core.JsonGenerator
_cfgPrettyPrinter, DEFAULT_BINARY_WRITE_CAPABILITIES, DEFAULT_TEXTUAL_WRITE_CAPABILITIES, DEFAULT_WRITE_CAPABILITIES
-
Constructor Summary
ConstructorsConstructorDescriptionJavaPropsGenerator
(com.fasterxml.jackson.core.io.IOContext ctxt, int stdFeatures, com.fasterxml.jackson.core.ObjectCodec codec) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
_appendFieldName
(StringBuilder path, String name) protected void
_verifyValueWrite
(String typeMsg) protected abstract void
_writeEscapedEntry
(char[] text, int offset, int len) protected abstract void
_writeEscapedEntry
(String value) protected abstract void
_writeRaw
(char c) protected abstract void
_writeRaw
(char[] text, int offset, int len) protected abstract void
protected abstract void
_writeRaw
(StringBuilder text) protected abstract void
_writeUnescapedEntry
(String value) void
boolean
boolean
canUseSchema
(com.fasterxml.jackson.core.FormatSchema schema) boolean
boolean
boolean
boolean
com.fasterxml.jackson.core.JsonStreamContext
com.fasterxml.jackson.core.FormatSchema
com.fasterxml.jackson.core.util.JacksonFeatureSet<com.fasterxml.jackson.core.StreamWriteCapability>
void
com.fasterxml.jackson.core.JsonGenerator
setPrettyPrinter
(com.fasterxml.jackson.core.PrettyPrinter pp) void
setSchema
(com.fasterxml.jackson.core.FormatSchema schema) com.fasterxml.jackson.core.JsonGenerator
com.fasterxml.jackson.core.Version
version()
void
writeBinary
(com.fasterxml.jackson.core.Base64Variant b64variant, byte[] data, int offset, int len) void
writeBoolean
(boolean state) void
void
void
writeFieldName
(String name) void
void
writeNumber
(double d) void
writeNumber
(float f) void
writeNumber
(int i) void
writeNumber
(long l) void
writeNumber
(String encodedValue) void
writeNumber
(BigDecimal dec) void
void
writeRaw
(char c) void
writeRaw
(char[] text, int offset, int len) void
writeRaw
(com.fasterxml.jackson.core.SerializableString text) void
void
void
writeRawUTF8String
(byte[] text, int offset, int len) void
void
void
writeString
(char[] text, int offset, int len) void
writeString
(String text) void
writeUTF8String
(byte[] text, int offset, int len) Methods inherited from class com.fasterxml.jackson.core.base.GeneratorBase
_asString, _checkRangeBoundsForByteArray, _checkRangeBoundsForCharArray, _checkRangeBoundsForString, _checkStdFeatureChanges, _constructDefaultPrettyPrinter, _decodeSurrogate, _releaseBuffers, close, disable, enable, flush, getCodec, getFeatureMask, isClosed, isEnabled, overrideStdFeatures, setCodec, setFeatureMask, writeBinary, writeFieldName, writeObject, writeRawValue, writeRawValue, writeRawValue, writeRawValue, writeStartObject, writeString, writeTree
Methods inherited from class com.fasterxml.jackson.core.JsonGenerator
_copyCurrentContents, _copyCurrentFloatValue, _copyCurrentFloatValueExact, _copyCurrentIntValue, _copyCurrentStringValue, _reportError, _reportUnsupportedOperation, _throwInternal, _verifyOffsets, _writeSimpleObject, configure, copyCurrentEvent, copyCurrentEventExact, copyCurrentStructure, getCharacterEscapes, getFormatFeatures, getHighestEscapedChar, getOutputBuffered, getOutputTarget, getPrettyPrinter, isEnabled, overrideFormatFeatures, setCharacterEscapes, setHighestNonEscapedChar, setRootValueSeparator, writeArray, writeArray, writeArray, writeArray, writeArrayFieldStart, writeBinary, writeBinary, writeBinary, writeBinaryField, writeBooleanField, writeEmbeddedObject, writeFieldId, writeNullField, writeNumber, writeNumber, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeObjectField, writeObjectFieldStart, writeObjectId, writeObjectRef, writeOmittedField, writePOJO, writePOJOField, writeStartArray, writeStartArray, writeStartArray, writeStartObject, writeString, writeStringField, writeTypeId, writeTypePrefix, writeTypeSuffix
-
Field Details
-
SHORT_WRITE
protected static final int SHORT_WRITE- See Also:
-
BOGUS_WRITE_CONTEXT
protected static final com.fasterxml.jackson.core.json.JsonWriteContext BOGUS_WRITE_CONTEXTSince our context object does NOT implement standard write context, need to do something like use a placeholder... -
EMPTY_SCHEMA
-
_ioContext
protected final com.fasterxml.jackson.core.io.IOContext _ioContext -
_schema
Definition of columns being written, if available. -
_jpropContext
Current context, in form we can use it (GeneratorBase has untyped reference; left as null) -
_basePath
-
_headerChecked
protected boolean _headerChecked -
_indentLength
protected int _indentLength
-
-
Constructor Details
-
JavaPropsGenerator
public JavaPropsGenerator(com.fasterxml.jackson.core.io.IOContext ctxt, int stdFeatures, com.fasterxml.jackson.core.ObjectCodec codec)
-
-
Method Details
-
currentValue
- Overrides:
currentValue
in classcom.fasterxml.jackson.core.JsonGenerator
-
getCurrentValue
- Overrides:
getCurrentValue
in classcom.fasterxml.jackson.core.base.GeneratorBase
-
assignCurrentValue
- Overrides:
assignCurrentValue
in classcom.fasterxml.jackson.core.JsonGenerator
-
setCurrentValue
- Overrides:
setCurrentValue
in classcom.fasterxml.jackson.core.base.GeneratorBase
-
version
public com.fasterxml.jackson.core.Version version()- Specified by:
version
in interfacecom.fasterxml.jackson.core.Versioned
- Overrides:
version
in classcom.fasterxml.jackson.core.base.GeneratorBase
-
useDefaultPrettyPrinter
public com.fasterxml.jackson.core.JsonGenerator useDefaultPrettyPrinter()- Overrides:
useDefaultPrettyPrinter
in classcom.fasterxml.jackson.core.base.GeneratorBase
-
setPrettyPrinter
public com.fasterxml.jackson.core.JsonGenerator setPrettyPrinter(com.fasterxml.jackson.core.PrettyPrinter pp) - Overrides:
setPrettyPrinter
in classcom.fasterxml.jackson.core.JsonGenerator
-
setSchema
public void setSchema(com.fasterxml.jackson.core.FormatSchema schema) - Overrides:
setSchema
in classcom.fasterxml.jackson.core.JsonGenerator
-
getSchema
public com.fasterxml.jackson.core.FormatSchema getSchema()- Overrides:
getSchema
in classcom.fasterxml.jackson.core.JsonGenerator
-
canUseSchema
public boolean canUseSchema(com.fasterxml.jackson.core.FormatSchema schema) - Overrides:
canUseSchema
in classcom.fasterxml.jackson.core.JsonGenerator
-
canWriteObjectId
public boolean canWriteObjectId()- Overrides:
canWriteObjectId
in classcom.fasterxml.jackson.core.JsonGenerator
-
canWriteTypeId
public boolean canWriteTypeId()- Overrides:
canWriteTypeId
in classcom.fasterxml.jackson.core.JsonGenerator
-
canWriteBinaryNatively
public boolean canWriteBinaryNatively()- Overrides:
canWriteBinaryNatively
in classcom.fasterxml.jackson.core.JsonGenerator
-
canOmitFields
public boolean canOmitFields()- Overrides:
canOmitFields
in classcom.fasterxml.jackson.core.JsonGenerator
-
canWriteFormattedNumbers
public boolean canWriteFormattedNumbers()- Overrides:
canWriteFormattedNumbers
in classcom.fasterxml.jackson.core.JsonGenerator
-
getWriteCapabilities
public com.fasterxml.jackson.core.util.JacksonFeatureSet<com.fasterxml.jackson.core.StreamWriteCapability> getWriteCapabilities()- Overrides:
getWriteCapabilities
in classcom.fasterxml.jackson.core.JsonGenerator
-
getOutputContext
public com.fasterxml.jackson.core.JsonStreamContext getOutputContext()- Overrides:
getOutputContext
in classcom.fasterxml.jackson.core.base.GeneratorBase
-
writeFieldName
- Specified by:
writeFieldName
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
_appendFieldName
-
writeStartArray
- Specified by:
writeStartArray
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeEndArray
- Specified by:
writeEndArray
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeStartObject
- Specified by:
writeStartObject
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeEndObject
- Specified by:
writeEndObject
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeString
- Specified by:
writeString
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeString
- Specified by:
writeString
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeRawUTF8String
- Specified by:
writeRawUTF8String
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeUTF8String
- Specified by:
writeUTF8String
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeRaw
- Specified by:
writeRaw
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeRaw
- Specified by:
writeRaw
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeRaw
- Specified by:
writeRaw
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeRaw
- Specified by:
writeRaw
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeRaw
public void writeRaw(com.fasterxml.jackson.core.SerializableString text) throws IOException, com.fasterxml.jackson.core.JsonGenerationException - Overrides:
writeRaw
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
com.fasterxml.jackson.core.JsonGenerationException
-
writeBinary
public void writeBinary(com.fasterxml.jackson.core.Base64Variant b64variant, byte[] data, int offset, int len) throws IOException - Specified by:
writeBinary
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeBoolean
- Specified by:
writeBoolean
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeNumber
- Specified by:
writeNumber
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeNumber
- Specified by:
writeNumber
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeNumber
- Specified by:
writeNumber
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeNumber
- Specified by:
writeNumber
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeNumber
- Specified by:
writeNumber
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeNumber
- Specified by:
writeNumber
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeNumber
- Specified by:
writeNumber
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
writeNull
- Specified by:
writeNull
in classcom.fasterxml.jackson.core.JsonGenerator
- Throws:
IOException
-
_verifyValueWrite
- Specified by:
_verifyValueWrite
in classcom.fasterxml.jackson.core.base.GeneratorBase
- Throws:
IOException
-
_writeEscapedEntry
- Throws:
IOException
-
_writeEscapedEntry
- Throws:
IOException
-
_writeUnescapedEntry
- Throws:
IOException
-
_writeRaw
- Throws:
IOException
-
_writeRaw
- Throws:
IOException
-
_writeRaw
- Throws:
IOException
-
_writeRaw
- Throws:
IOException
-