Package com.mongodb.connection
Class ByteBufferBsonOutput
- java.lang.Object
-
- java.io.OutputStream
-
- org.bson.io.OutputBuffer
-
- com.mongodb.connection.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.
-
-
Field Summary
Fields Modifier and Type Field Description static int
INITIAL_BUFFER_SIZE
Deprecated.static int
MAX_BUFFER_SIZE
Deprecated.
-
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.List<org.bson.ByteBuf>
getByteBuffers()
Deprecated.int
getPosition()
Deprecated.int
getSize()
Deprecated.int
pipe(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 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, nullOutputStream
-
-
-
-
Field Detail
-
INITIAL_BUFFER_SIZE
public static final int INITIAL_BUFFER_SIZE
Deprecated.- See Also:
- Constant Field Values
-
MAX_BUFFER_SIZE
public static final int MAX_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 classorg.bson.io.OutputBuffer
-
getByteBuffers
public List<org.bson.ByteBuf> getByteBuffers()
Deprecated.- Specified by:
getByteBuffers
in classorg.bson.io.OutputBuffer
-
pipe
public int pipe(OutputStream out) throws IOException
Deprecated.- Specified by:
pipe
in classorg.bson.io.OutputBuffer
- Throws:
IOException
-
truncateToPosition
public void truncateToPosition(int newPosition)
Deprecated.- Specified by:
truncateToPosition
in interfaceorg.bson.io.BsonOutput
- Specified by:
truncateToPosition
in classorg.bson.io.OutputBuffer
-
close
public void close()
Deprecated.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceorg.bson.io.BsonOutput
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classorg.bson.io.OutputBuffer
-
-