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 XContentType
contentType()
protected boolean
supportsRawWrites()
Whether this generator supports writing raw data directlyvoid
usePrintLineFeedAtEnd()
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, writeUTF8String
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
contentType
in interfaceXContentGenerator
- Overrides:
contentType
in classJsonXContentGenerator
-
usePrintLineFeedAtEnd
public void usePrintLineFeedAtEnd()- Specified by:
usePrintLineFeedAtEnd
in interfaceXContentGenerator
- Overrides:
usePrintLineFeedAtEnd
in classJsonXContentGenerator
-
supportsRawWrites
protected boolean supportsRawWrites()Description copied from class:JsonXContentGenerator
Whether this generator supports writing raw data directly- Overrides:
supportsRawWrites
in classJsonXContentGenerator
-