Uses of Class
tools.jackson.core.JsonGenerator
Packages that use JsonGenerator
Package
Description
Main public API classes of the core streaming JSON
processor: most importantly
JsonFactory
used for constructing
JSON parser (JsonParser)
and generator
(JsonGenerator)
instances.Base classes used by concrete Parser and Generator implementations;
contain functionality that is not specific to JSON or input
abstraction (byte vs char).
Package for subtypes of
JacksonException
defined and used by streaming API.JSON-specific parser and generator implementation classes that
Jackson defines and uses.
Utility classes used by Jackson Core functionality.
-
Uses of JsonGenerator in tools.jackson.core
Methods in tools.jackson.core that return JsonGeneratorModifier and TypeMethodDescriptionabstract JsonGeneratorJsonGenerator.configure(StreamWriteFeature f, boolean state) Method for enabling or disabling specified feature: checkStreamWriteFeaturefor list of available features.default JsonGeneratorObjectWriteContext.createGenerator(OutputStream out) default JsonGeneratorObjectWriteContext.createGenerator(OutputStream out, JsonEncoding enc) default JsonGeneratorObjectWriteContext.createGenerator(Writer w) TokenStreamFactory.createGenerator(OutputStream out) Deprecated.TokenStreamFactory.createGenerator(OutputStream out, JsonEncoding enc) Deprecated.TokenStreamFactory.createGenerator(Writer w) Deprecated.TokenStreamFactory.createGenerator(ObjectWriteContext writeCtxt, DataOutput out) Method for constructing generator that writes content into specifiedDataOutput, using UTF-8 encoding (with formats where encoding is user-configurable).abstract JsonGeneratorTokenStreamFactory.createGenerator(ObjectWriteContext writeCtxt, File f, JsonEncoding enc) Method for constructing generator that writes contents to specified file, overwriting contents it might have (or creating it if such file does not yet exist).TokenStreamFactory.createGenerator(ObjectWriteContext writeCtxt, OutputStream out) Method for constructing generator that writes contents using specifiedOutputStream.abstract JsonGeneratorTokenStreamFactory.createGenerator(ObjectWriteContext writeCtxt, OutputStream out, JsonEncoding enc) Method for constructing generator that writes contents using specifiedOutputStreamwith specified textual encoding (if applicable).abstract JsonGeneratorTokenStreamFactory.createGenerator(ObjectWriteContext writeCtxt, Writer w) Method for constructing generator that writes contents using specifiedWriter.abstract JsonGeneratorTokenStreamFactory.createGenerator(ObjectWriteContext writeCtxt, Path p, JsonEncoding enc) Method for constructing generator that writes contents to specified path, overwriting contents it might have (or creating it if such path does not yet exist).JsonGenerator.setCharacterEscapes(CharacterEscapes esc) Method for defining custom escapes factory uses forJsonGenerators it creates.JsonGenerator.writeArray(double[] array, int offset, int length) Value write method that can be called to write a single array (sequence ofJsonToken.START_ARRAY, zero or moreJsonToken.VALUE_NUMBER_FLOAT,JsonToken.END_ARRAY)JsonGenerator.writeArray(int[] array, int offset, int length) Value write method that can be called to write a single array (sequence ofJsonToken.START_ARRAY, zero or moreJsonToken.VALUE_NUMBER_INT,JsonToken.END_ARRAY)JsonGenerator.writeArray(long[] array, int offset, int length) Value write method that can be called to write a single array (sequence ofJsonToken.START_ARRAY, zero or moreJsonToken.VALUE_NUMBER_INT,JsonToken.END_ARRAY)JsonGenerator.writeArray(String[] array, int offset, int length) Value write method that can be called to write a single array (sequence ofJsonToken.START_ARRAY, zero or moreJsonToken.VALUE_STRING,JsonToken.END_ARRAY)final JsonGeneratorJsonGenerator.writeArrayPropertyStart(String propertyName) Convenience method for outputting an Object property (that will contain a JSON Array value), and the START_ARRAY marker.JsonGenerator.writeBinary(byte[] data) Similar towriteBinary(Base64Variant,byte[],int,int), but assumes default to using the Jackson default Base64 variant (which isBase64Variants.MIME_NO_LINEFEEDS).JsonGenerator.writeBinary(byte[] data, int offset, int len) Similar towriteBinary(Base64Variant,byte[],int,int), but default to using the Jackson default Base64 variant (which isBase64Variants.MIME_NO_LINEFEEDS).abstract JsonGeneratorJsonGenerator.writeBinary(Base64Variant bv, byte[] data, int offset, int len) Method that will output given chunk of binary data as base64 encoded, as a complete String value (surrounded by double quotes).final JsonGeneratorJsonGenerator.writeBinaryProperty(String propertyName, byte[] data) Convenience method for outputting an Object property that contains specified data in base64-encoded form.abstract JsonGeneratorJsonGenerator.writeBoolean(boolean state) Method for outputting literal JSON boolean value (one of Strings 'true' and 'false').final JsonGeneratorJsonGenerator.writeBooleanProperty(String propertyName, boolean value) Convenience method for outputting an Object property that has a boolean value.JsonGenerator.writeEmbeddedObject(Object object) Method that can be called on backends that support passing opaque native values that some data formats support; not used with JSON backend, more common with binary formats.abstract JsonGeneratorJsonGenerator.writeEndArray()Method for writing closing marker of a JSON Array value (character ']'; plus possible white space decoration if pretty-printing is enabled).abstract JsonGeneratorJsonGenerator.writeEndObject()Method for writing closing marker of an Object value (character '}'; plus possible white space decoration if pretty-printing is enabled).abstract JsonGeneratorMethod for writing an Object Property name (JSON String surrounded by double quotes: syntactically identical to a JSON String value), possibly decorated by white space if pretty-printing is enabled.abstract JsonGeneratorJsonGenerator.writeName(SerializableString name) Method similar towriteName(String), main difference being that it may perform better as some of processing (such as quoting of certain characters, or encoding into external encoding if supported by generator) can be done just once and reused for later calls.abstract JsonGeneratorJsonGenerator.writeNull()Method for outputting literal JSON null value.final JsonGeneratorJsonGenerator.writeNullProperty(String propertyName) Convenience method for outputting an Object property that has JSON literal value null.JsonGenerator.writeNumber(char[] encodedValueBuffer, int offset, int len) Overloaded version ofwriteNumber(String)with same semantics but possibly more efficient operation.abstract JsonGeneratorJsonGenerator.writeNumber(double v) Method for outputting indicate JSON numeric value.abstract JsonGeneratorJsonGenerator.writeNumber(float v) Method for outputting indicate JSON numeric value.abstract JsonGeneratorJsonGenerator.writeNumber(int v) Method for outputting given value as JSON number.abstract JsonGeneratorJsonGenerator.writeNumber(long v) Method for outputting given value as JSON number.abstract JsonGeneratorJsonGenerator.writeNumber(short v) Method for outputting given value as JSON number.abstract JsonGeneratorJsonGenerator.writeNumber(String encodedValue) Write method that can be used for custom numeric types that can not be (easily?)abstract JsonGeneratorJsonGenerator.writeNumber(BigDecimal v) Method for outputting indicate JSON numeric value.abstract JsonGeneratorJsonGenerator.writeNumber(BigInteger v) Method for outputting given value as JSON number.final JsonGeneratorJsonGenerator.writeNumberProperty(String propertyName, double value) Convenience method for outputting an Object property that has the specified numeric value.final JsonGeneratorJsonGenerator.writeNumberProperty(String propertyName, float value) Convenience method for outputting an Object property that has the specified numeric value.final JsonGeneratorJsonGenerator.writeNumberProperty(String propertyName, int value) Convenience method for outputting an Object property that has the specified numeric value.final JsonGeneratorJsonGenerator.writeNumberProperty(String propertyName, long value) Convenience method for outputting an Object property that has the specified numeric value.final JsonGeneratorJsonGenerator.writeNumberProperty(String propertyName, short value) Convenience method for outputting an Object property that has the specified numeric value.final JsonGeneratorJsonGenerator.writeNumberProperty(String propertyName, BigDecimal value) Convenience method for outputting an Object property that has the specified numeric value.final JsonGeneratorJsonGenerator.writeNumberProperty(String propertyName, BigInteger value) Convenience method for outputting an Object property that has the specified numeric value.JsonGenerator.writeObjectId(Object id) Method that can be called to output so-called native Object Id.final JsonGeneratorJsonGenerator.writeObjectPropertyStart(String propertyName) Convenience method for outputting an Object property (that will contain an Object value), and the START_OBJECT marker.JsonGenerator.writeObjectRef(Object referenced) Method that can be called to output references to native Object Ids.JsonGenerator.writeOmittedProperty(String propertyName) Method called to indicate that a property in this position was skipped.abstract JsonGeneratorMethod for writing given Java object (POJO) as tokens into stream this generator manages; serialization must be a valid JSON Value (Object, Array, null, Number, String or Boolean).final JsonGeneratorJsonGenerator.writePOJOProperty(String propertyName, Object pojo) Convenience method for outputting am Object property that has contents of specific Java object (POJO) as its value.abstract JsonGeneratorJsonGenerator.writePropertyId(long id) Alternative towriteName(String)that may be used in cases where Object Property key is of numeric type; usually where underlying format supports such notion (some binary formats do, unlike JSON).abstract JsonGeneratorJsonGenerator.writeRaw(char c) Method that will force generator to copy input text verbatim with no modifications (including that no escaping is done and no separators are added even if context [array, object] would otherwise require such).abstract JsonGeneratorJsonGenerator.writeRaw(char[] buffer, int offset, int len) Method that will force generator to copy input text verbatim with no modifications (including that no escaping is done and no separators are added even if context [array, object] would otherwise require such).abstract JsonGeneratorMethod that will force generator to copy input text verbatim with no modifications (including that no escaping is done and no separators are added even if context [array, object] would otherwise require such).abstract JsonGeneratorMethod that will force generator to copy input text verbatim with no modifications (including that no escaping is done and no separators are added even if context [array, object] would otherwise require such).JsonGenerator.writeRaw(SerializableString raw) Method that will force generator to copy input text verbatim with no modifications (including that no escaping is done and no separators are added even if context [array, object] would otherwise require such).abstract JsonGeneratorJsonGenerator.writeRawUTF8String(byte[] buffer, int offset, int len) Method similar towriteString(String)but that takes as its input a UTF-8 encoded String that is to be output as-is, without additional escaping (type of which depends on data format; backslashes for JSON).abstract JsonGeneratorJsonGenerator.writeRawValue(char[] text, int offset, int len) abstract JsonGeneratorJsonGenerator.writeRawValue(String text) Method that will force generator to copy input text verbatim without any modifications, but assuming it must constitute a single legal JSON value (number, string, boolean, null, Array or List).abstract JsonGeneratorJsonGenerator.writeRawValue(String text, int offset, int len) JsonGenerator.writeRawValue(SerializableString raw) Method similar towriteRawValue(String), but potentially more efficient as it may be able to use pre-encoded content (similar towriteRaw(SerializableString).abstract JsonGeneratorJsonGenerator.writeStartArray()Method for writing starting marker of a Array value (for JSON this is character '['; plus possible white space decoration if pretty-printing is enabled).abstract JsonGeneratorJsonGenerator.writeStartArray(Object currentValue) Method for writing start marker of an Array value, similar towriteStartArray(), but also specifying what is the Java object that the Array Object being written represents (if any);nullmay be passed if not known or not applicable.abstract JsonGeneratorJsonGenerator.writeStartArray(Object currentValue, int size) Method for writing start marker of an Array value, similar towriteStartArray(), but also specifying what is the Java object that the Array Object being written represents (if any) and how many elements will be written for the array before callingwriteEndArray().abstract JsonGeneratorJsonGenerator.writeStartObject()Method for writing starting marker of an Object value (character '{'; plus possible white space decoration if pretty-printing is enabled).abstract JsonGeneratorJsonGenerator.writeStartObject(Object currentValue) Method for writing starting marker of an Object value to represent the given Java Object value.abstract JsonGeneratorJsonGenerator.writeStartObject(Object forValue, int size) Method for writing starting marker of an Object value to represent the given Java Object value.abstract JsonGeneratorJsonGenerator.writeString(char[] buffer, int offset, int len) Method for outputting a String value.abstract JsonGeneratorJsonGenerator.writeString(Reader reader, int len) Method for outputting a String value.abstract JsonGeneratorJsonGenerator.writeString(String value) Method for outputting a String value.abstract JsonGeneratorJsonGenerator.writeString(SerializableString value) Method similar towriteString(String), but that takesSerializableStringwhich can make this potentially more efficient to call as generator may be able to reuse quoted and/or encoded representation.final JsonGeneratorJsonGenerator.writeStringProperty(String propertyName, String value) Convenience method for outputting an Object property that has a String value.abstract JsonGeneratorMethod for writing given JSON tree (expressed as a tree where givenTreeNodeis the root) using this generator.JsonGenerator.writeTypeId(Object id) Method that can be called to output so-called native Type Id.abstract JsonGeneratorJsonGenerator.writeUTF8String(byte[] buffer, int offset, int len) Method similar towriteString(String)but that takes as its input a UTF-8 encoded String which has not been escaped using whatever escaping scheme data format requires (for JSON that is backslash-escaping for control characters and double-quotes; for other formats something else).Methods in tools.jackson.core with parameters of type JsonGeneratorModifier and TypeMethodDescriptionvoidPrettyPrinter.beforeArrayValues(JsonGenerator g) Method called after array start marker has been output, and right before the first value is to be output.voidPrettyPrinter.beforeObjectEntries(JsonGenerator g) Method called after object start marker has been output, and right before the Name of the first property is to be output.voidPrettyPrinter.writeArrayValueSeparator(JsonGenerator g) Method called after an array value has been completely output, and before another value is to be output.voidPrettyPrinter.writeEndArray(JsonGenerator g, int nrOfValues) Method called after an Array value has been completely output (minus closing bracket).voidPrettyPrinter.writeEndObject(JsonGenerator g, int nrOfEntries) Method called after an Object value has been completely output (minus closing curly bracket).voidPrettyPrinter.writeObjectEntrySeparator(JsonGenerator g) Method called after an Object entry (field:value) has been completely output, and before another value is to be output.voidPrettyPrinter.writeObjectNameValueSeparator(JsonGenerator g) Method called after an Object property name has been output, but before the value is output.voidPrettyPrinter.writeRootValueSeparator(JsonGenerator g) Method called after a root-level value has been completely output, and before another value is to be output.voidPrettyPrinter.writeStartArray(JsonGenerator g) Method called when an Array value is to be output, before any member/child values are output.voidPrettyPrinter.writeStartObject(JsonGenerator g) Method called when an Object value is to be output, before any fields are output.voidObjectWriteContext.Base.writeTree(JsonGenerator g, TreeNode value) voidObjectWriteContext.writeTree(JsonGenerator g, TreeNode value) voidTreeCodec.writeTree(JsonGenerator g, TreeNode tree) voidObjectWriteContext.Base.writeValue(JsonGenerator g, Object value) voidObjectWriteContext.writeValue(JsonGenerator g, Object value) Method that may be called to serialize given value, using specified token stream generator. -
Uses of JsonGenerator in tools.jackson.core.base
Subclasses of JsonGenerator in tools.jackson.core.baseModifier and TypeClassDescriptionclassThis base class implements part of API that a JSON generator exposes to applications, adds shared internal methods that sub-classes can use and adds some abstract methods sub-classes must implement.Methods in tools.jackson.core.base that return JsonGeneratorModifier and TypeMethodDescriptionprotected abstract JsonGeneratorBinaryTSFactory._createGenerator(ObjectWriteContext writeCtxt, IOContext ioCtxt, OutputStream out) Overridable factory method that actually instantiates generator for givenOutputStreamand context object, using UTF-8 encoding.protected abstract JsonGeneratorTextualTSFactory._createGenerator(ObjectWriteContext writeCtxt, IOContext ioCtxt, Writer out) Overridable factory method that actually instantiates generator for givenWriterand context object.protected abstract JsonGeneratorTextualTSFactory._createUTF8Generator(ObjectWriteContext writeCtxt, IOContext ioCtxt, OutputStream out) Overridable factory method that actually instantiates generator for givenOutputStreamand context object, using UTF-8 encoding.protected JsonGeneratorDecorableTSFactory._decorate(JsonGenerator result) final JsonGeneratorGeneratorBase.configure(StreamWriteFeature f, boolean state) BinaryTSFactory.createGenerator(ObjectWriteContext writeCtxt, File f, JsonEncoding enc) BinaryTSFactory.createGenerator(ObjectWriteContext writeCtxt, OutputStream out, JsonEncoding enc) BinaryTSFactory.createGenerator(ObjectWriteContext writeCtxt, Writer w) BinaryTSFactory.createGenerator(ObjectWriteContext writeCtxt, Path p, JsonEncoding enc) TextualTSFactory.createGenerator(ObjectWriteContext writeCtxt, File f, JsonEncoding enc) TextualTSFactory.createGenerator(ObjectWriteContext writeCtxt, OutputStream out, JsonEncoding enc) TextualTSFactory.createGenerator(ObjectWriteContext writeCtxt, Writer w) TextualTSFactory.createGenerator(ObjectWriteContext writeCtxt, Path p, JsonEncoding enc) GeneratorBase.writeName(SerializableString name) GeneratorBase.writeRawValue(char[] text, int offset, int len) GeneratorBase.writeRawValue(String text) GeneratorBase.writeRawValue(String text, int offset, int len) GeneratorBase.writeRawValue(SerializableString text) GeneratorBase.writeStartArray(Object forValue, int size) GeneratorBase.writeStartObject(Object forValue, int size) GeneratorBase.writeString(Reader reader, int len) GeneratorBase.writeString(SerializableString text) Methods in tools.jackson.core.base with parameters of type JsonGeneratorModifier and TypeMethodDescriptionprotected JsonGeneratorDecorableTSFactory._decorate(JsonGenerator result) -
Uses of JsonGenerator in tools.jackson.core.exc
Methods in tools.jackson.core.exc that return JsonGeneratorMethods in tools.jackson.core.exc with parameters of type JsonGeneratorModifier and TypeMethodDescriptionStreamWriteException.withGenerator(JsonGenerator g) Fluent method that may be used to assign originatingJsonGenerator, to be accessed usingStreamWriteException.processor().Constructors in tools.jackson.core.exc with parameters of type JsonGeneratorModifierConstructorDescriptionStreamWriteException(JsonGenerator g, String msg) StreamWriteException(JsonGenerator g, String msg, Throwable rootCause) StreamWriteException(JsonGenerator g, Throwable rootCause) -
Uses of JsonGenerator in tools.jackson.core.filter
Subclasses of JsonGenerator in tools.jackson.core.filterModifier and TypeClassDescriptionclassSpecializedJsonGeneratorDelegatethat allows use ofTokenFilterfor outputting a subset of content that caller tries to generate.Methods in tools.jackson.core.filter that return JsonGeneratorModifier and TypeMethodDescriptionFilteringGeneratorDelegate.writeBinary(Base64Variant b64variant, byte[] data, int offset, int len) FilteringGeneratorDelegate.writeBoolean(boolean v) FilteringGeneratorDelegate.writeEndArray()FilteringGeneratorDelegate.writeEndObject()FilteringGeneratorDelegate.writeName(SerializableString name) FilteringGeneratorDelegate.writeNull()FilteringGeneratorDelegate.writeNumber(char[] encodedValueBuffer, int offset, int length) FilteringGeneratorDelegate.writeNumber(double v) FilteringGeneratorDelegate.writeNumber(float v) FilteringGeneratorDelegate.writeNumber(int v) FilteringGeneratorDelegate.writeNumber(long v) FilteringGeneratorDelegate.writeNumber(short v) FilteringGeneratorDelegate.writeNumber(String encodedValue) FilteringGeneratorDelegate.writeNumber(BigDecimal v) FilteringGeneratorDelegate.writeNumber(BigInteger v) FilteringGeneratorDelegate.writeObjectId(Object id) FilteringGeneratorDelegate.writeObjectRef(Object id) FilteringGeneratorDelegate.writeOmittedProperty(String propertyName) FilteringGeneratorDelegate.writePropertyId(long id) FilteringGeneratorDelegate.writeRaw(char c) FilteringGeneratorDelegate.writeRaw(char[] text, int offset, int len) FilteringGeneratorDelegate.writeRaw(SerializableString text) FilteringGeneratorDelegate.writeRawUTF8String(byte[] text, int offset, int length) FilteringGeneratorDelegate.writeRawValue(char[] text, int offset, int len) FilteringGeneratorDelegate.writeRawValue(String text) FilteringGeneratorDelegate.writeRawValue(String text, int offset, int len) FilteringGeneratorDelegate.writeStartArray()FilteringGeneratorDelegate.writeStartArray(Object currValue) FilteringGeneratorDelegate.writeStartArray(Object currValue, int size) FilteringGeneratorDelegate.writeStartObject()FilteringGeneratorDelegate.writeStartObject(Object currValue) FilteringGeneratorDelegate.writeStartObject(Object currValue, int size) FilteringGeneratorDelegate.writeString(char[] text, int offset, int len) FilteringGeneratorDelegate.writeString(Reader reader, int len) FilteringGeneratorDelegate.writeString(String value) FilteringGeneratorDelegate.writeString(SerializableString value) FilteringGeneratorDelegate.writeTypeId(Object id) FilteringGeneratorDelegate.writeUTF8String(byte[] text, int offset, int length) Methods in tools.jackson.core.filter with parameters of type JsonGeneratorModifier and TypeMethodDescriptionTokenFilterContext.closeArray(JsonGenerator gen) TokenFilterContext.closeObject(JsonGenerator gen) voidTokenFilterContext.ensurePropertyNameWritten(JsonGenerator gen) Method called to ensure that the property name, if present, has been written; may result (but does not always) in a call using given generatorvoidTokenFilterContext.writePath(JsonGenerator gen) Method called to ensure that parent path from root is written up to and including this node.Constructors in tools.jackson.core.filter with parameters of type JsonGeneratorModifierConstructorDescriptionFilteringGeneratorDelegate(JsonGenerator d, TokenFilter f, TokenFilter.Inclusion inclusion, boolean allowMultipleMatches) -
Uses of JsonGenerator in tools.jackson.core.json
Subclasses of JsonGenerator in tools.jackson.core.jsonModifier and TypeClassDescriptionclassIntermediate base class shared by JSON-backed generators likeUTF8JsonGeneratorandWriterBasedJsonGenerator.classclassJsonGeneratorthat outputs JSON content using aWriterwhich handles character encoding.Methods in tools.jackson.core.json that return JsonGeneratorModifier and TypeMethodDescriptionprotected JsonGeneratorJsonFactory._createGenerator(ObjectWriteContext writeCtxt, IOContext ioCtxt, Writer out) protected JsonGeneratorJsonFactory._createUTF8Generator(ObjectWriteContext writeCtxt, IOContext ioCtxt, OutputStream out) abstract JsonGeneratorJsonGeneratorBase.setCharacterEscapes(CharacterEscapes esc) UTF8JsonGenerator.setCharacterEscapes(CharacterEscapes esc) WriterBasedJsonGenerator.setCharacterEscapes(CharacterEscapes esc) UTF8JsonGenerator.writeBinary(Base64Variant b64variant, byte[] data, int offset, int len) WriterBasedJsonGenerator.writeBinary(Base64Variant b64variant, byte[] data, int offset, int len) UTF8JsonGenerator.writeBoolean(boolean state) WriterBasedJsonGenerator.writeBoolean(boolean state) UTF8JsonGenerator.writeEndArray()WriterBasedJsonGenerator.writeEndArray()UTF8JsonGenerator.writeEndObject()WriterBasedJsonGenerator.writeEndObject()UTF8JsonGenerator.writeName(SerializableString name) WriterBasedJsonGenerator.writeName(SerializableString name) UTF8JsonGenerator.writeNull()WriterBasedJsonGenerator.writeNull()UTF8JsonGenerator.writeNumber(char[] encodedValueBuffer, int offset, int length) UTF8JsonGenerator.writeNumber(double d) UTF8JsonGenerator.writeNumber(float f) UTF8JsonGenerator.writeNumber(int i) UTF8JsonGenerator.writeNumber(long l) UTF8JsonGenerator.writeNumber(short s) UTF8JsonGenerator.writeNumber(String encodedValue) UTF8JsonGenerator.writeNumber(BigDecimal value) UTF8JsonGenerator.writeNumber(BigInteger value) WriterBasedJsonGenerator.writeNumber(char[] encodedValueBuffer, int offset, int length) WriterBasedJsonGenerator.writeNumber(double d) WriterBasedJsonGenerator.writeNumber(float f) WriterBasedJsonGenerator.writeNumber(int i) WriterBasedJsonGenerator.writeNumber(long l) WriterBasedJsonGenerator.writeNumber(short s) WriterBasedJsonGenerator.writeNumber(String encodedValue) WriterBasedJsonGenerator.writeNumber(BigDecimal value) WriterBasedJsonGenerator.writeNumber(BigInteger value) JsonGeneratorBase.writePropertyId(long id) UTF8JsonGenerator.writeRaw(char ch) UTF8JsonGenerator.writeRaw(char[] cbuf, int offset, int len) UTF8JsonGenerator.writeRaw(SerializableString text) WriterBasedJsonGenerator.writeRaw(char c) WriterBasedJsonGenerator.writeRaw(char[] cbuf, int offset, int len) WriterBasedJsonGenerator.writeRaw(SerializableString text) UTF8JsonGenerator.writeRawUTF8String(byte[] text, int offset, int len) WriterBasedJsonGenerator.writeRawUTF8String(byte[] text, int offset, int length) UTF8JsonGenerator.writeRawValue(SerializableString text) JsonGeneratorBase.writeStartArray(Object currentValue, int size) UTF8JsonGenerator.writeStartArray()UTF8JsonGenerator.writeStartArray(Object forValue) UTF8JsonGenerator.writeStartArray(Object forValue, int len) WriterBasedJsonGenerator.writeStartArray()WriterBasedJsonGenerator.writeStartArray(Object forValue) WriterBasedJsonGenerator.writeStartArray(Object forValue, int len) JsonGeneratorBase.writeStartObject(Object currentValue, int size) UTF8JsonGenerator.writeStartObject()UTF8JsonGenerator.writeStartObject(Object forValue) UTF8JsonGenerator.writeStartObject(Object forValue, int size) WriterBasedJsonGenerator.writeStartObject()WriterBasedJsonGenerator.writeStartObject(Object forValue) WriterBasedJsonGenerator.writeStartObject(Object forValue, int size) UTF8JsonGenerator.writeString(char[] text, int offset, int len) UTF8JsonGenerator.writeString(Reader reader, int len) UTF8JsonGenerator.writeString(String text) UTF8JsonGenerator.writeString(SerializableString text) WriterBasedJsonGenerator.writeString(char[] text, int offset, int len) WriterBasedJsonGenerator.writeString(Reader reader, int len) WriterBasedJsonGenerator.writeString(String text) WriterBasedJsonGenerator.writeString(SerializableString sstr) UTF8JsonGenerator.writeUTF8String(byte[] text, int offset, int len) WriterBasedJsonGenerator.writeUTF8String(byte[] text, int offset, int length) Methods in tools.jackson.core.json with parameters of type JsonGenerator -
Uses of JsonGenerator in tools.jackson.core.util
Subclasses of JsonGenerator in tools.jackson.core.utilFields in tools.jackson.core.util declared as JsonGeneratorModifier and TypeFieldDescriptionprotected JsonGeneratorJsonGeneratorDelegate.delegateDelegate object that method calls are delegated to.Methods in tools.jackson.core.util that return JsonGeneratorModifier and TypeMethodDescriptionJsonGeneratorDelegate.configure(StreamWriteFeature f, boolean state) JsonGeneratorDecorator.decorate(TokenStreamFactory factory, JsonGenerator generator) Allow to decorateJsonGeneratorinstances returned byTokenStreamFactory.JsonGeneratorDelegate.delegate()JsonGeneratorDelegate.writeArray(double[] array, int offset, int length) JsonGeneratorDelegate.writeArray(int[] array, int offset, int length) JsonGeneratorDelegate.writeArray(long[] array, int offset, int length) JsonGeneratorDelegate.writeArray(String[] array, int offset, int length) JsonGeneratorDelegate.writeBinary(Base64Variant b64variant, byte[] data, int offset, int len) JsonGeneratorDelegate.writeBoolean(boolean state) JsonGeneratorDelegate.writeEmbeddedObject(Object object) JsonGeneratorDelegate.writeEndArray()JsonGeneratorDelegate.writeEndObject()JsonGeneratorDelegate.writeName(SerializableString name) JsonGeneratorDelegate.writeNull()JsonGeneratorDelegate.writeNumber(char[] encodedValueBuffer, int offset, int length) JsonGeneratorDelegate.writeNumber(double v) JsonGeneratorDelegate.writeNumber(float v) JsonGeneratorDelegate.writeNumber(int v) JsonGeneratorDelegate.writeNumber(long v) JsonGeneratorDelegate.writeNumber(short v) JsonGeneratorDelegate.writeNumber(String encodedValue) JsonGeneratorDelegate.writeNumber(BigDecimal v) JsonGeneratorDelegate.writeNumber(BigInteger v) JsonGeneratorDelegate.writeObjectId(Object id) JsonGeneratorDelegate.writeObjectRef(Object id) JsonGeneratorDelegate.writeOmittedProperty(String propName) JsonGeneratorDelegate.writePropertyId(long id) JsonGeneratorDelegate.writeRaw(char c) JsonGeneratorDelegate.writeRaw(char[] text, int offset, int len) JsonGeneratorDelegate.writeRaw(SerializableString raw) JsonGeneratorDelegate.writeRawUTF8String(byte[] text, int offset, int length) JsonGeneratorDelegate.writeRawValue(char[] text, int offset, int len) JsonGeneratorDelegate.writeRawValue(String text) JsonGeneratorDelegate.writeRawValue(String text, int offset, int len) JsonGeneratorDelegate.writeStartArray()JsonGeneratorDelegate.writeStartArray(Object forValue) JsonGeneratorDelegate.writeStartArray(Object forValue, int size) JsonGeneratorDelegate.writeStartObject()JsonGeneratorDelegate.writeStartObject(Object forValue) JsonGeneratorDelegate.writeStartObject(Object forValue, int size) JsonGeneratorDelegate.writeString(char[] text, int offset, int len) JsonGeneratorDelegate.writeString(Reader reader, int len) JsonGeneratorDelegate.writeString(String text) JsonGeneratorDelegate.writeString(SerializableString text) JsonGeneratorDelegate.writeTypeId(Object id) JsonGeneratorDelegate.writeUTF8String(byte[] text, int offset, int length) Methods in tools.jackson.core.util with parameters of type JsonGeneratorModifier and TypeMethodDescriptionvoidDefaultPrettyPrinter.beforeArrayValues(JsonGenerator g) voidMinimalPrettyPrinter.beforeArrayValues(JsonGenerator g) voidDefaultPrettyPrinter.beforeObjectEntries(JsonGenerator g) voidMinimalPrettyPrinter.beforeObjectEntries(JsonGenerator g) JsonGeneratorDecorator.decorate(TokenStreamFactory factory, JsonGenerator generator) Allow to decorateJsonGeneratorinstances returned byTokenStreamFactory.voidDefaultPrettyPrinter.writeArrayValueSeparator(JsonGenerator g) Method called after an array value has been completely output, and before another value is to be output.voidMinimalPrettyPrinter.writeArrayValueSeparator(JsonGenerator g) Method called after an array value has been completely output, and before another value is to be output.voidDefaultPrettyPrinter.writeEndArray(JsonGenerator g, int nrOfValues) voidMinimalPrettyPrinter.writeEndArray(JsonGenerator g, int nrOfValues) voidDefaultPrettyPrinter.writeEndObject(JsonGenerator g, int nrOfEntries) voidMinimalPrettyPrinter.writeEndObject(JsonGenerator g, int nrOfEntries) voidDefaultIndenter.writeIndentation(JsonGenerator jg, int level) voidDefaultPrettyPrinter.FixedSpaceIndenter.writeIndentation(JsonGenerator g, int level) voidDefaultPrettyPrinter.Indenter.writeIndentation(JsonGenerator g, int level) voidDefaultPrettyPrinter.NopIndenter.writeIndentation(JsonGenerator g, int level) voidDefaultPrettyPrinter.writeObjectEntrySeparator(JsonGenerator g) Method called after an object entry (field:value) has been completely output, and before another value is to be output.voidMinimalPrettyPrinter.writeObjectEntrySeparator(JsonGenerator g) Method called after an object entry (field:value) has been completely output, and before another value is to be output.voidDefaultPrettyPrinter.writeObjectNameValueSeparator(JsonGenerator g) Method called after the object property name has been output, but before the value is output.voidMinimalPrettyPrinter.writeObjectNameValueSeparator(JsonGenerator g) Method called after the Object property name has been output, but before the value is output.voidDefaultPrettyPrinter.writeRootValueSeparator(JsonGenerator g) voidMinimalPrettyPrinter.writeRootValueSeparator(JsonGenerator g) voidDefaultPrettyPrinter.writeStartArray(JsonGenerator g) voidMinimalPrettyPrinter.writeStartArray(JsonGenerator g) voidDefaultPrettyPrinter.writeStartObject(JsonGenerator g) voidMinimalPrettyPrinter.writeStartObject(JsonGenerator g) Constructors in tools.jackson.core.util with parameters of type JsonGeneratorModifierConstructorDescriptionJsonGeneratorDelegate(JsonGenerator d, boolean delegateCopyMethods)