public abstract class JavaPropsGenerator
extends com.fasterxml.jackson.core.base.GeneratorBase
Modifier and Type | Field and Description |
---|---|
protected StringBuilder |
_basePath |
protected boolean |
_headerChecked |
protected int |
_indentLength |
protected com.fasterxml.jackson.core.io.IOContext |
_ioContext |
protected JPropWriteContext |
_jpropContext
Current context, in form we can use it (GeneratorBase has
untyped reference; left as null)
|
protected JavaPropsSchema |
_schema
Definition of columns being written, if available.
|
protected static com.fasterxml.jackson.core.json.JsonWriteContext |
BOGUS_WRITE_CONTEXT
Since our context object does NOT implement standard write context, need
to do something like use a placeholder...
|
protected static int |
SHORT_WRITE |
_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
Constructor and Description |
---|
JavaPropsGenerator(com.fasterxml.jackson.core.io.IOContext ctxt,
int stdFeatures,
com.fasterxml.jackson.core.ObjectCodec codec) |
Modifier and Type | Method and Description |
---|---|
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 |
_writeRaw(String text) |
protected abstract void |
_writeRaw(StringBuilder text) |
protected abstract void |
_writeUnescapedEntry(String value) |
boolean |
canOmitFields() |
boolean |
canUseSchema(com.fasterxml.jackson.core.FormatSchema schema) |
boolean |
canWriteBinaryNatively() |
boolean |
canWriteFormattedNumbers() |
boolean |
canWriteObjectId() |
boolean |
canWriteTypeId() |
Object |
getCurrentValue() |
com.fasterxml.jackson.core.JsonStreamContext |
getOutputContext() |
com.fasterxml.jackson.core.FormatSchema |
getSchema() |
void |
setCurrentValue(Object v) |
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 |
useDefaultPrettyPrinter() |
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 |
writeEndArray() |
void |
writeEndObject() |
void |
writeFieldName(String name) |
void |
writeNull() |
void |
writeNumber(BigDecimal dec) |
void |
writeNumber(BigInteger v) |
void |
writeNumber(double d) |
void |
writeNumber(float f) |
void |
writeNumber(int i) |
void |
writeNumber(long l) |
void |
writeNumber(String encodedValue) |
void |
writeRaw(char c) |
void |
writeRaw(char[] text,
int offset,
int len) |
void |
writeRaw(com.fasterxml.jackson.core.SerializableString text) |
void |
writeRaw(String text) |
void |
writeRaw(String text,
int offset,
int len) |
void |
writeRawUTF8String(byte[] text,
int offset,
int len) |
void |
writeStartArray() |
void |
writeStartObject() |
void |
writeString(char[] text,
int offset,
int len) |
void |
writeString(String text) |
void |
writeUTF8String(byte[] text,
int offset,
int len) |
_asString, _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
_reportError, _reportUnsupportedOperation, _throwInternal, _verifyOffsets, _writeSimpleObject, configure, copyCurrentEvent, copyCurrentStructure, getCharacterEscapes, getFormatFeatures, getHighestEscapedChar, getOutputBuffered, getOutputTarget, getPrettyPrinter, overrideFormatFeatures, setCharacterEscapes, setHighestNonEscapedChar, setRootValueSeparator, writeArray, writeArray, writeArray, writeArrayFieldStart, writeBinary, writeBinary, writeBinary, writeBinaryField, writeBooleanField, writeEmbeddedObject, writeFieldId, writeNullField, writeNumber, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeObjectField, writeObjectFieldStart, writeObjectId, writeObjectRef, writeOmittedField, writeStartArray, writeString, writeStringField, writeTypeId, writeTypePrefix, writeTypeSuffix
protected static final int SHORT_WRITE
protected static final com.fasterxml.jackson.core.json.JsonWriteContext BOGUS_WRITE_CONTEXT
protected final com.fasterxml.jackson.core.io.IOContext _ioContext
protected JavaPropsSchema _schema
protected JPropWriteContext _jpropContext
protected final StringBuilder _basePath
protected boolean _headerChecked
protected int _indentLength
public JavaPropsGenerator(com.fasterxml.jackson.core.io.IOContext ctxt, int stdFeatures, com.fasterxml.jackson.core.ObjectCodec codec)
public Object getCurrentValue()
getCurrentValue
in class com.fasterxml.jackson.core.base.GeneratorBase
public void setCurrentValue(Object v)
setCurrentValue
in class com.fasterxml.jackson.core.base.GeneratorBase
public com.fasterxml.jackson.core.Version version()
version
in interface com.fasterxml.jackson.core.Versioned
version
in class com.fasterxml.jackson.core.base.GeneratorBase
public com.fasterxml.jackson.core.JsonGenerator useDefaultPrettyPrinter()
useDefaultPrettyPrinter
in class com.fasterxml.jackson.core.base.GeneratorBase
public com.fasterxml.jackson.core.JsonGenerator setPrettyPrinter(com.fasterxml.jackson.core.PrettyPrinter pp)
setPrettyPrinter
in class com.fasterxml.jackson.core.JsonGenerator
public void setSchema(com.fasterxml.jackson.core.FormatSchema schema)
setSchema
in class com.fasterxml.jackson.core.JsonGenerator
public com.fasterxml.jackson.core.FormatSchema getSchema()
getSchema
in class com.fasterxml.jackson.core.JsonGenerator
public boolean canUseSchema(com.fasterxml.jackson.core.FormatSchema schema)
canUseSchema
in class com.fasterxml.jackson.core.JsonGenerator
public boolean canWriteObjectId()
canWriteObjectId
in class com.fasterxml.jackson.core.JsonGenerator
public boolean canWriteTypeId()
canWriteTypeId
in class com.fasterxml.jackson.core.JsonGenerator
public boolean canWriteBinaryNatively()
canWriteBinaryNatively
in class com.fasterxml.jackson.core.JsonGenerator
public boolean canOmitFields()
canOmitFields
in class com.fasterxml.jackson.core.JsonGenerator
public boolean canWriteFormattedNumbers()
canWriteFormattedNumbers
in class com.fasterxml.jackson.core.JsonGenerator
public com.fasterxml.jackson.core.JsonStreamContext getOutputContext()
getOutputContext
in class com.fasterxml.jackson.core.base.GeneratorBase
public void writeFieldName(String name) throws IOException
writeFieldName
in class com.fasterxml.jackson.core.JsonGenerator
IOException
public void writeStartArray() throws IOException
writeStartArray
in class com.fasterxml.jackson.core.JsonGenerator
IOException
public void writeEndArray() throws IOException
writeEndArray
in class com.fasterxml.jackson.core.JsonGenerator
IOException
public void writeStartObject() throws IOException
writeStartObject
in class com.fasterxml.jackson.core.JsonGenerator
IOException
public void writeEndObject() throws IOException
writeEndObject
in class com.fasterxml.jackson.core.JsonGenerator
IOException
public void writeString(String text) throws IOException
writeString
in class com.fasterxml.jackson.core.JsonGenerator
IOException
public void writeString(char[] text, int offset, int len) throws IOException
writeString
in class com.fasterxml.jackson.core.JsonGenerator
IOException
public void writeRawUTF8String(byte[] text, int offset, int len) throws IOException
writeRawUTF8String
in class com.fasterxml.jackson.core.JsonGenerator
IOException
public void writeUTF8String(byte[] text, int offset, int len) throws IOException
writeUTF8String
in class com.fasterxml.jackson.core.JsonGenerator
IOException
public void writeRaw(String text) throws IOException
writeRaw
in class com.fasterxml.jackson.core.JsonGenerator
IOException
public void writeRaw(String text, int offset, int len) throws IOException
writeRaw
in class com.fasterxml.jackson.core.JsonGenerator
IOException
public void writeRaw(char[] text, int offset, int len) throws IOException
writeRaw
in class com.fasterxml.jackson.core.JsonGenerator
IOException
public void writeRaw(char c) throws IOException
writeRaw
in class com.fasterxml.jackson.core.JsonGenerator
IOException
public void writeRaw(com.fasterxml.jackson.core.SerializableString text) throws IOException, com.fasterxml.jackson.core.JsonGenerationException
writeRaw
in class com.fasterxml.jackson.core.JsonGenerator
IOException
com.fasterxml.jackson.core.JsonGenerationException
public void writeBinary(com.fasterxml.jackson.core.Base64Variant b64variant, byte[] data, int offset, int len) throws IOException
writeBinary
in class com.fasterxml.jackson.core.JsonGenerator
IOException
public void writeBoolean(boolean state) throws IOException
writeBoolean
in class com.fasterxml.jackson.core.JsonGenerator
IOException
public void writeNumber(int i) throws IOException
writeNumber
in class com.fasterxml.jackson.core.JsonGenerator
IOException
public void writeNumber(long l) throws IOException
writeNumber
in class com.fasterxml.jackson.core.JsonGenerator
IOException
public void writeNumber(BigInteger v) throws IOException
writeNumber
in class com.fasterxml.jackson.core.JsonGenerator
IOException
public void writeNumber(double d) throws IOException
writeNumber
in class com.fasterxml.jackson.core.JsonGenerator
IOException
public void writeNumber(float f) throws IOException
writeNumber
in class com.fasterxml.jackson.core.JsonGenerator
IOException
public void writeNumber(BigDecimal dec) throws IOException
writeNumber
in class com.fasterxml.jackson.core.JsonGenerator
IOException
public void writeNumber(String encodedValue) throws IOException
writeNumber
in class com.fasterxml.jackson.core.JsonGenerator
IOException
public void writeNull() throws IOException
writeNull
in class com.fasterxml.jackson.core.JsonGenerator
IOException
protected void _verifyValueWrite(String typeMsg) throws IOException
_verifyValueWrite
in class com.fasterxml.jackson.core.base.GeneratorBase
IOException
protected abstract void _writeEscapedEntry(String value) throws IOException
IOException
protected abstract void _writeEscapedEntry(char[] text, int offset, int len) throws IOException
IOException
protected abstract void _writeUnescapedEntry(String value) throws IOException
IOException
protected abstract void _writeRaw(char c) throws IOException
IOException
protected abstract void _writeRaw(String text) throws IOException
IOException
protected abstract void _writeRaw(StringBuilder text) throws IOException
IOException
protected abstract void _writeRaw(char[] text, int offset, int len) throws IOException
IOException
Copyright © 2017 FasterXML. All rights reserved.