Package org.entur.jackson.jsh
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSyntaxHighlighterIndenter(SyntaxHighlighter highligheter, com.fasterxml.jackson.core.util.DefaultPrettyPrinter.Indenter delegate) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanisInline()voidsetValueColor(String color) Set the color which is set after the indentation.voidwriteIndentation(com.fasterxml.jackson.core.JsonGenerator jg, int level)
-
Field Details
-
highligheter
-
valueColor
-
-
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:
writeIndentationin interfacecom.fasterxml.jackson.core.util.DefaultPrettyPrinter.Indenter- Throws:
IOException
-
setValueColor
Set the color which is set after the indentation.- Parameters:
color- color to set
-
clearValueColor
public void clearValueColor() -
isInline
public boolean isInline()- Specified by:
isInlinein interfacecom.fasterxml.jackson.core.util.DefaultPrettyPrinter.Indenter
-