Uses of Class

Packages that use JsonGenerator
org.codehaus.jackson Main public API classes of the core streaming JSON processor: most importantly JsonFactory used for constructing Json parser (JsonParser) and generator (JsonParser) instances. 
org.codehaus.jackson.impl Parser and generator implementation classes that Jackson defines and uses. Contains basic mapper (conversion) functionality that allows for converting between regular streaming json content and Java objects (beans or Tree Model: support for both is via ObjectMapper class, as well as convenience methods included in JsonParser Contains extended support for "external" packages: things that may or may not be present in runtime environment, but that are commonly enough used so that explicit support can be added. Contains implementation classes of serialization part of data binding. 
org.codehaus.jackson.node Contains concrete JsonNode implementations Jackson uses for the Tree model. 
org.codehaus.jackson.util Utility classes used by Jackson Core functionality. 
org.codehaus.jackson.xc Package that contains Xml Compatibility functionality for Jackson. 

Uses of JsonGenerator in org.codehaus.jackson

Methods in org.codehaus.jackson that return JsonGenerator
protected  JsonGenerator JsonFactory._createJsonGenerator(Writer out, IOContext ctxt)
          Overridable construction method that actually instantiates desired generator
 JsonGenerator JsonNode.append()
          Method for constructing a JsonGenerator instance that allows modifying contents of this JSON node by appending JSON content using streaming API.
 JsonGenerator JsonGenerator.configure(JsonGenerator.Feature f, boolean state)
          Method for enabling or disabling specified feature: check JsonGenerator.Feature for list of available features.
 JsonGenerator JsonFactory.createJsonGenerator(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).
 JsonGenerator JsonFactory.createJsonGenerator(OutputStream out, JsonEncoding enc)
          Method for constructing json generator for writing json content using specified output stream.
 JsonGenerator JsonFactory.createJsonGenerator(Writer out)
          Method for constructing json generator for writing json content using specified Writer.
abstract  JsonGenerator JsonGenerator.disable(JsonGenerator.Feature f)
          Method for disabling specified features (check JsonGenerator.Feature for list of features)
abstract  JsonGenerator JsonGenerator.enable(JsonGenerator.Feature f)
          Method for enabling specified parser features: check JsonGenerator.Feature for list of available features.
abstract  JsonGenerator JsonGenerator.setCodec(ObjectCodec oc)
          Method that can be called to set or reset the object to use for writing Java objects as JsonContent (using method writeObject(java.lang.Object)).
 JsonGenerator JsonGenerator.setPrettyPrinter(PrettyPrinter pp)
          Method for setting a custom pretty printer, which is usually used to add indentation for improved human readability.
abstract  JsonGenerator JsonGenerator.useDefaultPrettyPrinter()
          Convenience method for enabling pretty-printing using the default pretty printer (DefaultPrettyPrinter).

Methods in org.codehaus.jackson with parameters of type JsonGenerator
 void PrettyPrinter.beforeArrayValues(JsonGenerator jg)
          Method called after array start marker has been output, and right before the first value is to be output.
 void PrettyPrinter.beforeObjectEntries(JsonGenerator jg)
          Method called after object start marker has been output, and right before the field name of the first entry is to be output.
 void PrettyPrinter.writeArrayValueSeparator(JsonGenerator jg)
          Method called after an array value has been completely output, and before another value is to be output.
 void PrettyPrinter.writeEndArray(JsonGenerator jg, int nrOfValues)
          Method called after an Array value has been completely output (minus closing bracket).
 void PrettyPrinter.writeEndObject(JsonGenerator jg, int nrOfEntries)
          Method called after an Object value has been completely output (minus closing curly bracket).
 void PrettyPrinter.writeObjectEntrySeparator(JsonGenerator jg)
          Method called after an object entry (field:value) has been completely output, and before another value is to be output.
 void PrettyPrinter.writeObjectFieldValueSeparator(JsonGenerator jg)
          Method called after an object field has been output, but before the value is output.
 void PrettyPrinter.writeRootValueSeparator(JsonGenerator jg)
          Method called after a root-level value has been completely output, and before another value is to be output.
 void PrettyPrinter.writeStartArray(JsonGenerator jg)
          Method called when an Array value is to be output, before any member/child values are output.
 void PrettyPrinter.writeStartObject(JsonGenerator jg)
          Method called when an Object value is to be output, before any fields are output.
abstract  void JsonNode.writeTo(JsonGenerator jg)
          Deprecated. Use methods that are part of JsonGenerator or ObjectMapper instead.
abstract  void ObjectCodec.writeTree(JsonGenerator jgen, JsonNode rootNode)
          Method to serialize given Json Tree, using generator provided.
abstract  void ObjectCodec.writeValue(JsonGenerator jgen, Object value)
          Method to serialize given Java Object, using generator provided.

Uses of JsonGenerator in org.codehaus.jackson.impl

Subclasses of JsonGenerator in org.codehaus.jackson.impl
 class JsonGeneratorBase
          This 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.
 class WriterBasedGenerator

Methods in org.codehaus.jackson.impl that return JsonGenerator
 JsonGenerator JsonGeneratorBase.disable(JsonGenerator.Feature f)
 JsonGenerator JsonGeneratorBase.enable(JsonGenerator.Feature f)
 JsonGenerator JsonGeneratorBase.setCodec(ObjectCodec oc)
 JsonGenerator JsonGeneratorBase.useDefaultPrettyPrinter()

Methods in org.codehaus.jackson.impl with parameters of type JsonGenerator
 void DefaultPrettyPrinter.beforeArrayValues(JsonGenerator jg)
 void DefaultPrettyPrinter.beforeObjectEntries(JsonGenerator jg)
 void DefaultPrettyPrinter.writeArrayValueSeparator(JsonGenerator jg)
          Method called after an array value has been completely output, and before another value is to be output.
 void DefaultPrettyPrinter.writeEndArray(JsonGenerator jg, int nrOfValues)
 void DefaultPrettyPrinter.writeEndObject(JsonGenerator jg, int nrOfEntries)
 void Indenter.writeIndentation(JsonGenerator jg, int level)
 void DefaultPrettyPrinter.NopIndenter.writeIndentation(JsonGenerator jg, int level)
 void DefaultPrettyPrinter.FixedSpaceIndenter.writeIndentation(JsonGenerator jg, int level)
 void DefaultPrettyPrinter.Lf2SpacesIndenter.writeIndentation(JsonGenerator jg, int level)
 void DefaultPrettyPrinter.writeObjectEntrySeparator(JsonGenerator jg)
          Method called after an object entry (field:value) has been completely output, and before another value is to be output.
 void DefaultPrettyPrinter.writeObjectFieldValueSeparator(JsonGenerator jg)
          Method called after an object field has been output, but before the value is output.
 void DefaultPrettyPrinter.writeRootValueSeparator(JsonGenerator jg)
 void DefaultPrettyPrinter.writeStartArray(JsonGenerator jg)
 void DefaultPrettyPrinter.writeStartObject(JsonGenerator jg)

Uses of JsonGenerator in

Methods in with parameters of type JsonGenerator
protected  void ObjectMapper._configAndWriteValue(JsonGenerator jgen, Object value)
          Method called to configure the generator as necessary and then call write functionality
protected  void ObjectMapper._configAndWriteValue(JsonGenerator jgen, Object value, Class<?> viewClass)
abstract  void SerializerProvider.defaultSerializeDateValue(Date date, JsonGenerator jgen)
          Method that will handle serialization of Date(-like) values, using SerializationConfig settings to determine expected serialization behavior.
abstract  void SerializerProvider.defaultSerializeDateValue(long timestamp, JsonGenerator jgen)
          Method that will handle serialization of Date(-like) values, using SerializationConfig settings to determine expected serialization behavior.
 void SerializerProvider.defaultSerializeField(String fieldName, Object value, JsonGenerator jgen)
          Convenience method that will serialize given field with specified value.
 void SerializerProvider.defaultSerializeValue(Object value, JsonGenerator jgen)
          Convenience method that will serialize given value (which can be null) using standard serializer locating functionality.
 void JsonSerializable.serialize(JsonGenerator jgen, SerializerProvider provider)
abstract  void JsonSerializer.serialize(T value, JsonGenerator jgen, SerializerProvider provider)
          Method that can be called to ask implementation to serialize values of type this serializer handles.
abstract  void SerializerProvider.serializeValue(SerializationConfig cfg, JsonGenerator jgen, Object value, SerializerFactory jsf)
          The method to be called by ObjectMapper to execute recursive serialization, using serializers that this provider has access to.
 void ObjectMapper.writeTree(JsonGenerator jgen, JsonNode rootNode)
          Method to serialize given Json Tree, using generator provided.
 void ObjectMapper.writeTree(JsonGenerator jgen, JsonNode rootNode, SerializationConfig cfg)
          Method to serialize given Json Tree, using generator provided.
 void ObjectMapper.writeValue(JsonGenerator jgen, Object value)
          Method that can be used to serialize any Java value as Json output, using provided JsonGenerator.
 void ObjectMapper.writeValue(JsonGenerator jgen, Object value, SerializationConfig config)
          Method that can be used to serialize any Java value as Json output, using provided JsonGenerator, configured as per passed configuration object.
 void ObjectMapper.writeValueUsingView(JsonGenerator jgen, Object value, Class<?> viewClass)
          Method for serializing given object using specified view.

Uses of JsonGenerator in

Methods in with parameters of type JsonGenerator
 void JodaSerializers.DateTimeSerializer.serialize(DateTime value, JsonGenerator jgen, SerializerProvider provider)
 void DOMSerializer.serialize(Node value, JsonGenerator jgen, SerializerProvider provider)

Uses of JsonGenerator in

Methods in with parameters of type JsonGenerator
protected  void StdSerializerProvider._serializeValue(JsonGenerator jgen, Object value)
          Method called on the actual non-blueprint provider instance object, to kick off the serialization.
 void StdSerializerProvider.defaultSerializeDateValue(Date date, JsonGenerator jgen)
 void StdSerializerProvider.defaultSerializeDateValue(long timestamp, JsonGenerator jgen)
 void ArraySerializers.BooleanArraySerializer.serialize(boolean[] value, JsonGenerator jgen, SerializerProvider provider)
 void BasicSerializerFactory.BooleanSerializer.serialize(Boolean value, JsonGenerator jgen, SerializerProvider provider)
 void ArraySerializers.ByteArraySerializer.serialize(byte[] value, JsonGenerator jgen, SerializerProvider provider)
 void BasicSerializerFactory.CalendarSerializer.serialize(Calendar value, JsonGenerator jgen, SerializerProvider provider)
 void ArraySerializers.CharArraySerializer.serialize(char[] value, JsonGenerator jgen, SerializerProvider provider)
 void BasicSerializerFactory.ClassSerializer.serialize(Class<?> value, JsonGenerator jgen, SerializerProvider provider)
 void ContainerSerializers.CollectionSerializer.serialize(Collection<?> value, JsonGenerator jgen, SerializerProvider provider)
 void BasicSerializerFactory.UtilDateSerializer.serialize(Date value, JsonGenerator jgen, SerializerProvider provider)
 void BasicSerializerFactory.SqlDateSerializer.serialize(Date value, JsonGenerator jgen, SerializerProvider provider)
 void ArraySerializers.DoubleArraySerializer.serialize(double[] value, JsonGenerator jgen, SerializerProvider provider)
 void BasicSerializerFactory.DoubleSerializer.serialize(Double value, JsonGenerator jgen, SerializerProvider provider)
 void EnumSerializer.serialize(Enum<?> en, JsonGenerator jgen, SerializerProvider provider)
 void ContainerSerializers.EnumMapSerializer.serialize(EnumMap<? extends Enum<?>,?> value, JsonGenerator jgen, SerializerProvider provider)
 void ContainerSerializers.EnumSetSerializer.serialize(EnumSet<? extends Enum<?>> value, JsonGenerator jgen, SerializerProvider provider)
 void JdkSerializers.FileSerializer.serialize(File value, JsonGenerator jgen, SerializerProvider provider)
 void ArraySerializers.FloatArraySerializer.serialize(float[] value, JsonGenerator jgen, SerializerProvider provider)
 void BasicSerializerFactory.FloatSerializer.serialize(Float value, JsonGenerator jgen, SerializerProvider provider)
 void ArraySerializers.IntArraySerializer.serialize(int[] value, JsonGenerator jgen, SerializerProvider provider)
 void BasicSerializerFactory.IntegerSerializer.serialize(Integer value, JsonGenerator jgen, SerializerProvider provider)
 void ContainerSerializers.IterableSerializer.serialize(Iterable<?> value, JsonGenerator jgen, SerializerProvider provider)
 void ContainerSerializers.IteratorSerializer.serialize(Iterator<?> value, JsonGenerator jgen, SerializerProvider provider)
 void BasicSerializerFactory.SerializableSerializer.serialize(JsonSerializable value, JsonGenerator jgen, SerializerProvider provider)
 void ContainerSerializers.IndexedListSerializer.serialize(List<?> value, JsonGenerator jgen, SerializerProvider provider)
 void ArraySerializers.LongArraySerializer.serialize(long[] value, JsonGenerator jgen, SerializerProvider provider)
 void BasicSerializerFactory.LongSerializer.serialize(Long value, JsonGenerator jgen, SerializerProvider provider)
 void MapSerializer.serialize(Map<?,?> value, JsonGenerator jgen, SerializerProvider provider)
 void BasicSerializerFactory.IntLikeSerializer.serialize(Number value, JsonGenerator jgen, SerializerProvider provider)
 void BasicSerializerFactory.NumberSerializer.serialize(Number value, JsonGenerator jgen, SerializerProvider provider)
 void ArraySerializers.ObjectArraySerializer.serialize(Object[] value, JsonGenerator jgen, SerializerProvider provider)
 void FailingSerializer.serialize(Object value, JsonGenerator jgen, SerializerProvider provider)
 void StdKeySerializer.serialize(Object value, JsonGenerator jgen, SerializerProvider provider)
 void BeanSerializer.serialize(Object bean, JsonGenerator jgen, SerializerProvider provider)
 void JsonValueSerializer.serialize(Object bean, JsonGenerator jgen, SerializerProvider prov)
 void ToStringSerializer.serialize(Object value, JsonGenerator jgen, SerializerProvider provider)
 void BasicSerializerFactory.NullSerializer.serialize(Object value, JsonGenerator jgen, SerializerProvider provider)
 void ArraySerializers.ShortArraySerializer.serialize(short[] value, JsonGenerator jgen, SerializerProvider provider)
 void ArraySerializers.StringArraySerializer.serialize(String[] value, JsonGenerator jgen, SerializerProvider provider)
 void BasicSerializerFactory.StringSerializer.serialize(String value, JsonGenerator jgen, SerializerProvider provider)
 void BasicSerializerFactory.SqlTimeSerializer.serialize(Time value, JsonGenerator jgen, SerializerProvider provider)
abstract  void SerializerBase.serialize(T value, JsonGenerator jgen, SerializerProvider provider)
 void BeanPropertyWriter.serializeAsField(Object bean, JsonGenerator jgen, SerializerProvider prov)
          Method called to access property that this bean stands for, from within given bean, and to serialize it as a Json Object field using appropriate serializer.
protected  void MapSerializer.serializeEntries(Map<?,?> value, JsonGenerator jgen, SerializerProvider provider)
          Helper method that will write all entries of given non-empty Map
protected  void MapSerializer.serializeSomeEntries(Map<?,?> value, JsonGenerator jgen, SerializerProvider provider, HashSet<String> ignored)
          Helper method that will write all entries of the given non-empty map, except for specified set of ignorable entries, filtered based on entry key.
 void StdSerializerProvider.serializeValue(SerializationConfig config, JsonGenerator jgen, Object value, SerializerFactory jsf)

Uses of JsonGenerator in org.codehaus.jackson.node

Methods in org.codehaus.jackson.node with parameters of type JsonGenerator
 void POJONode.serialize(JsonGenerator jg, SerializerProvider provider)
abstract  void BaseJsonNode.serialize(JsonGenerator jgen, SerializerProvider provider)
          Method called to serialize node instances using given generator.
 void BinaryNode.serialize(JsonGenerator jg, SerializerProvider provider)
 void TextNode.serialize(JsonGenerator jg, SerializerProvider provider)
 void BooleanNode.serialize(JsonGenerator jg, SerializerProvider provider)
 void ArrayNode.serialize(JsonGenerator jg, SerializerProvider provider)
 void DoubleNode.serialize(JsonGenerator jg, SerializerProvider provider)
 void NullNode.serialize(JsonGenerator jg, SerializerProvider provider)
 void MissingNode.serialize(JsonGenerator jg, SerializerProvider provider)
 void ObjectNode.serialize(JsonGenerator jg, SerializerProvider provider)
          Method that can be called to serialize this node and all of its descendants using specified JSON generator.
 void BigIntegerNode.serialize(JsonGenerator jg, SerializerProvider provider)
 void LongNode.serialize(JsonGenerator jg, SerializerProvider provider)
 void DecimalNode.serialize(JsonGenerator jg, SerializerProvider provider)
 void IntNode.serialize(JsonGenerator jg, SerializerProvider provider)
 void BaseJsonNode.writeTo(JsonGenerator jgen)
           Note: this method should probably be deprecated, given that we want to use the standard serialization interface.

Uses of JsonGenerator in org.codehaus.jackson.util

Subclasses of JsonGenerator in org.codehaus.jackson.util
 class JsonGeneratorDelegate

Fields in org.codehaus.jackson.util declared as JsonGenerator
protected  JsonGenerator JsonGeneratorDelegate.delegate
          Delegate object that method calls are delegated to.

Methods in org.codehaus.jackson.util that return JsonGenerator
 JsonGenerator JsonGeneratorDelegate.disable(JsonGenerator.Feature f)
 JsonGenerator JsonGeneratorDelegate.enable(JsonGenerator.Feature f)
 JsonGenerator JsonGeneratorDelegate.setCodec(ObjectCodec oc)
 JsonGenerator JsonGeneratorDelegate.useDefaultPrettyPrinter()

Constructors in org.codehaus.jackson.util with parameters of type JsonGenerator
JsonGeneratorDelegate(JsonGenerator d)

Uses of JsonGenerator in org.codehaus.jackson.xc

Methods in org.codehaus.jackson.xc with parameters of type JsonGenerator
 void DataHandlerJsonSerializer.serialize(DataHandler value, JsonGenerator jgen, SerializerProvider provider)
 void XmlAdapterJsonSerializer.serialize(Object value, JsonGenerator jgen, SerializerProvider provider)