Package org.entur.jackson.jsh
Class SyntaxHighlightingJsonGenerator
java.lang.Object
com.fasterxml.jackson.core.JsonGenerator
com.fasterxml.jackson.core.util.JsonGeneratorDelegate
org.entur.jackson.jsh.SyntaxHighlightingJsonGenerator
- All Implemented Interfaces:
com.fasterxml.jackson.core.Versioned,Closeable,Flushable,AutoCloseable
public class SyntaxHighlightingJsonGenerator
extends com.fasterxml.jackson.core.util.JsonGeneratorDelegate
Syntax highlighting JsonGenerator wrapper.
Always uses the same highlighting colors.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.core.JsonGenerator
com.fasterxml.jackson.core.JsonGenerator.Feature -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SyntaxHighlighterIndenterprotected SyntaxHighlighterIndenterprotected SyntaxHighlightingPrettyPrinterprotected SyntaxHighlighterFields inherited from class com.fasterxml.jackson.core.util.JsonGeneratorDelegate
delegate, delegateCopyMethodsFields inherited from class com.fasterxml.jackson.core.JsonGenerator
_cfgPrettyPrinter, DEFAULT_BINARY_WRITE_CAPABILITIES, DEFAULT_TEXTUAL_WRITE_CAPABILITIES, DEFAULT_WRITE_CAPABILITIES -
Constructor Summary
ConstructorsConstructorDescriptionSyntaxHighlightingJsonGenerator(com.fasterxml.jackson.core.JsonGenerator d) SyntaxHighlightingJsonGenerator(com.fasterxml.jackson.core.JsonGenerator d, boolean prettyPrint) SyntaxHighlightingJsonGenerator(com.fasterxml.jackson.core.JsonGenerator d, SyntaxHighlighter syntaxHighlighter, boolean prettyPrint) SyntaxHighlightingJsonGenerator(com.fasterxml.jackson.core.JsonGenerator d, SyntaxHighlighter syntaxHighlighter, JsonStreamContextListener listener, boolean prettyPrint) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidwriteArray(double[] array, int offset, int length) voidwriteArray(int[] array, int offset, int length) voidwriteArray(long[] array, int offset, int length) voidwriteBinary(com.fasterxml.jackson.core.Base64Variant b64variant, byte[] data, int offset, int len) intwriteBinary(com.fasterxml.jackson.core.Base64Variant b64variant, InputStream data, int dataLength) voidwriteBoolean(boolean value) voidwriteFieldId(long id) voidwriteFieldName(com.fasterxml.jackson.core.SerializableString name) voidwriteFieldName(String value) voidvoidwriteNumber(double v) voidwriteNumber(float v) voidwriteNumber(int v) voidwriteNumber(long v) voidwriteNumber(short v) voidwriteNumber(String encodedValue) voidvoidvoidwriteString(char[] text, int offset, int len) voidwriteString(com.fasterxml.jackson.core.SerializableString text) voidwriteString(Reader reader, int len) voidwriteString(String value) voidwriteUTF8String(byte[] text, int offset, int length) Methods inherited from class com.fasterxml.jackson.core.util.JsonGeneratorDelegate
assignCurrentValue, canOmitFields, canUseSchema, canWriteBinaryNatively, canWriteFormattedNumbers, canWriteObjectId, canWriteTypeId, copyCurrentEvent, copyCurrentStructure, currentValue, delegate, disable, enable, flush, getCharacterEscapes, getCodec, getCurrentValue, getDelegate, getFeatureMask, getHighestEscapedChar, getOutputBuffered, getOutputContext, getOutputTarget, getPrettyPrinter, getSchema, getWriteCapabilities, isClosed, isEnabled, overrideFormatFeatures, overrideStdFeatures, setCharacterEscapes, setCodec, setCurrentValue, setFeatureMask, setHighestNonEscapedChar, setPrettyPrinter, setRootValueSeparator, setSchema, streamWriteConstraints, useDefaultPrettyPrinter, version, writeArray, writeEmbeddedObject, writeEndArray, writeEndObject, writeNumber, writeObject, writeObjectId, writeObjectRef, writeOmittedField, writePOJO, writeRaw, writeRaw, writeRaw, writeRaw, writeRaw, writeRawUTF8String, writeRawValue, writeRawValue, writeRawValue, writeStartArray, writeStartArray, writeStartArray, writeStartArray, writeStartObject, writeStartObject, writeStartObject, writeTree, writeTypeIdMethods inherited from class com.fasterxml.jackson.core.JsonGenerator
_constructWriteException, _constructWriteException, _constructWriteException, _constructWriteException, _copyCurrentContents, _copyCurrentFloatValue, _copyCurrentFloatValueExact, _copyCurrentIntValue, _copyCurrentStringValue, _reportError, _reportUnsupportedOperation, _reportUnsupportedOperation, _throwInternal, _verifyOffsets, _writeSimpleObject, configure, copyCurrentEventExact, getFormatFeatures, isEnabled, writeArrayFieldStart, writeBinary, writeBinary, writeBinary, writeBinaryField, writeBooleanField, writeNullField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeObjectField, writeObjectFieldStart, writePOJOField, writeRawValue, writeStringField, writeTypePrefix, writeTypeSuffix
-
Field Details
-
prettyPrinter
-
objectIndenter
-
arrayIndenter
-
syntaxHighlighter
-
-
Constructor Details
-
SyntaxHighlightingJsonGenerator
public SyntaxHighlightingJsonGenerator(com.fasterxml.jackson.core.JsonGenerator d) -
SyntaxHighlightingJsonGenerator
public SyntaxHighlightingJsonGenerator(com.fasterxml.jackson.core.JsonGenerator d, boolean prettyPrint) -
SyntaxHighlightingJsonGenerator
public SyntaxHighlightingJsonGenerator(com.fasterxml.jackson.core.JsonGenerator d, SyntaxHighlighter syntaxHighlighter, boolean prettyPrint) -
SyntaxHighlightingJsonGenerator
public SyntaxHighlightingJsonGenerator(com.fasterxml.jackson.core.JsonGenerator d, SyntaxHighlighter syntaxHighlighter, JsonStreamContextListener listener, boolean prettyPrint)
-
-
Method Details
-
writeFieldName
- Overrides:
writeFieldNamein classcom.fasterxml.jackson.core.util.JsonGeneratorDelegate- Throws:
IOException
-
writeFieldName
- Overrides:
writeFieldNamein classcom.fasterxml.jackson.core.util.JsonGeneratorDelegate- Throws:
IOException
-
writeFieldId
- Overrides:
writeFieldIdin classcom.fasterxml.jackson.core.util.JsonGeneratorDelegate- Throws:
IOException
-
writeArray
- Overrides:
writeArrayin classcom.fasterxml.jackson.core.util.JsonGeneratorDelegate- Throws:
IOException
-
writeArray
- Overrides:
writeArrayin classcom.fasterxml.jackson.core.util.JsonGeneratorDelegate- Throws:
IOException
-
writeArray
- Overrides:
writeArrayin classcom.fasterxml.jackson.core.util.JsonGeneratorDelegate- Throws:
IOException
-
writeBinary
public void writeBinary(com.fasterxml.jackson.core.Base64Variant b64variant, byte[] data, int offset, int len) throws IOException - Overrides:
writeBinaryin classcom.fasterxml.jackson.core.util.JsonGeneratorDelegate- Throws:
IOException
-
writeBinary
public int writeBinary(com.fasterxml.jackson.core.Base64Variant b64variant, InputStream data, int dataLength) throws IOException - Overrides:
writeBinaryin classcom.fasterxml.jackson.core.util.JsonGeneratorDelegate- Throws:
IOException
-
writeNumber
- Overrides:
writeNumberin classcom.fasterxml.jackson.core.util.JsonGeneratorDelegate- Throws:
IOException
-
writeNumber
- Overrides:
writeNumberin classcom.fasterxml.jackson.core.util.JsonGeneratorDelegate- Throws:
IOException
-
writeNumber
- Overrides:
writeNumberin classcom.fasterxml.jackson.core.util.JsonGeneratorDelegate- Throws:
IOException
-
writeNumber
- Overrides:
writeNumberin classcom.fasterxml.jackson.core.util.JsonGeneratorDelegate- Throws:
IOException
-
writeNumber
- Overrides:
writeNumberin classcom.fasterxml.jackson.core.util.JsonGeneratorDelegate- Throws:
IOException
-
writeNumber
- Overrides:
writeNumberin classcom.fasterxml.jackson.core.util.JsonGeneratorDelegate- Throws:
IOException
-
writeNumber
- Overrides:
writeNumberin classcom.fasterxml.jackson.core.util.JsonGeneratorDelegate- Throws:
IOException
-
writeNumber
- Overrides:
writeNumberin classcom.fasterxml.jackson.core.util.JsonGeneratorDelegate- Throws:
IOExceptionUnsupportedOperationException
-
writeBoolean
- Overrides:
writeBooleanin classcom.fasterxml.jackson.core.util.JsonGeneratorDelegate- Throws:
IOException
-
writeNull
- Overrides:
writeNullin classcom.fasterxml.jackson.core.util.JsonGeneratorDelegate- Throws:
IOException
-
writeString
- Overrides:
writeStringin classcom.fasterxml.jackson.core.util.JsonGeneratorDelegate- Throws:
IOException
-
writeString
- Overrides:
writeStringin classcom.fasterxml.jackson.core.util.JsonGeneratorDelegate- Throws:
IOException
-
writeString
- Overrides:
writeStringin classcom.fasterxml.jackson.core.util.JsonGeneratorDelegate- Throws:
IOException
-
writeString
- Overrides:
writeStringin classcom.fasterxml.jackson.core.util.JsonGeneratorDelegate- Throws:
IOException
-
writeUTF8String
- Overrides:
writeUTF8Stringin classcom.fasterxml.jackson.core.util.JsonGeneratorDelegate- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classcom.fasterxml.jackson.core.util.JsonGeneratorDelegate- Throws:
IOException
-