Class SmileXContentGenerator
java.lang.Object
org.elasticsearch.common.xcontent.json.JsonXContentGenerator
org.elasticsearch.common.xcontent.smile.SmileXContentGenerator
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable,XContentGenerator
public class SmileXContentGenerator extends JsonXContentGenerator
-
Field Summary
-
Constructor Summary
Constructors Constructor Description SmileXContentGenerator(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
-
SmileXContentGenerator
public SmileXContentGenerator(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
-