Class YamlXContentGenerator
java.lang.Object
org.elasticsearch.common.xcontent.json.JsonXContentGenerator
org.elasticsearch.common.xcontent.yaml.YamlXContentGenerator
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable,XContentGenerator
public class YamlXContentGenerator extends JsonXContentGenerator
-
Field Summary
Fields inherited from class org.elasticsearch.common.xcontent.json.JsonXContentGenerator
generator -
Constructor Summary
Constructors Constructor Description YamlXContentGenerator(com.fasterxml.jackson.core.JsonGenerator jsonGenerator, java.io.OutputStream os, java.util.Set<java.lang.String> includes, java.util.Set<java.lang.String> excludes) -
Method Summary
Modifier and Type Method Description XContentTypecontentType()protected booleansupportsRawWrites()Whether this generator supports writing raw data directlyvoidusePrintLineFeedAtEnd()Methods inherited from class org.elasticsearch.common.xcontent.json.JsonXContentGenerator
close, copyCurrentStructure, copyRawValue, flush, isClosed, isPrettyPrint, usePrettyPrint, writeBinary, writeBinary, writeBinaryField, writeBoolean, writeBooleanField, writeEndArray, writeEndObject, writeEndRaw, writeFieldName, writeNull, writeNullField, writeNumber, writeNumber, writeNumber, writeNumber, writeNumber, writeNumber, writeNumber, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeRawField, writeRawField, writeRawValue, writeStartArray, writeStartObject, writeString, writeString, writeStringField, writeUTF8StringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.common.xcontent.XContentGenerator
copyCurrentEvent
-
Constructor Details
-
YamlXContentGenerator
public YamlXContentGenerator(com.fasterxml.jackson.core.JsonGenerator jsonGenerator, java.io.OutputStream os, java.util.Set<java.lang.String> includes, java.util.Set<java.lang.String> excludes)
-
-
Method Details
-
contentType
- Specified by:
contentTypein interfaceXContentGenerator- Overrides:
contentTypein classJsonXContentGenerator
-
usePrintLineFeedAtEnd
public void usePrintLineFeedAtEnd()- Specified by:
usePrintLineFeedAtEndin interfaceXContentGenerator- Overrides:
usePrintLineFeedAtEndin classJsonXContentGenerator
-
supportsRawWrites
protected boolean supportsRawWrites()Description copied from class:JsonXContentGeneratorWhether this generator supports writing raw data directly- Overrides:
supportsRawWritesin classJsonXContentGenerator
-