- java.lang.Object
-
- org.xbib.content.core.AbstractXContentGenerator
-
- org.xbib.content.smile.SmileXContentGenerator
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable,org.xbib.content.XContentGenerator
public class SmileXContentGenerator extends org.xbib.content.core.AbstractXContentGenerator
-
-
Constructor Summary
Constructors Constructor Description SmileXContentGenerator(com.fasterxml.jackson.dataformat.smile.SmileGenerator generator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()org.xbib.content.XContentcontent()voidcopy(org.xbib.content.XContentBuilder builder, java.io.OutputStream outputStream)voidcopyCurrentStructure(org.xbib.content.XContentParser parser)voidflush()voidusePrettyPrint()voidwriteRawField(java.lang.String fieldName, byte[] content, int offset, int length, java.io.OutputStream bos)voidwriteRawField(java.lang.String fieldName, byte[] content, java.io.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
-
-
-
-
Method Detail
-
content
public org.xbib.content.XContent content()
-
usePrettyPrint
public void usePrettyPrint()
-
writeRawField
public void writeRawField(java.lang.String fieldName, byte[] content, java.io.OutputStream outputStream) throws java.io.IOException- Throws:
java.io.IOException
-
writeRawField
public void writeRawField(java.lang.String fieldName, byte[] content, int offset, int length, java.io.OutputStream bos) throws java.io.IOException- Throws:
java.io.IOException
-
writeValue
public void writeValue(org.xbib.content.XContentBuilder builder) throws java.io.IOException- Throws:
java.io.IOException
-
copyCurrentStructure
public void copyCurrentStructure(org.xbib.content.XContentParser parser) throws java.io.IOException- Throws:
java.io.IOException
-
copy
public void copy(org.xbib.content.XContentBuilder builder, java.io.OutputStream outputStream) throws java.io.IOException- Throws:
java.io.IOException
-
flush
public void flush() throws java.io.IOException- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Throws:
java.io.IOException
-
-