| Modifier and Type | Field and Description |
|---|---|
protected com.fasterxml.jackson.core.JsonGenerator |
generator |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Finalize the current structure.
|
static Encoder |
create(com.fasterxml.jackson.core.JsonGenerator generator) |
java.lang.String |
currentPath()
Return an analysis of the current path.
|
Encoder |
encodeArray(io.micronaut.core.type.Argument<?> type)
Encodes an array.
|
void |
encodeBigDecimal(java.math.BigDecimal value)
Encode a BigDecimal.
|
void |
encodeBigInteger(java.math.BigInteger value)
Encode a BigInteger.
|
void |
encodeBoolean(boolean value)
Encode a boolean.
|
void |
encodeByte(byte value)
Encode a byte.
|
void |
encodeChar(char value)
Encode a char.
|
void |
encodeDouble(double value)
Encode a double.
|
void |
encodeFloat(float value)
Encode a float.
|
void |
encodeInt(int value)
Encode an int.
|
void |
encodeKey(java.lang.String key)
Encode a key.
|
void |
encodeLong(long value)
Encode a long.
|
void |
encodeNull()
Encode
null. |
Encoder |
encodeObject(io.micronaut.core.type.Argument<?> type)
Encodes an object.
|
void |
encodeShort(short value)
Encode a short.
|
void |
encodeString(java.lang.String value)
Encode a string.
|
void |
finishStructure()
Finalize a previously created structure, like an array or object.
|
protected abstract void |
finishStructureToken() |
public static Encoder create(@NonNull com.fasterxml.jackson.core.JsonGenerator generator)
public final Encoder encodeArray(io.micronaut.core.type.Argument<?> type) throws java.io.IOException
EncoderencodeArray in interface Encodertype - The array type, never nullnulljava.io.IOException - if an error occurspublic final Encoder encodeObject(io.micronaut.core.type.Argument<?> type) throws java.io.IOException
EncoderencodeObject in interface Encodertype - The object type, never nullnulljava.io.IOException - if an error occurspublic final void finishStructure()
throws java.io.IOException
EncoderfinishStructure in interface Encoderjava.io.IOException - If an error occurspublic final void close()
throws java.io.IOException
EncoderEncoder.finishStructure().protected abstract void finishStructureToken()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String currentPath()
EncodercurrentPath in interface Encoderpublic final void encodeKey(@NonNull
java.lang.String key)
throws java.io.IOException
Encoderpublic final void encodeString(@NonNull
java.lang.String value)
throws java.io.IOException
EncoderencodeString in interface Encodervalue - The string, never nulljava.io.IOException - If an error occurspublic final void encodeBoolean(boolean value)
throws java.io.IOException
EncoderencodeBoolean in interface Encodervalue - The booleanjava.io.IOException - If an error occurspublic final void encodeByte(byte value)
throws java.io.IOException
EncoderencodeByte in interface Encodervalue - The bytejava.io.IOException - If an error occurspublic final void encodeShort(short value)
throws java.io.IOException
EncoderencodeShort in interface Encodervalue - The shortjava.io.IOException - If an error occurspublic final void encodeChar(char value)
throws java.io.IOException
EncoderencodeChar in interface Encodervalue - The charjava.io.IOException - If an error occurspublic final void encodeInt(int value)
throws java.io.IOException
Encoderpublic final void encodeLong(long value)
throws java.io.IOException
EncoderencodeLong in interface Encodervalue - The longjava.io.IOException - If an error occurspublic final void encodeFloat(float value)
throws java.io.IOException
EncoderencodeFloat in interface Encodervalue - The floatjava.io.IOException - If an error occurspublic final void encodeDouble(double value)
throws java.io.IOException
EncoderencodeDouble in interface Encodervalue - The doublejava.io.IOException - If an error occurspublic final void encodeBigInteger(@NonNull
java.math.BigInteger value)
throws java.io.IOException
EncoderencodeBigInteger in interface Encodervalue - The BigInteger, never nulljava.io.IOException - If an error occurspublic final void encodeBigDecimal(@NonNull
java.math.BigDecimal value)
throws java.io.IOException
EncoderencodeBigDecimal in interface Encodervalue - The BigDecimal, never nulljava.io.IOException - If an error occurspublic final void encodeNull()
throws java.io.IOException
Encodernull.encodeNull in interface Encoderjava.io.IOException - If an error occurs