Class ByteBufferBsonOutput


  • Deprecated.

    @Deprecated
    public class ByteBufferBsonOutput
    extends org.bson.io.OutputBuffer
    This class should not be considered as part of the public API, and it may change or be removed at any time.
    • Constructor Summary

      Constructors 
      Constructor Description
      ByteBufferBsonOutput​(BufferProvider bufferProvider)
      Deprecated. 
      Construct an instance that uses the given buffer provider to allocate byte buffers as needs as it grows.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void close​()
      Deprecated. 
       
      java.util.List<org.bson.ByteBuf> getByteBuffers​()
      Deprecated. 
       
      int getPosition​()
      Deprecated. 
       
      int getSize​()
      Deprecated. 
       
      int pipe​(java.io.OutputStream out)
      Deprecated. 
       
      void truncateToPosition​(int newPosition)
      Deprecated. 
       
      protected void write​(int absolutePosition, int value)
      Deprecated. 
       
      void writeByte​(int value)
      Deprecated. 
       
      void writeBytes​(byte[] bytes, int offset, int length)
      Deprecated. 
       
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from class org.bson.io.OutputBuffer

        size, toByteArray, toString, write, write, write, writeBytes, writeCString, writeDouble, writeInt, writeInt32, writeInt32, writeInt64, writeLong, writeObjectId, writeString
      • Methods inherited from class java.io.OutputStream

        flush
    • Field Detail

      • INITIAL_BUFFER_SIZE

        public static final int INITIAL_BUFFER_SIZE
        Deprecated. 
        See Also:
        Constant Field Values
    • Constructor Detail

      • ByteBufferBsonOutput

        public ByteBufferBsonOutput​(BufferProvider bufferProvider)
        Deprecated. 
        Construct an instance that uses the given buffer provider to allocate byte buffers as needs as it grows.
        Parameters:
        bufferProvider - the non-null buffer provider
    • Method Detail

      • writeBytes

        public void writeBytes​(byte[] bytes,
                               int offset,
                               int length)
        Deprecated. 
      • writeByte

        public void writeByte​(int value)
        Deprecated. 
      • getPosition

        public int getPosition​()
        Deprecated. 
      • getSize

        public int getSize​()
        Deprecated. 
      • write

        protected void write​(int absolutePosition,
                             int value)
        Deprecated. 
        Specified by:
        write in class org.bson.io.OutputBuffer
      • getByteBuffers

        public java.util.List<org.bson.ByteBuf> getByteBuffers​()
        Deprecated. 
        Specified by:
        getByteBuffers in class org.bson.io.OutputBuffer
      • pipe

        public int pipe​(java.io.OutputStream out)
                 throws java.io.IOException
        Deprecated. 
        Specified by:
        pipe in class org.bson.io.OutputBuffer
        Throws:
        java.io.IOException
      • truncateToPosition

        public void truncateToPosition​(int newPosition)
        Deprecated. 
        Specified by:
        truncateToPosition in class org.bson.io.OutputBuffer
      • close

        public void close​()
        Deprecated. 
        Overrides:
        close in class org.bson.io.OutputBuffer