java.lang.Object
org.xbib.content.core.AbstractXContentGenerator
org.xbib.content.yaml.YamlXContentGenerator
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable,org.xbib.content.XContentGenerator
public class YamlXContentGenerator
extends org.xbib.content.core.AbstractXContentGenerator
-
Field Summary
Fields inherited from class org.xbib.content.core.AbstractXContentGenerator
generator -
Constructor Summary
ConstructorsConstructorDescriptionYamlXContentGenerator(com.fasterxml.jackson.dataformat.yaml.YAMLGenerator generator) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()org.xbib.content.XContentcontent()voidcopy(org.xbib.content.XContentBuilder builder, OutputStream outputStream) voidcopyCurrentStructure(org.xbib.content.XContentParser parser) voidflush()voidvoidwriteRawField(String fieldName, byte[] content, int offset, int length, OutputStream outputStream) voidwriteRawField(String fieldName, byte[] content, OutputStream outputStream) voidwriteValue(org.xbib.content.XContentBuilder builder) Methods inherited from class org.xbib.content.core.AbstractXContentGenerator
setGenerator, writeArrayFieldStart, writeBinary, writeBinary, writeBinaryField, writeBoolean, writeBooleanField, writeEndArray, writeEndObject, writeFieldName, writeNull, writeNullField, writeNumber, writeNumber, writeNumber, writeNumber, writeNumber, writeNumber, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeNumberField, writeObjectFieldStart, writeStartArray, writeStartObject, writeString, writeString, writeStringField, writeUTF8String
-
Constructor Details
-
YamlXContentGenerator
public YamlXContentGenerator(com.fasterxml.jackson.dataformat.yaml.YAMLGenerator generator)
-
-
Method Details
-
content
public org.xbib.content.XContent content() -
usePrettyPrint
public void usePrettyPrint() -
writeRawField
public void writeRawField(String fieldName, byte[] content, OutputStream outputStream) throws IOException - Throws:
IOException
-
writeRawField
public void writeRawField(String fieldName, byte[] content, int offset, int length, OutputStream outputStream) throws IOException - Throws:
IOException
-
writeValue
- Throws:
IOException
-
copyCurrentStructure
- Throws:
IOException
-
copy
public void copy(org.xbib.content.XContentBuilder builder, OutputStream outputStream) throws IOException - Throws:
IOException
-
flush
- Throws:
IOException
-
close
- Throws:
IOException
-