Package org.elasticsearch.xcontent.yaml
Class YamlXContentGenerator
java.lang.Object
org.elasticsearch.xcontent.json.JsonXContentGenerator
org.elasticsearch.xcontent.yaml.YamlXContentGenerator
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
,XContentGenerator
-
Field Summary
Fields inherited from class org.elasticsearch.xcontent.json.JsonXContentGenerator
generator
-
Constructor Summary
ConstructorDescriptionYamlXContentGenerator
(com.fasterxml.jackson.core.JsonGenerator jsonGenerator, OutputStream os, Set<String> includes, Set<String> excludes) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Whether this generator supports writing raw data directlyvoid
Methods inherited from class org.elasticsearch.xcontent.json.JsonXContentGenerator
close, copyCurrentStructure, copyRawValue, flush, isClosed, isPrettyPrint, usePrettyPrint, writeBinary, writeBinary, writeBinaryField, writeBoolean, writeBooleanField, writeDirectField, 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.xcontent.XContentGenerator
copyCurrentEvent
-
Constructor Details
-
YamlXContentGenerator
public YamlXContentGenerator(com.fasterxml.jackson.core.JsonGenerator jsonGenerator, OutputStream os, Set<String> includes, Set<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
-