Class SyntaxHighlighterIndenter

java.lang.Object
org.entur.jackson.jsh.SyntaxHighlighterIndenter
All Implemented Interfaces:
com.fasterxml.jackson.core.util.DefaultPrettyPrinter.Indenter

public class SyntaxHighlighterIndenter extends Object implements com.fasterxml.jackson.core.util.DefaultPrettyPrinter.Indenter
  • Field Details

  • Constructor Details

    • SyntaxHighlighterIndenter

      public SyntaxHighlighterIndenter(SyntaxHighlighter highligheter, com.fasterxml.jackson.core.util.DefaultPrettyPrinter.Indenter delegate)
  • Method Details

    • writeIndentation

      public void writeIndentation(com.fasterxml.jackson.core.JsonGenerator jg, int level) throws IOException
      Specified by:
      writeIndentation in interface com.fasterxml.jackson.core.util.DefaultPrettyPrinter.Indenter
      Throws:
      IOException
    • setValueColor

      public void setValueColor(String color)
      Set the color which is set after the indentation.
      Parameters:
      color - color to set
    • clearValueColor

      public void clearValueColor()
    • isInline

      public boolean isInline()
      Specified by:
      isInline in interface com.fasterxml.jackson.core.util.DefaultPrettyPrinter.Indenter