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

    Fields

    Fields inherited from class com.fasterxml.jackson.core.util.JsonGeneratorDelegate

    delegate, delegateCopyMethods

    Fields inherited from class com.fasterxml.jackson.core.JsonGenerator

    _cfgPrettyPrinter, DEFAULT_BINARY_WRITE_CAPABILITIES, DEFAULT_TEXTUAL_WRITE_CAPABILITIES, DEFAULT_WRITE_CAPABILITIES
  • Constructor Summary

    Constructors
    Constructor
    Description
    SyntaxHighlightingJsonGenerator(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 Type
    Method
    Description
    void
     
    void
    writeArray(double[] array, int offset, int length)
     
    void
    writeArray(int[] array, int offset, int length)
     
    void
    writeArray(long[] array, int offset, int length)
     
    void
    writeBinary(com.fasterxml.jackson.core.Base64Variant b64variant, byte[] data, int offset, int len)
     
    int
    writeBinary(com.fasterxml.jackson.core.Base64Variant b64variant, InputStream data, int dataLength)
     
    void
    writeBoolean(boolean value)
     
    void
    writeFieldId(long id)
     
    void
    writeFieldName(com.fasterxml.jackson.core.SerializableString name)
     
    void
     
    void
     
    void
    writeNumber(double v)
     
    void
    writeNumber(float v)
     
    void
    writeNumber(int v)
     
    void
    writeNumber(long v)
     
    void
    writeNumber(short v)
     
    void
    writeNumber(String encodedValue)
     
    void
     
    void
     
    void
    writeString(char[] text, int offset, int len)
     
    void
    writeString(com.fasterxml.jackson.core.SerializableString text)
     
    void
    writeString(Reader reader, int len)
     
    void
     
    void
    writeUTF8String(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, writeTypeId

    Methods 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • 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

      public void writeFieldName(String value) throws IOException
      Overrides:
      writeFieldName in class com.fasterxml.jackson.core.util.JsonGeneratorDelegate
      Throws:
      IOException
    • writeFieldName

      public void writeFieldName(com.fasterxml.jackson.core.SerializableString name) throws IOException
      Overrides:
      writeFieldName in class com.fasterxml.jackson.core.util.JsonGeneratorDelegate
      Throws:
      IOException
    • writeFieldId

      public void writeFieldId(long id) throws IOException
      Overrides:
      writeFieldId in class com.fasterxml.jackson.core.util.JsonGeneratorDelegate
      Throws:
      IOException
    • writeArray

      public void writeArray(int[] array, int offset, int length) throws IOException
      Overrides:
      writeArray in class com.fasterxml.jackson.core.util.JsonGeneratorDelegate
      Throws:
      IOException
    • writeArray

      public void writeArray(long[] array, int offset, int length) throws IOException
      Overrides:
      writeArray in class com.fasterxml.jackson.core.util.JsonGeneratorDelegate
      Throws:
      IOException
    • writeArray

      public void writeArray(double[] array, int offset, int length) throws IOException
      Overrides:
      writeArray in class com.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:
      writeBinary in class com.fasterxml.jackson.core.util.JsonGeneratorDelegate
      Throws:
      IOException
    • writeBinary

      public int writeBinary(com.fasterxml.jackson.core.Base64Variant b64variant, InputStream data, int dataLength) throws IOException
      Overrides:
      writeBinary in class com.fasterxml.jackson.core.util.JsonGeneratorDelegate
      Throws:
      IOException
    • writeNumber

      public void writeNumber(short v) throws IOException
      Overrides:
      writeNumber in class com.fasterxml.jackson.core.util.JsonGeneratorDelegate
      Throws:
      IOException
    • writeNumber

      public void writeNumber(int v) throws IOException
      Overrides:
      writeNumber in class com.fasterxml.jackson.core.util.JsonGeneratorDelegate
      Throws:
      IOException
    • writeNumber

      public void writeNumber(long v) throws IOException
      Overrides:
      writeNumber in class com.fasterxml.jackson.core.util.JsonGeneratorDelegate
      Throws:
      IOException
    • writeNumber

      public void writeNumber(BigInteger v) throws IOException
      Overrides:
      writeNumber in class com.fasterxml.jackson.core.util.JsonGeneratorDelegate
      Throws:
      IOException
    • writeNumber

      public void writeNumber(double v) throws IOException
      Overrides:
      writeNumber in class com.fasterxml.jackson.core.util.JsonGeneratorDelegate
      Throws:
      IOException
    • writeNumber

      public void writeNumber(float v) throws IOException
      Overrides:
      writeNumber in class com.fasterxml.jackson.core.util.JsonGeneratorDelegate
      Throws:
      IOException
    • writeNumber

      public void writeNumber(BigDecimal v) throws IOException
      Overrides:
      writeNumber in class com.fasterxml.jackson.core.util.JsonGeneratorDelegate
      Throws:
      IOException
    • writeNumber

      public void writeNumber(String encodedValue) throws IOException, UnsupportedOperationException
      Overrides:
      writeNumber in class com.fasterxml.jackson.core.util.JsonGeneratorDelegate
      Throws:
      IOException
      UnsupportedOperationException
    • writeBoolean

      public void writeBoolean(boolean value) throws IOException
      Overrides:
      writeBoolean in class com.fasterxml.jackson.core.util.JsonGeneratorDelegate
      Throws:
      IOException
    • writeNull

      public void writeNull() throws IOException
      Overrides:
      writeNull in class com.fasterxml.jackson.core.util.JsonGeneratorDelegate
      Throws:
      IOException
    • writeString

      public void writeString(String value) throws IOException
      Overrides:
      writeString in class com.fasterxml.jackson.core.util.JsonGeneratorDelegate
      Throws:
      IOException
    • writeString

      public void writeString(Reader reader, int len) throws IOException
      Overrides:
      writeString in class com.fasterxml.jackson.core.util.JsonGeneratorDelegate
      Throws:
      IOException
    • writeString

      public void writeString(char[] text, int offset, int len) throws IOException
      Overrides:
      writeString in class com.fasterxml.jackson.core.util.JsonGeneratorDelegate
      Throws:
      IOException
    • writeString

      public void writeString(com.fasterxml.jackson.core.SerializableString text) throws IOException
      Overrides:
      writeString in class com.fasterxml.jackson.core.util.JsonGeneratorDelegate
      Throws:
      IOException
    • writeUTF8String

      public void writeUTF8String(byte[] text, int offset, int length) throws IOException
      Overrides:
      writeUTF8String in class com.fasterxml.jackson.core.util.JsonGeneratorDelegate
      Throws:
      IOException
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Overrides:
      close in class com.fasterxml.jackson.core.util.JsonGeneratorDelegate
      Throws:
      IOException