Package io.micronaut.jackson.core.tree
Class TreeGenerator
java.lang.Object
com.fasterxml.jackson.core.JsonGenerator
io.micronaut.jackson.core.tree.TreeGenerator
- All Implemented Interfaces:
com.fasterxml.jackson.core.Versioned,Closeable,Flushable,AutoCloseable
public final class TreeGenerator
extends com.fasterxml.jackson.core.JsonGenerator
A
JsonGenerator that returns tokens as a JsonNode.- Since:
- 3.1
- Author:
- Jonas Konrad
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.core.JsonGenerator
com.fasterxml.jackson.core.JsonGenerator.Feature -
Field Summary
Fields inherited from class com.fasterxml.jackson.core.JsonGenerator
_cfgPrettyPrinter, DEFAULT_BINARY_WRITE_CAPABILITIES, DEFAULT_TEXTUAL_WRITE_CAPABILITIES, DEFAULT_WRITE_CAPABILITIES -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()com.fasterxml.jackson.core.JsonGeneratordisable(com.fasterxml.jackson.core.JsonGenerator.Feature f) com.fasterxml.jackson.core.JsonGeneratorenable(com.fasterxml.jackson.core.JsonGenerator.Feature f) voidflush()com.fasterxml.jackson.core.ObjectCodecgetCodec()intcom.fasterxml.jackson.core.JsonStreamContextbooleanisClosed()booleanbooleanisEnabled(com.fasterxml.jackson.core.JsonGenerator.Feature f) com.fasterxml.jackson.core.JsonGeneratorsetCodec(com.fasterxml.jackson.core.ObjectCodec oc) com.fasterxml.jackson.core.JsonGeneratorsetFeatureMask(int values) com.fasterxml.jackson.core.JsonGeneratorcom.fasterxml.jackson.core.Versionversion()voidwriteBinary(com.fasterxml.jackson.core.Base64Variant bv, byte[] data, int offset, int len) intwriteBinary(com.fasterxml.jackson.core.Base64Variant bv, InputStream data, int dataLength) voidwriteBoolean(boolean state) voidvoidvoidwriteFieldName(com.fasterxml.jackson.core.SerializableString name) voidwriteFieldName(String name) voidvoidwriteNumber(double v) voidwriteNumber(float v) voidwriteNumber(int v) voidwriteNumber(long v) voidwriteNumber(String encodedValue) voidvoidvoidwriteObject(Object pojo) voidwriteRaw(char c) voidwriteRaw(char[] text, int offset, int len) voidvoidvoidwriteRawUTF8String(byte[] buffer, int offset, int len) voidwriteRawValue(char[] text, int offset, int len) voidwriteRawValue(String text) voidwriteRawValue(String text, int offset, int len) voidvoidvoidwriteString(char[] buffer, int offset, int len) voidwriteString(com.fasterxml.jackson.core.SerializableString text) voidwriteString(String text) voidwriteTree(com.fasterxml.jackson.core.TreeNode rootNode) voidwriteUTF8String(byte[] buffer, int offset, int len) Methods inherited from class com.fasterxml.jackson.core.JsonGenerator
_constructWriteException, _constructWriteException, _constructWriteException, _constructWriteException, _copyCurrentContents, _copyCurrentFloatValue, _copyCurrentFloatValueExact, _copyCurrentIntValue, _copyCurrentStringValue, _reportError, _reportUnsupportedOperation, _reportUnsupportedOperation, _throwInternal, _verifyOffsets, _writeSimpleObject, _writeTypePrefixUsingNative, _writeTypePrefixUsingWrapper, assignCurrentValue, canOmitFields, canUseSchema, canWriteBinaryNatively, canWriteFormattedNumbers, canWriteObjectId, canWriteTypeId, configure, copyCurrentEvent, copyCurrentEventExact, copyCurrentStructure, currentValue, getCharacterEscapes, getCurrentValue, getFormatFeatures, getHighestEscapedChar, getOutputBuffered, getOutputTarget, getPrettyPrinter, getSchema, getWriteCapabilities, isEnabled, overrideFormatFeatures, overrideStdFeatures, setCharacterEscapes, setCurrentValue, setHighestNonEscapedChar, setPrettyPrinter, setRootValueSeparator, setSchema, streamWriteConstraints, 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, writeTypeSuffix
-
Method Details
-
setCodec
public com.fasterxml.jackson.core.JsonGenerator setCodec(com.fasterxml.jackson.core.ObjectCodec oc) - Specified by:
setCodecin classcom.fasterxml.jackson.core.JsonGenerator
-
getCodec
public com.fasterxml.jackson.core.ObjectCodec getCodec()- Specified by:
getCodecin classcom.fasterxml.jackson.core.JsonGenerator
-
version
public com.fasterxml.jackson.core.Version version()- Specified by:
versionin interfacecom.fasterxml.jackson.core.Versioned- Specified by:
versionin classcom.fasterxml.jackson.core.JsonGenerator
-
getOutputContext
public com.fasterxml.jackson.core.JsonStreamContext getOutputContext()- Specified by:
getOutputContextin classcom.fasterxml.jackson.core.JsonGenerator
-
enable
public com.fasterxml.jackson.core.JsonGenerator enable(com.fasterxml.jackson.core.JsonGenerator.Feature f) - Specified by:
enablein classcom.fasterxml.jackson.core.JsonGenerator
-
disable
public com.fasterxml.jackson.core.JsonGenerator disable(com.fasterxml.jackson.core.JsonGenerator.Feature f) - Specified by:
disablein classcom.fasterxml.jackson.core.JsonGenerator
-
isEnabled
public boolean isEnabled(com.fasterxml.jackson.core.JsonGenerator.Feature f) - Specified by:
isEnabledin classcom.fasterxml.jackson.core.JsonGenerator
-
getFeatureMask
public int getFeatureMask()- Specified by:
getFeatureMaskin classcom.fasterxml.jackson.core.JsonGenerator
-
setFeatureMask
public com.fasterxml.jackson.core.JsonGenerator setFeatureMask(int values) - Specified by:
setFeatureMaskin classcom.fasterxml.jackson.core.JsonGenerator
-
useDefaultPrettyPrinter
public com.fasterxml.jackson.core.JsonGenerator useDefaultPrettyPrinter()- Specified by:
useDefaultPrettyPrinterin classcom.fasterxml.jackson.core.JsonGenerator
-
isComplete
public boolean isComplete()- Returns:
- Whether this generator has visited a complete node.
-
getCompletedValue
- Returns:
- The completed node.
- Throws:
IllegalStateException- If there is still data missing. Check withisComplete().
-
writeStartArray
public void writeStartArray()- Specified by:
writeStartArrayin classcom.fasterxml.jackson.core.JsonGenerator
-
writeEndArray
- Specified by:
writeEndArrayin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
IOException
-
writeStartObject
public void writeStartObject()- Specified by:
writeStartObjectin classcom.fasterxml.jackson.core.JsonGenerator
-
writeEndObject
- Specified by:
writeEndObjectin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
IOException
-
writeFieldName
- Specified by:
writeFieldNamein classcom.fasterxml.jackson.core.JsonGenerator- Throws:
IOException
-
writeFieldName
- Specified by:
writeFieldNamein classcom.fasterxml.jackson.core.JsonGenerator- Throws:
IOException
-
writeString
- Specified by:
writeStringin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
IOException
-
writeString
- Specified by:
writeStringin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
IOException
-
writeString
- Specified by:
writeStringin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
IOException
-
writeRawUTF8String
public void writeRawUTF8String(byte[] buffer, int offset, int len) - Specified by:
writeRawUTF8Stringin classcom.fasterxml.jackson.core.JsonGenerator
-
writeUTF8String
public void writeUTF8String(byte[] buffer, int offset, int len) - Specified by:
writeUTF8Stringin classcom.fasterxml.jackson.core.JsonGenerator
-
writeRaw
- Specified by:
writeRawin classcom.fasterxml.jackson.core.JsonGenerator
-
writeRaw
- Specified by:
writeRawin classcom.fasterxml.jackson.core.JsonGenerator
-
writeRaw
public void writeRaw(char[] text, int offset, int len) - Specified by:
writeRawin classcom.fasterxml.jackson.core.JsonGenerator
-
writeRaw
public void writeRaw(char c) - Specified by:
writeRawin classcom.fasterxml.jackson.core.JsonGenerator
-
writeRawValue
- Specified by:
writeRawValuein classcom.fasterxml.jackson.core.JsonGenerator- Throws:
IOException
-
writeRawValue
- Specified by:
writeRawValuein classcom.fasterxml.jackson.core.JsonGenerator- Throws:
IOException
-
writeRawValue
- Specified by:
writeRawValuein classcom.fasterxml.jackson.core.JsonGenerator- Throws:
IOException
-
writeBinary
public void writeBinary(com.fasterxml.jackson.core.Base64Variant bv, byte[] data, int offset, int len) - Specified by:
writeBinaryin classcom.fasterxml.jackson.core.JsonGenerator
-
writeBinary
public int writeBinary(com.fasterxml.jackson.core.Base64Variant bv, InputStream data, int dataLength) - Specified by:
writeBinaryin classcom.fasterxml.jackson.core.JsonGenerator
-
writeNumber
- Specified by:
writeNumberin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
IOException
-
writeNumber
- Specified by:
writeNumberin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
IOException
-
writeNumber
- Specified by:
writeNumberin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
IOException
-
writeNumber
- Specified by:
writeNumberin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
IOException
-
writeNumber
- Specified by:
writeNumberin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
IOException
-
writeNumber
- Specified by:
writeNumberin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
IOException
-
writeNumber
- Specified by:
writeNumberin classcom.fasterxml.jackson.core.JsonGenerator
-
writeBoolean
- Specified by:
writeBooleanin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
IOException
-
writeNull
- Specified by:
writeNullin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
IOException
-
writeObject
- Specified by:
writeObjectin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
IOException
-
writeTree
- Specified by:
writeTreein classcom.fasterxml.jackson.core.JsonGenerator- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Specified by:
flushin classcom.fasterxml.jackson.core.JsonGenerator- Throws:
IOException
-
isClosed
public boolean isClosed()- Specified by:
isClosedin classcom.fasterxml.jackson.core.JsonGenerator
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classcom.fasterxml.jackson.core.JsonGenerator- Throws:
IOException
-