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 Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateJacksonJsonGenerator(com.fasterxml.jackson.core.JsonGenerator gen) Creates a wrapping generator instance. -
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) voidwriteArray(String[] array, int offset, int length) voidwriteBoolean(boolean value) voidvoidvoidwriteFieldName(String name) voidvoidwriteNumber(double number) voidwriteNumber(float number) voidwriteNumber(int number) voidwriteNumber(long number) voidwriteNumber(short number) voidwriteNumber(BigDecimal number) voidwriteNumber(BigInteger number) voidwriteObject(Object object) voidvoidvoidwriteString(String text)
-
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
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
writeNumber
- Specified by:
writeNumberin interfacede.iip_ecosphere.platform.support.json.JsonGenerator- Throws:
IOException
-
writeNumber
- Specified by:
writeNumberin interfacede.iip_ecosphere.platform.support.json.JsonGenerator- Throws:
IOException
-
writeNumber
- Specified by:
writeNumberin interfacede.iip_ecosphere.platform.support.json.JsonGenerator- Throws:
IOException
-
writeNumber
- Specified by:
writeNumberin interfacede.iip_ecosphere.platform.support.json.JsonGenerator- Throws:
IOException
-
writeNumber
- Specified by:
writeNumberin interfacede.iip_ecosphere.platform.support.json.JsonGenerator- Throws:
IOException
-
writeNumber
- Specified by:
writeNumberin interfacede.iip_ecosphere.platform.support.json.JsonGenerator- Throws:
IOException
-
writeNumber
- Specified by:
writeNumberin interfacede.iip_ecosphere.platform.support.json.JsonGenerator- Throws:
IOException
-
writeString
- Specified by:
writeStringin interfacede.iip_ecosphere.platform.support.json.JsonGenerator- Throws:
IOException
-
writeBoolean
- Specified by:
writeBooleanin interfacede.iip_ecosphere.platform.support.json.JsonGenerator- Throws:
IOException
-
writeNull
- Specified by:
writeNullin interfacede.iip_ecosphere.platform.support.json.JsonGenerator- Throws:
IOException
-
writeArray
- Specified by:
writeArrayin interfacede.iip_ecosphere.platform.support.json.JsonGenerator- Throws:
IOException
-
writeArray
- Specified by:
writeArrayin interfacede.iip_ecosphere.platform.support.json.JsonGenerator- Throws:
IOException
-
writeArray
- Specified by:
writeArrayin interfacede.iip_ecosphere.platform.support.json.JsonGenerator- Throws:
IOException
-
writeArray
- Specified by:
writeArrayin interfacede.iip_ecosphere.platform.support.json.JsonGenerator- Throws:
IOException
-
writeStartArray
- Specified by:
writeStartArrayin interfacede.iip_ecosphere.platform.support.json.JsonGenerator- Throws:
IOException
-
writeEndArray
- Specified by:
writeEndArrayin interfacede.iip_ecosphere.platform.support.json.JsonGenerator- Throws:
IOException
-
writeStartObject
- Specified by:
writeStartObjectin interfacede.iip_ecosphere.platform.support.json.JsonGenerator- Throws:
IOException
-
writeEndObject
- Specified by:
writeEndObjectin interfacede.iip_ecosphere.platform.support.json.JsonGenerator- Throws:
IOException
-
writeFieldName
- Specified by:
writeFieldNamein interfacede.iip_ecosphere.platform.support.json.JsonGenerator- Throws:
IOException
-
writeObject
- Specified by:
writeObjectin interfacede.iip_ecosphere.platform.support.json.JsonGenerator- Throws:
IOException
-