org.elasticsearch.common.xcontent.yaml
Class YamlXContentGenerator
java.lang.Object
org.elasticsearch.common.xcontent.json.JsonXContentGenerator
org.elasticsearch.common.xcontent.yaml.YamlXContentGenerator
- All Implemented Interfaces:
- XContentGenerator
public class YamlXContentGenerator
- extends JsonXContentGenerator
Method Summary |
XContentType |
contentType()
|
void |
writeRawField(String fieldName,
byte[] content,
int offset,
int length,
OutputStream bos)
|
void |
writeRawField(String fieldName,
byte[] content,
OutputStream bos)
|
void |
writeRawField(String fieldName,
BytesReference content,
OutputStream bos)
|
void |
writeRawField(String fieldName,
InputStream content,
OutputStream bos)
|
Methods inherited from class org.elasticsearch.common.xcontent.json.JsonXContentGenerator |
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, writeStartArray, writeStartObject, writeString, writeString, writeStringField, writeStringField, writeUTF8String |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
YamlXContentGenerator
public YamlXContentGenerator(com.fasterxml.jackson.core.JsonGenerator generator)
contentType
public XContentType contentType()
- Specified by:
contentType
in interface XContentGenerator
- Overrides:
contentType
in class JsonXContentGenerator
writeRawField
public void writeRawField(String fieldName,
InputStream content,
OutputStream bos)
throws IOException
- Specified by:
writeRawField
in interface XContentGenerator
- Overrides:
writeRawField
in class JsonXContentGenerator
- Throws:
IOException
writeRawField
public void writeRawField(String fieldName,
byte[] content,
OutputStream bos)
throws IOException
- Specified by:
writeRawField
in interface XContentGenerator
- Overrides:
writeRawField
in class JsonXContentGenerator
- Throws:
IOException
writeRawField
public void writeRawField(String fieldName,
BytesReference content,
OutputStream bos)
throws IOException
- Specified by:
writeRawField
in interface XContentGenerator
- Overrides:
writeRawField
in class JsonXContentGenerator
- Throws:
IOException
writeRawField
public void writeRawField(String fieldName,
byte[] content,
int offset,
int length,
OutputStream bos)
throws IOException
- Specified by:
writeRawField
in interface XContentGenerator
- Overrides:
writeRawField
in class JsonXContentGenerator
- Throws:
IOException
Copyright © 2009-2012. All Rights Reserved.