Class ByteBufferBsonOutput

  • All Implemented Interfaces:
    Closeable, Flushable, AutoCloseable, org.bson.io.BsonOutput

    @Deprecated
    public class ByteBufferBsonOutput
    extends org.bson.io.OutputBuffer
    Deprecated.
    This class should not be considered as part of the public API, and it may change or be removed at any time.
    • 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 List<org.bson.ByteBuf> getByteBuffers()
        Deprecated.
        Specified by:
        getByteBuffers in class org.bson.io.OutputBuffer
      • truncateToPosition

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

        public void close()
        Deprecated.
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface org.bson.io.BsonOutput
        Specified by:
        close in interface Closeable
        Overrides:
        close in class org.bson.io.OutputBuffer