Class SyntaxHighlightingPrettyPrinter

java.lang.Object
tools.jackson.core.util.DefaultPrettyPrinter
org.entur.jackson.tools.jsh.SyntaxHighlightingPrettyPrinter
All Implemented Interfaces:
Serializable, tools.jackson.core.PrettyPrinter, tools.jackson.core.util.Instantiatable<tools.jackson.core.util.DefaultPrettyPrinter>

public class SyntaxHighlightingPrettyPrinter extends tools.jackson.core.util.DefaultPrettyPrinter
Pretty-printer. Must be used together with SyntaxHighlightingJsonGenerator.
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • setTokenStreamContextListener

      public void setTokenStreamContextListener(TokenStreamContextListener listener)
    • createInstance

      public tools.jackson.core.util.DefaultPrettyPrinter createInstance()
      Specified by:
      createInstance in interface tools.jackson.core.util.Instantiatable<tools.jackson.core.util.DefaultPrettyPrinter>
      Overrides:
      createInstance in class tools.jackson.core.util.DefaultPrettyPrinter
    • writeRootValueSeparator

      public void writeRootValueSeparator(tools.jackson.core.JsonGenerator gen)
      Specified by:
      writeRootValueSeparator in interface tools.jackson.core.PrettyPrinter
      Overrides:
      writeRootValueSeparator in class tools.jackson.core.util.DefaultPrettyPrinter
    • writeStartObject

      public void writeStartObject(tools.jackson.core.JsonGenerator gen)
      Specified by:
      writeStartObject in interface tools.jackson.core.PrettyPrinter
      Overrides:
      writeStartObject in class tools.jackson.core.util.DefaultPrettyPrinter
    • writeEndObject

      public void writeEndObject(tools.jackson.core.JsonGenerator gen, int nrOfEntries)
      Specified by:
      writeEndObject in interface tools.jackson.core.PrettyPrinter
      Overrides:
      writeEndObject in class tools.jackson.core.util.DefaultPrettyPrinter
    • writeObjectEntrySeparator

      public void writeObjectEntrySeparator(tools.jackson.core.JsonGenerator gen)
      Specified by:
      writeObjectEntrySeparator in interface tools.jackson.core.PrettyPrinter
      Overrides:
      writeObjectEntrySeparator in class tools.jackson.core.util.DefaultPrettyPrinter
    • writeObjectNameValueSeparator

      public void writeObjectNameValueSeparator(tools.jackson.core.JsonGenerator gen) throws tools.jackson.core.JacksonException
      Specified by:
      writeObjectNameValueSeparator in interface tools.jackson.core.PrettyPrinter
      Overrides:
      writeObjectNameValueSeparator in class tools.jackson.core.util.DefaultPrettyPrinter
      Throws:
      tools.jackson.core.JacksonException
    • writeStartArray

      public void writeStartArray(tools.jackson.core.JsonGenerator gen)
      Specified by:
      writeStartArray in interface tools.jackson.core.PrettyPrinter
      Overrides:
      writeStartArray in class tools.jackson.core.util.DefaultPrettyPrinter
    • writeEndArray

      public void writeEndArray(tools.jackson.core.JsonGenerator gen, int nrOfValues)
      Specified by:
      writeEndArray in interface tools.jackson.core.PrettyPrinter
      Overrides:
      writeEndArray in class tools.jackson.core.util.DefaultPrettyPrinter
    • writeArrayValueSeparator

      public void writeArrayValueSeparator(tools.jackson.core.JsonGenerator gen)
      Specified by:
      writeArrayValueSeparator in interface tools.jackson.core.PrettyPrinter
      Overrides:
      writeArrayValueSeparator in class tools.jackson.core.util.DefaultPrettyPrinter
    • beforeArrayValues

      public void beforeArrayValues(tools.jackson.core.JsonGenerator gen)
      Specified by:
      beforeArrayValues in interface tools.jackson.core.PrettyPrinter
      Overrides:
      beforeArrayValues in class tools.jackson.core.util.DefaultPrettyPrinter
    • beforeObjectEntries

      public void beforeObjectEntries(tools.jackson.core.JsonGenerator gen)
      Specified by:
      beforeObjectEntries in interface tools.jackson.core.PrettyPrinter
      Overrides:
      beforeObjectEntries in class tools.jackson.core.util.DefaultPrettyPrinter
    • setValueColor

      public void setValueColor(String valueColor)
    • setCommaColor

      public void setCommaColor(String commaColor)
    • cleanCommaColor

      public void cleanCommaColor()
    • getSyntaxHighlighter

      public SyntaxHighlighter getSyntaxHighlighter()
    • getArrayIndenter

      public SyntaxHighlighterIndenter getArrayIndenter()
    • getObjectIndenter

      public SyntaxHighlighterIndenter getObjectIndenter()