Class TrailingCommasPrettyPrinter

  • All Implemented Interfaces:
    com.fasterxml.jackson.core.PrettyPrinter, com.fasterxml.jackson.core.util.Instantiatable<com.fasterxml.jackson.core.util.DefaultPrettyPrinter>, Serializable

    public class TrailingCommasPrettyPrinter
    extends PackageJsonPrettyPrinter
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.fasterxml.jackson.core.util.DefaultPrettyPrinter

        com.fasterxml.jackson.core.util.DefaultPrettyPrinter.FixedSpaceIndenter, com.fasterxml.jackson.core.util.DefaultPrettyPrinter.Indenter, com.fasterxml.jackson.core.util.DefaultPrettyPrinter.NopIndenter
    • Field Summary

      • Fields inherited from class com.fasterxml.jackson.core.util.DefaultPrettyPrinter

        _arrayIndenter, _nesting, _objectFieldValueSeparatorWithSpaces, _objectIndenter, _rootSeparator, _separators, _spacesInObjectEntries, DEFAULT_ROOT_VALUE_SEPARATOR
      • Fields inherited from interface com.fasterxml.jackson.core.PrettyPrinter

        DEFAULT_SEPARATORS
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.fasterxml.jackson.core.util.DefaultPrettyPrinter createInstance()  
      void writeEndArray​(com.fasterxml.jackson.core.JsonGenerator g, int nrOfValues)  
      void writeEndObject​(com.fasterxml.jackson.core.JsonGenerator g, int nrOfEntries)  
      • Methods inherited from class com.fasterxml.jackson.core.util.DefaultPrettyPrinter

        _withSpaces, beforeArrayValues, beforeObjectEntries, indentArraysWith, indentObjectsWith, withArrayIndenter, withObjectIndenter, withoutSpacesInObjectEntries, withRootSeparator, withRootSeparator, withSeparators, withSpacesInObjectEntries, writeArrayValueSeparator, writeObjectEntrySeparator, writeObjectFieldValueSeparator, writeRootValueSeparator, writeStartArray, writeStartObject
    • Constructor Detail

      • TrailingCommasPrettyPrinter

        public TrailingCommasPrettyPrinter()
    • Method Detail

      • createInstance

        public com.fasterxml.jackson.core.util.DefaultPrettyPrinter createInstance()
        Specified by:
        createInstance in interface com.fasterxml.jackson.core.util.Instantiatable<com.fasterxml.jackson.core.util.DefaultPrettyPrinter>
        Overrides:
        createInstance in class PackageJsonPrettyPrinter
      • writeEndObject

        public void writeEndObject​(com.fasterxml.jackson.core.JsonGenerator g,
                                   int nrOfEntries)
                            throws IOException
        Specified by:
        writeEndObject in interface com.fasterxml.jackson.core.PrettyPrinter
        Overrides:
        writeEndObject in class com.fasterxml.jackson.core.util.DefaultPrettyPrinter
        Throws:
        IOException
      • writeEndArray

        public void writeEndArray​(com.fasterxml.jackson.core.JsonGenerator g,
                                  int nrOfValues)
                           throws IOException
        Specified by:
        writeEndArray in interface com.fasterxml.jackson.core.PrettyPrinter
        Overrides:
        writeEndArray in class com.fasterxml.jackson.core.util.DefaultPrettyPrinter
        Throws:
        IOException