Class SyntaxHighlightingPrettyPrinter

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

public class SyntaxHighlightingPrettyPrinter extends com.fasterxml.jackson.core.util.DefaultPrettyPrinter
Pretty-printer which technically can produce output with or without indent / line-breaks.
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • writeRootValueSeparator

      public void writeRootValueSeparator(com.fasterxml.jackson.core.JsonGenerator gen) throws IOException
      Specified by:
      writeRootValueSeparator in interface com.fasterxml.jackson.core.PrettyPrinter
      Overrides:
      writeRootValueSeparator in class com.fasterxml.jackson.core.util.DefaultPrettyPrinter
      Throws:
      IOException
    • writeStartObject

      public void writeStartObject(com.fasterxml.jackson.core.JsonGenerator gen) throws IOException
      Specified by:
      writeStartObject in interface com.fasterxml.jackson.core.PrettyPrinter
      Overrides:
      writeStartObject in class com.fasterxml.jackson.core.util.DefaultPrettyPrinter
      Throws:
      IOException
    • writeEndObject

      public void writeEndObject(com.fasterxml.jackson.core.JsonGenerator gen, 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
    • writeObjectEntrySeparator

      public void writeObjectEntrySeparator(com.fasterxml.jackson.core.JsonGenerator gen) throws IOException
      Specified by:
      writeObjectEntrySeparator in interface com.fasterxml.jackson.core.PrettyPrinter
      Overrides:
      writeObjectEntrySeparator in class com.fasterxml.jackson.core.util.DefaultPrettyPrinter
      Throws:
      IOException
    • writeObjectFieldValueSeparator

      public void writeObjectFieldValueSeparator(com.fasterxml.jackson.core.JsonGenerator gen) throws IOException
      Specified by:
      writeObjectFieldValueSeparator in interface com.fasterxml.jackson.core.PrettyPrinter
      Overrides:
      writeObjectFieldValueSeparator in class com.fasterxml.jackson.core.util.DefaultPrettyPrinter
      Throws:
      IOException
    • writeStartArray

      public void writeStartArray(com.fasterxml.jackson.core.JsonGenerator gen) throws IOException
      Specified by:
      writeStartArray in interface com.fasterxml.jackson.core.PrettyPrinter
      Overrides:
      writeStartArray in class com.fasterxml.jackson.core.util.DefaultPrettyPrinter
      Throws:
      IOException
    • writeEndArray

      public void writeEndArray(com.fasterxml.jackson.core.JsonGenerator gen, 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
    • writeArrayValueSeparator

      public void writeArrayValueSeparator(com.fasterxml.jackson.core.JsonGenerator gen) throws IOException
      Specified by:
      writeArrayValueSeparator in interface com.fasterxml.jackson.core.PrettyPrinter
      Overrides:
      writeArrayValueSeparator in class com.fasterxml.jackson.core.util.DefaultPrettyPrinter
      Throws:
      IOException
    • beforeArrayValues

      public void beforeArrayValues(com.fasterxml.jackson.core.JsonGenerator gen) throws IOException
      Specified by:
      beforeArrayValues in interface com.fasterxml.jackson.core.PrettyPrinter
      Overrides:
      beforeArrayValues in class com.fasterxml.jackson.core.util.DefaultPrettyPrinter
      Throws:
      IOException
    • beforeObjectEntries

      public void beforeObjectEntries(com.fasterxml.jackson.core.JsonGenerator gen) throws IOException
      Specified by:
      beforeObjectEntries in interface com.fasterxml.jackson.core.PrettyPrinter
      Overrides:
      beforeObjectEntries in class com.fasterxml.jackson.core.util.DefaultPrettyPrinter
      Throws:
      IOException
    • setValueColor

      public void setValueColor(String valueColor)
    • setCommaColor

      public void setCommaColor(String commaColor)
    • cleanCommaColor

      public void cleanCommaColor()