Package | Description |
---|---|
com.mongodb.connection |
Contains classes that manage connecting to MongoDB servers.
|
com.mongodb.internal.connection | |
org.bson |
This package contains bson classes required for the driver
|
org.bson.io |
This package contains I/O utilities
|
Modifier and Type | Method and Description |
---|---|
ByteBuf |
BufferProvider.getBuffer(int size)
Gets a buffer with the givens capacity.
|
ByteBuf |
Stream.read(int numBytes)
Read from the stream, blocking until the requested number of bytes have been read.
|
Modifier and Type | Method and Description |
---|---|
List<ByteBuf> |
ByteBufferBsonOutput.getByteBuffers() |
Modifier and Type | Method and Description |
---|---|
void |
Stream.readAsync(int numBytes,
AsyncCompletionHandler<ByteBuf> handler)
Read from the stream, asynchronously.
|
void |
Stream.write(List<ByteBuf> buffers)
Write each buffer in the list to the stream in order, blocking until all are completely written.
|
void |
Stream.writeAsync(List<ByteBuf> buffers,
AsyncCompletionHandler<Void> handler)
Write each buffer in the list to the stream in order, asynchronously.
|
Modifier and Type | Method and Description |
---|---|
ByteBuf |
PowerOfTwoBufferPool.getBuffer(int size) |
Modifier and Type | Class and Description |
---|---|
class |
ByteBufNIO
Implementation of
ByteBuf which simply wraps an NIO ByteBuffer and forwards all calls to it. |
Modifier and Type | Method and Description |
---|---|
ByteBuf |
ByteBuf.asReadOnly()
Creates a new, read-only byte buffer that shares this buffer's content.
|
ByteBuf |
ByteBufNIO.asReadOnly() |
ByteBuf |
ByteBuf.clear()
Clears this buffer.
|
ByteBuf |
ByteBufNIO.clear() |
ByteBuf |
ByteBuf.duplicate()
Creates a new byte buffer that shares this buffer's content.
|
ByteBuf |
ByteBufNIO.duplicate() |
ByteBuf |
ByteBuf.flip()
Flips this buffer.
|
ByteBuf |
ByteBufNIO.flip() |
ByteBuf |
ByteBuf.get(byte[] bytes)
Relative bulk
get method. |
ByteBuf |
ByteBufNIO.get(byte[] bytes) |
ByteBuf |
ByteBuf.get(byte[] bytes,
int offset,
int length)
Relative bulk get method.
|
ByteBuf |
ByteBufNIO.get(byte[] bytes,
int offset,
int length) |
ByteBuf |
ByteBuf.get(int index,
byte[] bytes)
Absolute bulk
get method. |
ByteBuf |
ByteBufNIO.get(int index,
byte[] bytes) |
ByteBuf |
ByteBuf.get(int index,
byte[] bytes,
int offset,
int length)
Absolute bulk get method.
|
ByteBuf |
ByteBufNIO.get(int index,
byte[] bytes,
int offset,
int length) |
ByteBuf |
RawBsonDocument.getByteBuffer()
Returns a
ByteBuf that wraps the byte array, with the proper byte order. |
ByteBuf |
ByteBuf.limit(int newLimit)
Sets this buffer's limit.
|
ByteBuf |
ByteBufNIO.limit(int newLimit) |
ByteBuf |
ByteBuf.order(ByteOrder byteOrder)
Modifies this buffer's byte order.
|
ByteBuf |
ByteBufNIO.order(ByteOrder byteOrder) |
ByteBuf |
ByteBuf.position(int newPosition)
Sets this buffer's position.
|
ByteBuf |
ByteBufNIO.position(int newPosition) |
ByteBuf |
ByteBuf.put(byte b)
Relative put method (optional operation).
|
ByteBuf |
ByteBufNIO.put(byte b) |
ByteBuf |
ByteBuf.put(byte[] src,
int offset,
int length)
Relative bulk put method (optional operation).
|
ByteBuf |
ByteBufNIO.put(byte[] src,
int offset,
int length) |
ByteBuf |
ByteBuf.put(int index,
byte b)
Absolute put method (optional operation).
|
ByteBuf |
ByteBufNIO.put(int index,
byte b) |
ByteBuf |
ByteBuf.retain()
Retain an additional reference to this object.
|
Modifier and Type | Method and Description |
---|---|
List<ByteBuf> |
BasicOutputBuffer.getByteBuffers() |
abstract List<ByteBuf> |
OutputBuffer.getByteBuffers()
Get a list of byte buffers that are prepared to be read from; in other words, whose position is 0 and whose limit is the number of
bytes that should read.
|
Constructor and Description |
---|
ByteBufferBsonInput(ByteBuf buffer)
Construct an instance with the given byte buffer.
|
Copyright © 2016. All Rights Reserved.