public final class TreeGenerator
extends com.fasterxml.jackson.core.JsonGenerator
JsonGenerator that returns tokens as a JsonNode.| Modifier and Type | Method and Description |
|---|---|
void |
close() |
com.fasterxml.jackson.core.JsonGenerator |
disable(com.fasterxml.jackson.core.JsonGenerator.Feature f) |
com.fasterxml.jackson.core.JsonGenerator |
enable(com.fasterxml.jackson.core.JsonGenerator.Feature f) |
void |
flush() |
com.fasterxml.jackson.core.ObjectCodec |
getCodec() |
io.micronaut.json.tree.JsonNode |
getCompletedValue() |
int |
getFeatureMask() |
com.fasterxml.jackson.core.JsonStreamContext |
getOutputContext() |
boolean |
isClosed() |
boolean |
isComplete() |
boolean |
isEnabled(com.fasterxml.jackson.core.JsonGenerator.Feature f) |
com.fasterxml.jackson.core.JsonGenerator |
setCodec(com.fasterxml.jackson.core.ObjectCodec oc) |
com.fasterxml.jackson.core.JsonGenerator |
setFeatureMask(int values) |
com.fasterxml.jackson.core.JsonGenerator |
useDefaultPrettyPrinter() |
com.fasterxml.jackson.core.Version |
version() |
void |
writeBinary(com.fasterxml.jackson.core.Base64Variant bv,
byte[] data,
int offset,
int len) |
int |
writeBinary(com.fasterxml.jackson.core.Base64Variant bv,
java.io.InputStream data,
int dataLength) |
void |
writeBoolean(boolean state) |
void |
writeEndArray() |
void |
writeEndObject() |
void |
writeFieldName(com.fasterxml.jackson.core.SerializableString name) |
void |
writeFieldName(java.lang.String name) |
void |
writeNull() |
void |
writeNumber(java.math.BigDecimal v) |
void |
writeNumber(java.math.BigInteger v) |
void |
writeNumber(double v) |
void |
writeNumber(float v) |
void |
writeNumber(int v) |
void |
writeNumber(long v) |
void |
writeNumber(java.lang.String encodedValue) |
void |
writeObject(java.lang.Object pojo) |
void |
writeRaw(char c) |
void |
writeRaw(char[] text,
int offset,
int len) |
void |
writeRaw(java.lang.String text) |
void |
writeRaw(java.lang.String text,
int offset,
int len) |
void |
writeRawUTF8String(byte[] buffer,
int offset,
int len) |
void |
writeRawValue(char[] text,
int offset,
int len) |
void |
writeRawValue(java.lang.String text) |
void |
writeRawValue(java.lang.String text,
int offset,
int len) |
void |
writeStartArray() |
void |
writeStartObject() |
void |
writeString(char[] buffer,
int offset,
int len) |
void |
writeString(com.fasterxml.jackson.core.SerializableString text) |
void |
writeString(java.lang.String text) |
void |
writeTree(com.fasterxml.jackson.core.TreeNode rootNode) |
void |
writeUTF8String(byte[] buffer,
int offset,
int len) |
_copyCurrentContents, _reportError, _reportUnsupportedOperation, _throwInternal, _verifyOffsets, _writeSimpleObject, assignCurrentValue, canOmitFields, canUseSchema, canWriteBinaryNatively, canWriteFormattedNumbers, canWriteObjectId, canWriteTypeId, configure, copyCurrentEvent, copyCurrentStructure, currentValue, getCharacterEscapes, getCurrentValue, getFormatFeatures, getHighestEscapedChar, getOutputBuffered, getOutputTarget, getPrettyPrinter, getSchema, getWriteCapabilities, isEnabled, overrideFormatFeatures, overrideStdFeatures, setCharacterEscapes, setCurrentValue, setHighestNonEscapedChar, setPrettyPrinter, setRootValueSeparator, setSchema, 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, writeRaw, writeRawValue, writeStartArray, writeStartArray, writeStartArray, writeStartObject, writeStartObject, writeString, writeStringField, writeTypeId, writeTypePrefix, writeTypeSuffixpublic com.fasterxml.jackson.core.JsonGenerator setCodec(com.fasterxml.jackson.core.ObjectCodec oc)
setCodec in class com.fasterxml.jackson.core.JsonGeneratorpublic com.fasterxml.jackson.core.ObjectCodec getCodec()
getCodec in class com.fasterxml.jackson.core.JsonGeneratorpublic com.fasterxml.jackson.core.Version version()
version in interface com.fasterxml.jackson.core.Versionedversion in class com.fasterxml.jackson.core.JsonGeneratorpublic com.fasterxml.jackson.core.JsonStreamContext getOutputContext()
getOutputContext in class com.fasterxml.jackson.core.JsonGeneratorpublic com.fasterxml.jackson.core.JsonGenerator enable(com.fasterxml.jackson.core.JsonGenerator.Feature f)
enable in class com.fasterxml.jackson.core.JsonGeneratorpublic com.fasterxml.jackson.core.JsonGenerator disable(com.fasterxml.jackson.core.JsonGenerator.Feature f)
disable in class com.fasterxml.jackson.core.JsonGeneratorpublic boolean isEnabled(com.fasterxml.jackson.core.JsonGenerator.Feature f)
isEnabled in class com.fasterxml.jackson.core.JsonGeneratorpublic int getFeatureMask()
getFeatureMask in class com.fasterxml.jackson.core.JsonGeneratorpublic com.fasterxml.jackson.core.JsonGenerator setFeatureMask(int values)
setFeatureMask in class com.fasterxml.jackson.core.JsonGeneratorpublic com.fasterxml.jackson.core.JsonGenerator useDefaultPrettyPrinter()
useDefaultPrettyPrinter in class com.fasterxml.jackson.core.JsonGeneratorpublic boolean isComplete()
@NonNull public io.micronaut.json.tree.JsonNode getCompletedValue()
java.lang.IllegalStateException - If there is still data missing. Check with isComplete().public void writeStartArray()
throws java.io.IOException
writeStartArray in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic void writeEndArray()
throws java.io.IOException
writeEndArray in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic void writeStartObject()
throws java.io.IOException
writeStartObject in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic void writeEndObject()
throws java.io.IOException
writeEndObject in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic void writeFieldName(java.lang.String name)
throws java.io.IOException
writeFieldName in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic void writeFieldName(com.fasterxml.jackson.core.SerializableString name)
throws java.io.IOException
writeFieldName in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic void writeString(java.lang.String text)
throws java.io.IOException
writeString in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic void writeString(char[] buffer,
int offset,
int len)
throws java.io.IOException
writeString in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic void writeString(com.fasterxml.jackson.core.SerializableString text)
throws java.io.IOException
writeString in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic void writeRawUTF8String(byte[] buffer,
int offset,
int len)
throws java.io.IOException
writeRawUTF8String in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic void writeUTF8String(byte[] buffer,
int offset,
int len)
throws java.io.IOException
writeUTF8String in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic void writeRaw(java.lang.String text)
throws java.io.IOException
writeRaw in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic void writeRaw(java.lang.String text,
int offset,
int len)
throws java.io.IOException
writeRaw in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic void writeRaw(char[] text,
int offset,
int len)
throws java.io.IOException
writeRaw in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic void writeRaw(char c)
throws java.io.IOException
writeRaw in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic void writeRawValue(java.lang.String text)
throws java.io.IOException
writeRawValue in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic void writeRawValue(java.lang.String text,
int offset,
int len)
throws java.io.IOException
writeRawValue in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic void writeRawValue(char[] text,
int offset,
int len)
throws java.io.IOException
writeRawValue in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic void writeBinary(com.fasterxml.jackson.core.Base64Variant bv,
byte[] data,
int offset,
int len)
throws java.io.IOException
writeBinary in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic int writeBinary(com.fasterxml.jackson.core.Base64Variant bv,
java.io.InputStream data,
int dataLength)
throws java.io.IOException
writeBinary in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic void writeNumber(int v)
throws java.io.IOException
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic void writeNumber(long v)
throws java.io.IOException
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic void writeNumber(java.math.BigInteger v)
throws java.io.IOException
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic void writeNumber(double v)
throws java.io.IOException
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic void writeNumber(float v)
throws java.io.IOException
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic void writeNumber(java.math.BigDecimal v)
throws java.io.IOException
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic void writeNumber(java.lang.String encodedValue)
throws java.io.IOException
writeNumber in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic void writeBoolean(boolean state)
throws java.io.IOException
writeBoolean in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic void writeNull()
throws java.io.IOException
writeNull in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic void writeObject(java.lang.Object pojo)
throws java.io.IOException
writeObject in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic void writeTree(com.fasterxml.jackson.core.TreeNode rootNode)
throws java.io.IOException
writeTree in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOExceptionpublic boolean isClosed()
isClosed in class com.fasterxml.jackson.core.JsonGeneratorpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class com.fasterxml.jackson.core.JsonGeneratorjava.io.IOException