public interface XContentGenerator extends Closeable
Modifier and Type | Method and Description |
---|---|
XContentType |
contentType() |
void |
copyCurrentStructure(XContentParser parser) |
void |
flush() |
void |
usePrettyPrint() |
void |
usePrintLineFeedAtEnd() |
void |
writeArrayFieldStart(String fieldName) |
void |
writeArrayFieldStart(XContentString fieldName) |
void |
writeBinary(byte[] data) |
void |
writeBinary(byte[] data,
int offset,
int len) |
void |
writeBinaryField(String fieldName,
byte[] data) |
void |
writeBinaryField(XContentString fieldName,
byte[] data) |
void |
writeBoolean(boolean state) |
void |
writeBooleanField(String fieldName,
boolean value) |
void |
writeBooleanField(XContentString fieldName,
boolean value) |
void |
writeEndArray() |
void |
writeEndObject() |
void |
writeFieldName(String name) |
void |
writeFieldName(XContentString name) |
void |
writeNull() |
void |
writeNullField(String fieldName) |
void |
writeNullField(XContentString fieldName) |
void |
writeNumber(double d) |
void |
writeNumber(float f) |
void |
writeNumber(int v) |
void |
writeNumber(long v) |
void |
writeNumberField(String fieldName,
double value) |
void |
writeNumberField(String fieldName,
float value) |
void |
writeNumberField(String fieldName,
int value) |
void |
writeNumberField(String fieldName,
long value) |
void |
writeNumberField(XContentString fieldName,
double value) |
void |
writeNumberField(XContentString fieldName,
float value) |
void |
writeNumberField(XContentString fieldName,
int value) |
void |
writeNumberField(XContentString fieldName,
long value) |
void |
writeObjectFieldStart(String fieldName) |
void |
writeObjectFieldStart(XContentString fieldName) |
void |
writeRawField(String fieldName,
BytesReference content) |
void |
writeRawField(String fieldName,
InputStream content) |
void |
writeRawValue(BytesReference content) |
void |
writeStartArray() |
void |
writeStartObject() |
void |
writeString(char[] text,
int offset,
int len) |
void |
writeString(String text) |
void |
writeStringField(String fieldName,
String value) |
void |
writeStringField(XContentString fieldName,
String value) |
void |
writeUTF8String(byte[] text,
int offset,
int length) |
XContentType contentType()
void usePrettyPrint()
void usePrintLineFeedAtEnd()
void writeStartArray() throws IOException
IOException
void writeEndArray() throws IOException
IOException
void writeStartObject() throws IOException
IOException
void writeEndObject() throws IOException
IOException
void writeFieldName(String name) throws IOException
IOException
void writeFieldName(XContentString name) throws IOException
IOException
void writeString(String text) throws IOException
IOException
void writeString(char[] text, int offset, int len) throws IOException
IOException
void writeUTF8String(byte[] text, int offset, int length) throws IOException
IOException
void writeBinary(byte[] data, int offset, int len) throws IOException
IOException
void writeBinary(byte[] data) throws IOException
IOException
void writeNumber(int v) throws IOException
IOException
void writeNumber(long v) throws IOException
IOException
void writeNumber(double d) throws IOException
IOException
void writeNumber(float f) throws IOException
IOException
void writeBoolean(boolean state) throws IOException
IOException
void writeNull() throws IOException
IOException
void writeStringField(String fieldName, String value) throws IOException
IOException
void writeStringField(XContentString fieldName, String value) throws IOException
IOException
void writeBooleanField(String fieldName, boolean value) throws IOException
IOException
void writeBooleanField(XContentString fieldName, boolean value) throws IOException
IOException
void writeNullField(String fieldName) throws IOException
IOException
void writeNullField(XContentString fieldName) throws IOException
IOException
void writeNumberField(String fieldName, int value) throws IOException
IOException
void writeNumberField(XContentString fieldName, int value) throws IOException
IOException
void writeNumberField(String fieldName, long value) throws IOException
IOException
void writeNumberField(XContentString fieldName, long value) throws IOException
IOException
void writeNumberField(String fieldName, double value) throws IOException
IOException
void writeNumberField(XContentString fieldName, double value) throws IOException
IOException
void writeNumberField(String fieldName, float value) throws IOException
IOException
void writeNumberField(XContentString fieldName, float value) throws IOException
IOException
void writeBinaryField(String fieldName, byte[] data) throws IOException
IOException
void writeBinaryField(XContentString fieldName, byte[] data) throws IOException
IOException
void writeArrayFieldStart(String fieldName) throws IOException
IOException
void writeArrayFieldStart(XContentString fieldName) throws IOException
IOException
void writeObjectFieldStart(String fieldName) throws IOException
IOException
void writeObjectFieldStart(XContentString fieldName) throws IOException
IOException
void writeRawField(String fieldName, InputStream content) throws IOException
IOException
void writeRawField(String fieldName, BytesReference content) throws IOException
IOException
void writeRawValue(BytesReference content) throws IOException
IOException
void copyCurrentStructure(XContentParser parser) throws IOException
IOException
void flush() throws IOException
IOException
Copyright © 2009–2016. All rights reserved.