public class SmileXContentGenerator extends JsonXContentGenerator
generator
Constructor and Description |
---|
SmileXContentGenerator(com.fasterxml.jackson.core.JsonGenerator 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, writeUTF8String
public SmileXContentGenerator(com.fasterxml.jackson.core.JsonGenerator generator)
public XContentType contentType()
contentType
in interface XContentGenerator
contentType
in class JsonXContentGenerator
public void usePrintLineFeedAtEnd()
usePrintLineFeedAtEnd
in interface XContentGenerator
usePrintLineFeedAtEnd
in class JsonXContentGenerator
public void writeRawField(String fieldName, InputStream content, OutputStream bos) throws IOException
writeRawField
in interface XContentGenerator
writeRawField
in class JsonXContentGenerator
IOException
public void writeRawField(String fieldName, byte[] content, OutputStream bos) throws IOException
writeRawField
in interface XContentGenerator
writeRawField
in class JsonXContentGenerator
IOException
protected void writeObjectRaw(String fieldName, BytesReference content, OutputStream bos) throws IOException
writeObjectRaw
in class JsonXContentGenerator
IOException
public void writeRawField(String fieldName, byte[] content, int offset, int length, OutputStream bos) throws IOException
writeRawField
in interface XContentGenerator
writeRawField
in class JsonXContentGenerator
IOException
Copyright © 2009–2015. All rights reserved.