Class SdkCborGenerator
- java.lang.Object
-
- software.amazon.awssdk.protocols.json.SdkJsonGenerator
-
- software.amazon.awssdk.protocols.cbor.internal.SdkCborGenerator
-
- All Implemented Interfaces:
StructuredJsonGenerator
public final class SdkCborGenerator extends SdkJsonGenerator
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StructuredJsonGeneratorwriteValue(Instant instant)Jackson doesn't have native support for timestamp.-
Methods inherited from class software.amazon.awssdk.protocols.json.SdkJsonGenerator
getBytes, getContentType, getGenerator, writeEndArray, writeEndObject, writeFieldName, writeNull, writeNumber, writeStartArray, writeStartObject, writeValue, writeValue, writeValue, writeValue, writeValue, writeValue, writeValue, writeValue, writeValue, writeValue
-
-
-
-
Method Detail
-
writeValue
public StructuredJsonGenerator writeValue(Instant instant)
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:
writeValuein interfaceStructuredJsonGenerator- Overrides:
writeValuein classSdkJsonGenerator
-
-