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