Package io.quarkiverse.loggingjson
Interface JsonGenerator
-
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
JacksonJsonGenerator,JsonbJsonGenerator
public interface JsonGenerator extends Closeable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidflush()voidwriteArrayFieldStart(String fieldName)voidwriteEndArray()voidwriteEndObject()voidwriteFieldName(String name)voidwriteNumberField(String fieldName, double value)voidwriteNumberField(String fieldName, float value)voidwriteNumberField(String fieldName, int value)voidwriteNumberField(String fieldName, long value)voidwriteNumberField(String fieldName, short value)voidwriteNumberField(String fieldName, BigDecimal value)voidwriteNumberField(String fieldName, BigInteger value)voidwriteObject(Object pojo)voidwriteObjectField(String fieldName, Object pojo)voidwriteObjectFieldStart(String fieldName)voidwriteStartObject()voidwriteString(String text)voidwriteStringField(String fieldName, String value)
-
-
-
Method Detail
-
writeStartObject
void writeStartObject() throws IOException- Throws:
IOException
-
writeEndObject
void writeEndObject() throws IOException- Throws:
IOException
-
flush
void flush() throws IOException- Throws:
IOException
-
writeFieldName
void writeFieldName(String name) throws IOException
- Throws:
IOException
-
writeObject
void writeObject(Object pojo) throws IOException
- Throws:
IOException
-
writeObjectFieldStart
void writeObjectFieldStart(String fieldName) throws IOException
- Throws:
IOException
-
writeObjectField
void writeObjectField(String fieldName, Object pojo) throws IOException
- Throws:
IOException
-
writeArrayFieldStart
void writeArrayFieldStart(String fieldName) throws IOException
- Throws:
IOException
-
writeEndArray
void writeEndArray() throws IOException- Throws:
IOException
-
writeString
void writeString(String text) throws IOException
- Throws:
IOException
-
writeStringField
void writeStringField(String fieldName, String value) throws IOException
- Throws:
IOException
-
writeNumberField
void writeNumberField(String fieldName, short value) throws IOException
- Throws:
IOException
-
writeNumberField
void writeNumberField(String fieldName, int value) throws IOException
- Throws:
IOException
-
writeNumberField
void writeNumberField(String fieldName, long value) throws IOException
- Throws:
IOException
-
writeNumberField
void writeNumberField(String fieldName, BigInteger value) throws IOException
- Throws:
IOException
-
writeNumberField
void writeNumberField(String fieldName, float value) throws IOException
- Throws:
IOException
-
writeNumberField
void writeNumberField(String fieldName, double value) throws IOException
- Throws:
IOException
-
writeNumberField
void writeNumberField(String fieldName, BigDecimal value) throws IOException
- Throws:
IOException
-
-