public 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 Writer |
_out
Underlying
Writer used for output. |
protected char[] |
_outputBuffer
Intermediate buffer in which contents are buffered before
being written using
_out . |
protected int |
_outputEnd
Offset to index after the last valid index in
_outputBuffer . |
protected int |
_outputTail
Pointer to the next available location in
_outputBuffer |
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 |
Constructor and Description |
---|
JavaPropsGenerator(com.fasterxml.jackson.core.io.IOContext ctxt,
Writer out,
int stdFeatures,
com.fasterxml.jackson.core.ObjectCodec codec) |
Modifier and Type | Method and Description |
---|---|
protected void |
_flushBuffer() |
protected void |
_releaseBuffers() |
protected void |
_verifyValueWrite(String typeMsg) |
protected void |
_writeEscaped(char[] text,
int offset,
int len) |
protected void |
_writeEscaped(String value) |
protected void |
_writeEscapedEntry(char[] text,
int offset,
int len) |
protected void |
_writeEscapedEntry(String value) |
protected void |
_writeLinefeed() |
protected void |
_writeRaw(char c) |
protected void |
_writeRaw(char[] text,
int offset,
int len) |
protected void |
_writeRaw(String text) |
protected void |
_writeRaw(StringBuilder text) |
protected void |
_writeRawLong(String text) |
protected void |
_writeRawLong(StringBuilder text) |
protected void |
_writeUnescapedEntry(String value) |
boolean |
canOmitFields() |
boolean |
canUseSchema(com.fasterxml.jackson.core.FormatSchema schema) |
boolean |
canWriteBinaryNatively() |
boolean |
canWriteObjectId() |
boolean |
canWriteTypeId() |
void |
close() |
void |
flush() |
Object |
getCurrentValue() |
Object |
getOutputTarget() |
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) |
_checkStdFeatureChanges, _constructDefaultPrettyPrinter, _decodeSurrogate, disable, enable, getCodec, getFeatureMask, getOutputContext, isClosed, isEnabled, overrideStdFeatures, setCodec, setFeatureMask, writeBinary, writeFieldName, writeObject, writeRawValue, writeRawValue, writeRawValue, writeRawValue, writeString, writeTree
_reportError, _reportUnsupportedOperation, _throwInternal, _writeSimpleObject, configure, copyCurrentEvent, copyCurrentStructure, getCharacterEscapes, getFormatFeatures, getHighestEscapedChar, getOutputBuffered, getPrettyPrinter, overrideFormatFeatures, setCharacterEscapes, setHighestNonEscapedChar, setRootValueSeparator, writeArrayFieldStart, writeBinary, writeBinary, writeBinary, writeBinaryField, writeBooleanField, writeNullField, writeNumber, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeObjectField, writeObjectFieldStart, writeObjectId, writeObjectRef, writeOmittedField, writeStartArray, writeStringField, writeTypeId
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 char[] _outputBuffer
_out
.protected int _outputTail
_outputBuffer
protected final int _outputEnd
_outputBuffer
.
Typically same as length of the buffer.protected final StringBuilder _basePath
protected boolean _headerChecked
protected int _indentLength
public JavaPropsGenerator(com.fasterxml.jackson.core.io.IOContext ctxt, Writer out, 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 Object getOutputTarget()
getOutputTarget
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 void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class com.fasterxml.jackson.core.base.GeneratorBase
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class com.fasterxml.jackson.core.base.GeneratorBase
IOException
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 _releaseBuffers()
_releaseBuffers
in class com.fasterxml.jackson.core.base.GeneratorBase
protected void _flushBuffer() throws IOException
IOException
protected void _verifyValueWrite(String typeMsg) throws IOException
_verifyValueWrite
in class com.fasterxml.jackson.core.base.GeneratorBase
IOException
protected void _writeEscapedEntry(String value) throws IOException
IOException
protected void _writeEscapedEntry(char[] text, int offset, int len) throws IOException
IOException
protected void _writeUnescapedEntry(String value) throws IOException
IOException
protected void _writeEscaped(String value) throws IOException
IOException
protected void _writeEscaped(char[] text, int offset, int len) throws IOException
IOException
protected void _writeLinefeed() throws IOException
IOException
protected void _writeRaw(char c) throws IOException
IOException
protected void _writeRaw(String text) throws IOException
IOException
protected void _writeRaw(StringBuilder text) throws IOException
IOException
protected void _writeRaw(char[] text, int offset, int len) throws IOException
IOException
protected void _writeRawLong(String text) throws IOException
IOException
protected void _writeRawLong(StringBuilder text) throws IOException
IOException
Copyright © 2016 FasterXML. All rights reserved.