Uses of Class
com.fasterxml.jackson.core.JsonGenerator
-
Packages that use JsonGenerator Package Description com.fasterxml.jackson.core Main public API classes of the core streaming JSON processor: most importantlyJsonFactoryused for constructing JSON parser (JsonParser) and generator (JsonGenerator) instances.com.fasterxml.jackson.core.base Base classes used by concrete Parser and Generator implementations; contain functionality that is not specific to JSON or input abstraction (byte vs char).com.fasterxml.jackson.core.filter com.fasterxml.jackson.core.json JSON-specific parser and generator implementation classes that Jackson defines and uses.com.fasterxml.jackson.core.util Utility classes used by Jackson Core functionality. -
-
Uses of JsonGenerator in com.fasterxml.jackson.core
Fields in com.fasterxml.jackson.core declared as JsonGenerator Modifier and Type Field Description protected JsonGeneratorJsonGenerationException. _processorMethods in com.fasterxml.jackson.core that return JsonGenerator Modifier and Type Method Description protected JsonGeneratorJsonFactory. _createGenerator(java.io.Writer out, IOContext ctxt)Overridable factory method that actually instantiates generator for givenWriterand context object.protected JsonGeneratorJsonFactory. _createUTF8Generator(java.io.OutputStream out, IOContext ctxt)Overridable factory method that actually instantiates generator for givenOutputStreamand context object, using UTF-8 encoding.JsonGeneratorJsonGenerator. configure(JsonGenerator.Feature f, boolean state)Method for enabling or disabling specified feature: checkJsonGenerator.Featurefor list of available features.JsonGeneratorJsonFactory. createGenerator(java.io.DataOutput out)Convenience method for constructing generator that uses default encoding of the format (UTF-8 for JSON and most other data formats).JsonGeneratorJsonFactory. createGenerator(java.io.DataOutput out, JsonEncoding enc)Method for constructing generator for writing content using specifiedDataOutputinstance.JsonGeneratorJsonFactory. createGenerator(java.io.File f, JsonEncoding enc)Method for constructing JSON generator for writing JSON content to specified file, overwriting contents it might have (or creating it if such file does not yet exist).JsonGeneratorJsonFactory. createGenerator(java.io.OutputStream out)Convenience method for constructing generator that uses default encoding of the format (UTF-8 for JSON and most other data formats).JsonGeneratorJsonFactory. createGenerator(java.io.OutputStream out, JsonEncoding enc)Method for constructing JSON generator for writing JSON content using specified output stream.JsonGeneratorJsonFactory. createGenerator(java.io.Writer w)Method for constructing JSON generator for writing JSON content using specified Writer.JsonGeneratorJsonFactory. createJsonGenerator(java.io.OutputStream out)Deprecated.Since 2.2, useJsonFactory.createGenerator(OutputStream)instead.JsonGeneratorJsonFactory. createJsonGenerator(java.io.OutputStream out, JsonEncoding enc)Deprecated.Since 2.2, useJsonFactory.createGenerator(OutputStream, JsonEncoding)instead.JsonGeneratorJsonFactory. createJsonGenerator(java.io.Writer out)Deprecated.Since 2.2, useJsonFactory.createGenerator(Writer)instead.abstract JsonGeneratorJsonGenerator. disable(JsonGenerator.Feature f)Method for disabling specified features (checkJsonGenerator.Featurefor list of features)abstract JsonGeneratorJsonGenerator. enable(JsonGenerator.Feature f)Method for enabling specified parser features: checkJsonGenerator.Featurefor list of available features.JsonGeneratorJsonGenerationException. getProcessor()JsonGeneratorJsonGenerator. overrideFormatFeatures(int values, int mask)Bulk set method for (re)setting states ofFormatFeatures, by specifying values (set / clear) along with a mask, to determine which features to change, if any.JsonGeneratorJsonGenerator. overrideStdFeatures(int values, int mask)Bulk set method for (re)setting states of features specified bymask.JsonGeneratorJsonGenerator. setCharacterEscapes(CharacterEscapes esc)Method for defining custom escapes factory uses forJsonGenerators it creates.abstract JsonGeneratorJsonGenerator. setCodec(ObjectCodec oc)Method that can be called to set or reset the object to use for writing Java objects as JsonContent (using methodwriteObject(java.lang.Object)).abstract JsonGeneratorJsonGenerator. setFeatureMask(int values)Deprecated.Since 2.7, useoverrideStdFeatures(int, int)instead -- remove from 2.9JsonGeneratorJsonGenerator. setHighestNonEscapedChar(int charCode)Method that can be called to request that generator escapes all character codes above specified code point (if positive value); or, to not escape any characters except for ones that must be escaped for the data format (if -1).JsonGeneratorJsonGenerator. setPrettyPrinter(PrettyPrinter pp)Method for setting a custom pretty printer, which is usually used to add indentation for improved human readability.JsonGeneratorJsonGenerator. setRootValueSeparator(SerializableString sep)Method that allows overriding String used for separating root-level JSON values (default is single space character)abstract JsonGeneratorJsonGenerator. useDefaultPrettyPrinter()Convenience method for enabling pretty-printing using the default pretty printer (DefaultPrettyPrinter).Methods in com.fasterxml.jackson.core with parameters of type JsonGenerator Modifier and Type Method Description voidPrettyPrinter. beforeArrayValues(JsonGenerator gen)Method called after array start marker has been output, and right before the first value is to be output.voidPrettyPrinter. beforeObjectEntries(JsonGenerator gen)Method called after object start marker has been output, and right before the field name of the first entry is to be output.JsonGenerationExceptionJsonGenerationException. withGenerator(JsonGenerator g)Fluent method that may be used to assign originatingJsonGenerator, to be accessed usingJsonGenerationException.getProcessor().voidPrettyPrinter. writeArrayValueSeparator(JsonGenerator gen)Method called after an array value has been completely output, and before another value is to be output.voidPrettyPrinter. writeEndArray(JsonGenerator gen, int nrOfValues)Method called after an Array value has been completely output (minus closing bracket).voidPrettyPrinter. writeEndObject(JsonGenerator gen, int nrOfEntries)Method called after an Object value has been completely output (minus closing curly bracket).voidPrettyPrinter. writeObjectEntrySeparator(JsonGenerator gen)Method called after an object entry (field:value) has been completely output, and before another value is to be output.voidPrettyPrinter. writeObjectFieldValueSeparator(JsonGenerator gen)Method called after an object field has been output, but before the value is output.voidPrettyPrinter. writeRootValueSeparator(JsonGenerator gen)Method called after a root-level value has been completely output, and before another value is to be output.voidPrettyPrinter. writeStartArray(JsonGenerator gen)Method called when an Array value is to be output, before any member/child values are output.voidPrettyPrinter. writeStartObject(JsonGenerator gen)Method called when an Object value is to be output, before any fields are output.abstract voidObjectCodec. writeTree(JsonGenerator gen, TreeNode tree)abstract voidTreeCodec. writeTree(JsonGenerator g, TreeNode tree)abstract voidObjectCodec. writeValue(JsonGenerator gen, java.lang.Object value)Method to serialize given Java Object, using generator provided.Constructors in com.fasterxml.jackson.core with parameters of type JsonGenerator Constructor Description JsonGenerationException(java.lang.String msg, JsonGenerator g)JsonGenerationException(java.lang.String msg, java.lang.Throwable rootCause, JsonGenerator g)JsonGenerationException(java.lang.Throwable rootCause, JsonGenerator g) -
Uses of JsonGenerator in com.fasterxml.jackson.core.base
Subclasses of JsonGenerator in com.fasterxml.jackson.core.base Modifier and Type Class Description classGeneratorBaseThis 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 com.fasterxml.jackson.core.base that return JsonGenerator Modifier and Type Method Description JsonGeneratorGeneratorBase. disable(JsonGenerator.Feature f)JsonGeneratorGeneratorBase. enable(JsonGenerator.Feature f)JsonGeneratorGeneratorBase. overrideStdFeatures(int values, int mask)JsonGeneratorGeneratorBase. setCodec(ObjectCodec oc)JsonGeneratorGeneratorBase. setFeatureMask(int newMask)Deprecated.JsonGeneratorGeneratorBase. useDefaultPrettyPrinter() -
Uses of JsonGenerator in com.fasterxml.jackson.core.filter
Subclasses of JsonGenerator in com.fasterxml.jackson.core.filter Modifier and Type Class Description classFilteringGeneratorDelegateSpecializedJsonGeneratorDelegatethat allows use ofTokenFilterfor outputting a subset of content that caller tries to generate.Methods in com.fasterxml.jackson.core.filter with parameters of type JsonGenerator Modifier and Type Method Description TokenFilterContextTokenFilterContext. closeArray(JsonGenerator gen)TokenFilterContextTokenFilterContext. closeObject(JsonGenerator gen)voidTokenFilterContext. writeImmediatePath(JsonGenerator gen)Variant ofTokenFilterContext.writePath(JsonGenerator)called when all we need is immediately surrounding Object.voidTokenFilterContext. writePath(JsonGenerator gen)Method called to ensure that parent path from root is written up to and including this node.Constructors in com.fasterxml.jackson.core.filter with parameters of type JsonGenerator Constructor Description FilteringGeneratorDelegate(JsonGenerator d, TokenFilter f, boolean includePath, boolean allowMultipleMatches) -
Uses of JsonGenerator in com.fasterxml.jackson.core.json
Subclasses of JsonGenerator in com.fasterxml.jackson.core.json Modifier and Type Class Description classJsonGeneratorImplIntermediate base class shared by JSON-backed generators likeUTF8JsonGeneratorandWriterBasedJsonGenerator.classUTF8JsonGeneratorclassWriterBasedJsonGeneratorJsonGeneratorthat outputs JSON content using aWriterwhich handles character encoding.Methods in com.fasterxml.jackson.core.json that return JsonGenerator Modifier and Type Method Description JsonGeneratorJsonGeneratorImpl. disable(JsonGenerator.Feature f)JsonGeneratorJsonGeneratorImpl. enable(JsonGenerator.Feature f)JsonGeneratorJsonGeneratorImpl. setCharacterEscapes(CharacterEscapes esc)JsonGeneratorJsonGeneratorImpl. setHighestNonEscapedChar(int charCode)JsonGeneratorJsonGeneratorImpl. setRootValueSeparator(SerializableString sep)Methods in com.fasterxml.jackson.core.json with parameters of type JsonGenerator Modifier and Type Method Description static DupDetectorDupDetector. rootDetector(JsonGenerator g) -
Uses of JsonGenerator in com.fasterxml.jackson.core.util
Subclasses of JsonGenerator in com.fasterxml.jackson.core.util Modifier and Type Class Description classJsonGeneratorDelegateFields in com.fasterxml.jackson.core.util declared as JsonGenerator Modifier and Type Field Description protected JsonGeneratorJsonGeneratorDelegate. delegateDelegate object that method calls are delegated to.Methods in com.fasterxml.jackson.core.util that return JsonGenerator Modifier and Type Method Description JsonGeneratorJsonGeneratorDelegate. disable(JsonGenerator.Feature f)JsonGeneratorJsonGeneratorDelegate. enable(JsonGenerator.Feature f)JsonGeneratorJsonGeneratorDelegate. getDelegate()JsonGeneratorJsonGeneratorDelegate. overrideFormatFeatures(int values, int mask)JsonGeneratorJsonGeneratorDelegate. overrideStdFeatures(int values, int mask)JsonGeneratorJsonGeneratorDelegate. setCharacterEscapes(CharacterEscapes esc)JsonGeneratorJsonGeneratorDelegate. setCodec(ObjectCodec oc)JsonGeneratorJsonGeneratorDelegate. setFeatureMask(int mask)Deprecated.JsonGeneratorJsonGeneratorDelegate. setHighestNonEscapedChar(int charCode)JsonGeneratorJsonGeneratorDelegate. setPrettyPrinter(PrettyPrinter pp)JsonGeneratorJsonGeneratorDelegate. setRootValueSeparator(SerializableString sep)JsonGeneratorJsonGeneratorDelegate. useDefaultPrettyPrinter()Methods in com.fasterxml.jackson.core.util with parameters of type JsonGenerator Modifier and Type Method Description voidDefaultPrettyPrinter. beforeArrayValues(JsonGenerator g)voidMinimalPrettyPrinter. beforeArrayValues(JsonGenerator g)voidDefaultPrettyPrinter. beforeObjectEntries(JsonGenerator g)voidMinimalPrettyPrinter. beforeObjectEntries(JsonGenerator g)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. writeObjectFieldValueSeparator(JsonGenerator g)Method called after an object field has been output, but before the value is output.voidMinimalPrettyPrinter. writeObjectFieldValueSeparator(JsonGenerator g)Method called after an object field 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 com.fasterxml.jackson.core.util with parameters of type JsonGenerator Constructor Description JsonGeneratorDelegate(JsonGenerator d)JsonGeneratorDelegate(JsonGenerator d, boolean delegateCopyMethods)
-