Class SdkCborGenerator
java.lang.Object
software.amazon.awssdk.protocols.json.SdkJsonGenerator
software.amazon.awssdk.protocols.cbor.internal.SdkCborGenerator
- All Implemented Interfaces:
StructuredJsonGenerator
Thin wrapper around Jackson's JSON generator for CBOR.
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.awssdk.protocols.json.SdkJsonGenerator
SdkJsonGenerator.JsonGenerationException
-
Field Summary
Fields inherited from interface software.amazon.awssdk.protocols.json.StructuredJsonGenerator
NO_OP
-
Method Summary
Modifier and TypeMethodDescriptionwriteValue
(Instant instant) Jackson doesn't have native support for timestamp.Methods inherited from class software.amazon.awssdk.protocols.json.SdkJsonGenerator
getBytes, getContentType, writeEndArray, writeEndObject, writeFieldName, writeNull, writeNumber, writeStartArray, writeStartObject, writeValue, writeValue, writeValue, writeValue, writeValue, writeValue, writeValue, writeValue, writeValue, writeValue, writeValue
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.awssdk.protocols.json.StructuredJsonGenerator
writeStartArray
-
Method Details
-
writeValue
Jackson doesn't have native support for timestamp. As per the RFC 7049 (https://tools.ietf.org/html/rfc7049#section-2.4.1) we will need to write a tag and write the epoch.- Specified by:
writeValue
in interfaceStructuredJsonGenerator
- Overrides:
writeValue
in classSdkJsonGenerator
-