Class JacksonJson.JacksonJsonGenerator

java.lang.Object
de.oktoflow.platform.support.json.jackson.JacksonJson.JacksonJsonGenerator
All Implemented Interfaces:
de.iip_ecosphere.platform.support.json.JsonGenerator, Closeable, AutoCloseable
Enclosing class:
JacksonJson

private static class JacksonJson.JacksonJsonGenerator extends Object implements de.iip_ecosphere.platform.support.json.JsonGenerator
Wraps the Jacskon Json Generator.
Author:
Holger Eichelberger, SSE
  • Field Details

    • gen

      private com.fasterxml.jackson.core.JsonGenerator gen
  • Constructor Details

    • JacksonJsonGenerator

      private JacksonJsonGenerator(com.fasterxml.jackson.core.JsonGenerator gen)
      Creates a wrapping generator instance.
      Parameters:
      gen - the Jackson instance
  • Method Details

    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException
    • writeNumber

      public void writeNumber(short number) throws IOException
      Specified by:
      writeNumber in interface de.iip_ecosphere.platform.support.json.JsonGenerator
      Throws:
      IOException
    • writeNumber

      public void writeNumber(int number) throws IOException
      Specified by:
      writeNumber in interface de.iip_ecosphere.platform.support.json.JsonGenerator
      Throws:
      IOException
    • writeNumber

      public void writeNumber(long number) throws IOException
      Specified by:
      writeNumber in interface de.iip_ecosphere.platform.support.json.JsonGenerator
      Throws:
      IOException
    • writeNumber

      public void writeNumber(BigInteger number) throws IOException
      Specified by:
      writeNumber in interface de.iip_ecosphere.platform.support.json.JsonGenerator
      Throws:
      IOException
    • writeNumber

      public void writeNumber(double number) throws IOException
      Specified by:
      writeNumber in interface de.iip_ecosphere.platform.support.json.JsonGenerator
      Throws:
      IOException
    • writeNumber

      public void writeNumber(float number) throws IOException
      Specified by:
      writeNumber in interface de.iip_ecosphere.platform.support.json.JsonGenerator
      Throws:
      IOException
    • writeNumber

      public void writeNumber(BigDecimal number) throws IOException
      Specified by:
      writeNumber in interface de.iip_ecosphere.platform.support.json.JsonGenerator
      Throws:
      IOException
    • writeString

      public void writeString(String text) throws IOException
      Specified by:
      writeString in interface de.iip_ecosphere.platform.support.json.JsonGenerator
      Throws:
      IOException
    • writeBoolean

      public void writeBoolean(boolean value) throws IOException
      Specified by:
      writeBoolean in interface de.iip_ecosphere.platform.support.json.JsonGenerator
      Throws:
      IOException
    • writeNull

      public void writeNull() throws IOException
      Specified by:
      writeNull in interface de.iip_ecosphere.platform.support.json.JsonGenerator
      Throws:
      IOException
    • writeArray

      public void writeArray(int[] array, int offset, int length) throws IOException
      Specified by:
      writeArray in interface de.iip_ecosphere.platform.support.json.JsonGenerator
      Throws:
      IOException
    • writeArray

      public void writeArray(long[] array, int offset, int length) throws IOException
      Specified by:
      writeArray in interface de.iip_ecosphere.platform.support.json.JsonGenerator
      Throws:
      IOException
    • writeArray

      public void writeArray(double[] array, int offset, int length) throws IOException
      Specified by:
      writeArray in interface de.iip_ecosphere.platform.support.json.JsonGenerator
      Throws:
      IOException
    • writeArray

      public void writeArray(String[] array, int offset, int length) throws IOException
      Specified by:
      writeArray in interface de.iip_ecosphere.platform.support.json.JsonGenerator
      Throws:
      IOException
    • writeStartArray

      public void writeStartArray() throws IOException
      Specified by:
      writeStartArray in interface de.iip_ecosphere.platform.support.json.JsonGenerator
      Throws:
      IOException
    • writeEndArray

      public void writeEndArray() throws IOException
      Specified by:
      writeEndArray in interface de.iip_ecosphere.platform.support.json.JsonGenerator
      Throws:
      IOException
    • writeStartObject

      public void writeStartObject() throws IOException
      Specified by:
      writeStartObject in interface de.iip_ecosphere.platform.support.json.JsonGenerator
      Throws:
      IOException
    • writeEndObject

      public void writeEndObject() throws IOException
      Specified by:
      writeEndObject in interface de.iip_ecosphere.platform.support.json.JsonGenerator
      Throws:
      IOException
    • writeFieldName

      public void writeFieldName(String name) throws IOException
      Specified by:
      writeFieldName in interface de.iip_ecosphere.platform.support.json.JsonGenerator
      Throws:
      IOException
    • writeObject

      public void writeObject(Object object) throws IOException
      Specified by:
      writeObject in interface de.iip_ecosphere.platform.support.json.JsonGenerator
      Throws:
      IOException