public class SdkJsonGenerator extends Object implements StructuredJsonGenerator
Modifier and Type | Class and Description |
---|---|
static class |
SdkJsonGenerator.JsonGenerationException
Indicates an issue writing JSON content.
|
NO_OP
Constructor and Description |
---|
SdkJsonGenerator(com.fasterxml.jackson.core.JsonFactory factory,
String contentType) |
public SdkJsonGenerator(com.fasterxml.jackson.core.JsonFactory factory, String contentType)
public StructuredJsonGenerator writeStartArray()
writeStartArray
in interface StructuredJsonGenerator
public StructuredJsonGenerator writeEndArray()
writeEndArray
in interface StructuredJsonGenerator
public StructuredJsonGenerator writeNull()
writeNull
in interface StructuredJsonGenerator
public StructuredJsonGenerator writeStartObject()
writeStartObject
in interface StructuredJsonGenerator
public StructuredJsonGenerator writeEndObject()
writeEndObject
in interface StructuredJsonGenerator
public StructuredJsonGenerator writeFieldName(String fieldName)
writeFieldName
in interface StructuredJsonGenerator
public StructuredJsonGenerator writeValue(String val)
writeValue
in interface StructuredJsonGenerator
public StructuredJsonGenerator writeValue(boolean bool)
writeValue
in interface StructuredJsonGenerator
public StructuredJsonGenerator writeValue(long val)
writeValue
in interface StructuredJsonGenerator
public StructuredJsonGenerator writeValue(double val)
writeValue
in interface StructuredJsonGenerator
public StructuredJsonGenerator writeValue(float val)
writeValue
in interface StructuredJsonGenerator
public StructuredJsonGenerator writeValue(short val)
writeValue
in interface StructuredJsonGenerator
public StructuredJsonGenerator writeValue(int val)
writeValue
in interface StructuredJsonGenerator
public StructuredJsonGenerator writeValue(ByteBuffer bytes)
writeValue
in interface StructuredJsonGenerator
public StructuredJsonGenerator writeValue(Date date)
writeValue
in interface StructuredJsonGenerator
public StructuredJsonGenerator writeValue(BigDecimal value)
writeValue
in interface StructuredJsonGenerator
public StructuredJsonGenerator writeValue(BigInteger value)
writeValue
in interface StructuredJsonGenerator
public byte[] getBytes()
getBytes
in interface StructuredJsonGenerator
public String getContentType()
StructuredJsonGenerator
SdkJsonProtocolFactory.getContentType()
.getContentType
in interface StructuredJsonGenerator
protected com.fasterxml.jackson.core.JsonGenerator getGenerator()
Copyright © 2018. All rights reserved.