Class 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
    • Field Summary

      • Fields inherited from class org.xbib.content.core.AbstractXContentGenerator

        generator
    • 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
      void close()  
      org.xbib.content.XContent content()  
      void copy​(org.xbib.content.XContentBuilder builder, java.io.OutputStream outputStream)  
      void copyCurrentStructure​(org.xbib.content.XContentParser parser)  
      void flush()  
      void usePrettyPrint()  
      void writeRawField​(java.lang.String fieldName, byte[] content, int offset, int length, java.io.OutputStream bos)  
      void writeRawField​(java.lang.String fieldName, byte[] content, java.io.OutputStream outputStream)  
      void writeValue​(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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SmileXContentGenerator

        public SmileXContentGenerator​(com.fasterxml.jackson.dataformat.smile.SmileGenerator generator)
    • 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