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, writeTypeSuffixprotected 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.GeneratorBasepublic void setCurrentValue(Object v)
setCurrentValue in class com.fasterxml.jackson.core.base.GeneratorBasepublic com.fasterxml.jackson.core.Version version()
version in interface com.fasterxml.jackson.core.Versionedversion in class com.fasterxml.jackson.core.base.GeneratorBasepublic com.fasterxml.jackson.core.JsonGenerator useDefaultPrettyPrinter()
useDefaultPrettyPrinter in class com.fasterxml.jackson.core.base.GeneratorBasepublic com.fasterxml.jackson.core.JsonGenerator setPrettyPrinter(com.fasterxml.jackson.core.PrettyPrinter pp)
setPrettyPrinter in class com.fasterxml.jackson.core.JsonGeneratorpublic void setSchema(com.fasterxml.jackson.core.FormatSchema schema)
setSchema in class com.fasterxml.jackson.core.JsonGeneratorpublic com.fasterxml.jackson.core.FormatSchema getSchema()
getSchema in class com.fasterxml.jackson.core.JsonGeneratorpublic boolean canUseSchema(com.fasterxml.jackson.core.FormatSchema schema)
canUseSchema in class com.fasterxml.jackson.core.JsonGeneratorpublic boolean canWriteObjectId()
canWriteObjectId in class com.fasterxml.jackson.core.JsonGeneratorpublic boolean canWriteTypeId()
canWriteTypeId in class com.fasterxml.jackson.core.JsonGeneratorpublic boolean canWriteBinaryNatively()
canWriteBinaryNatively in class com.fasterxml.jackson.core.JsonGeneratorpublic boolean canOmitFields()
canOmitFields in class com.fasterxml.jackson.core.JsonGeneratorpublic boolean canWriteFormattedNumbers()
canWriteFormattedNumbers in class com.fasterxml.jackson.core.JsonGeneratorpublic com.fasterxml.jackson.core.JsonStreamContext getOutputContext()
getOutputContext in class com.fasterxml.jackson.core.base.GeneratorBasepublic void writeFieldName(String name) throws IOException
writeFieldName in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeStartArray()
throws IOException
writeStartArray in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeEndArray()
throws IOException
writeEndArray in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeStartObject()
throws IOException
writeStartObject in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeEndObject()
throws IOException
writeEndObject in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeString(String text) throws IOException
writeString in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeString(char[] text,
int offset,
int len)
throws IOException
writeString in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeRawUTF8String(byte[] text,
int offset,
int len)
throws IOException
writeRawUTF8String in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeUTF8String(byte[] text,
int offset,
int len)
throws IOException
writeUTF8String in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeRaw(String text) throws IOException
writeRaw in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeRaw(String text, int offset, int len) throws IOException
writeRaw in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeRaw(char[] text,
int offset,
int len)
throws IOException
writeRaw in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeRaw(char c)
throws IOException
writeRaw in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeRaw(com.fasterxml.jackson.core.SerializableString text)
throws IOException,
com.fasterxml.jackson.core.JsonGenerationException
writeRaw in class com.fasterxml.jackson.core.JsonGeneratorIOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void writeBinary(com.fasterxml.jackson.core.Base64Variant b64variant,
byte[] data,
int offset,
int len)
throws IOException
writeBinary in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeBoolean(boolean state)
throws IOException
writeBoolean in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeNumber(int i)
throws IOException
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeNumber(long l)
throws IOException
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeNumber(BigInteger v) throws IOException
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeNumber(double d)
throws IOException
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeNumber(float f)
throws IOException
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeNumber(BigDecimal dec) throws IOException
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeNumber(String encodedValue) throws IOException
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionpublic void writeNull()
throws IOException
writeNull in class com.fasterxml.jackson.core.JsonGeneratorIOExceptionprotected void _verifyValueWrite(String typeMsg) throws IOException
_verifyValueWrite in class com.fasterxml.jackson.core.base.GeneratorBaseIOExceptionprotected abstract void _writeEscapedEntry(String value) throws IOException
IOExceptionprotected abstract void _writeEscapedEntry(char[] text,
int offset,
int len)
throws IOException
IOExceptionprotected abstract void _writeUnescapedEntry(String value) throws IOException
IOExceptionprotected abstract void _writeRaw(char c)
throws IOException
IOExceptionprotected abstract void _writeRaw(String text) throws IOException
IOExceptionprotected abstract void _writeRaw(StringBuilder text) throws IOException
IOExceptionprotected abstract void _writeRaw(char[] text,
int offset,
int len)
throws IOException
IOExceptionCopyright © 2017 FasterXML. All rights reserved.