public class CborXContentGenerator extends JsonXContentGenerator
generator| Constructor and Description |
|---|
CborXContentGenerator(BaseJsonGenerator generator) |
| Modifier and Type | Method and Description |
|---|---|
XContentType |
contentType() |
void |
usePrintLineFeedAtEnd() |
protected void |
writeObjectRaw(String fieldName,
BytesReference content,
OutputStream bos) |
void |
writeRawField(String fieldName,
byte[] content,
int offset,
int length,
OutputStream bos) |
void |
writeRawField(String fieldName,
byte[] content,
OutputStream bos) |
void |
writeRawField(String fieldName,
InputStream content,
OutputStream bos) |
close, copyCurrentStructure, flush, usePrettyPrint, writeArrayFieldStart, writeArrayFieldStart, writeBinary, writeBinary, writeBinaryField, writeBinaryField, writeBoolean, writeBooleanField, writeBooleanField, writeEndArray, writeEndObject, writeFieldName, writeFieldName, writeNull, writeNullField, writeNullField, writeNumber, writeNumber, writeNumber, writeNumber, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeObjectFieldStart, writeObjectFieldStart, writeRawField, writeStartArray, writeStartObject, writeString, writeString, writeStringField, writeStringField, writeUTF8Stringpublic CborXContentGenerator(BaseJsonGenerator generator)
public XContentType contentType()
contentType in interface XContentGeneratorcontentType in class JsonXContentGeneratorpublic void usePrintLineFeedAtEnd()
usePrintLineFeedAtEnd in interface XContentGeneratorusePrintLineFeedAtEnd in class JsonXContentGeneratorpublic void writeRawField(String fieldName, InputStream content, OutputStream bos) throws IOException
writeRawField in interface XContentGeneratorwriteRawField in class JsonXContentGeneratorIOExceptionpublic void writeRawField(String fieldName, byte[] content, OutputStream bos) throws IOException
writeRawField in interface XContentGeneratorwriteRawField in class JsonXContentGeneratorIOExceptionprotected void writeObjectRaw(String fieldName, BytesReference content, OutputStream bos) throws IOException
writeObjectRaw in class JsonXContentGeneratorIOExceptionpublic void writeRawField(String fieldName, byte[] content, int offset, int length, OutputStream bos) throws IOException
writeRawField in interface XContentGeneratorwriteRawField in class JsonXContentGeneratorIOExceptionCopyright © 2009–2016. All rights reserved.