Uses of Class java.nio.ByteBuffer

Uses in package java.security

Methods with parameter type java.nio.ByteBuffer

Class
Creates a class using an ByteBuffer and a CodeSource.
void
Updates this digest with the remaining bytes of a byte buffer.
void
Update this signature with the Buffer.remaining() bytes of the given buffer.
void
Updates the digest with the remaining bytes of a buffer.
void
Update this signature with the Buffer.remaining() bytes of the input buffer.

Uses in package java.lang

Methods with parameter type java.nio.ByteBuffer

Class
Helper to define a class using the contents of a byte buffer.

Uses in package java.nio.charset

Methods with parameter type java.nio.ByteBuffer

CharBuffer
CharBuffer
CoderResult
CharsetDecoder.decode(ByteBuffer in, CharBuffer out, boolean endOfInput)
CoderResult
CoderResult
CharsetEncoder.encode(CharBuffer in, ByteBuffer out, boolean endOfInput)
CoderResult
CoderResult
CoderResult

Methods with return type java.nio.ByteBuffer

ByteBuffer
ByteBuffer
ByteBuffer

Uses in package java.nio.channels

Methods with parameter type java.nio.ByteBuffer

int
Reads data from this channel.
int
Reads data from the channel.
int
Reads a sequence of bytes from this channel into the given buffer
int
Reads data from the channel.
int
FileChannel.read(ByteBuffer dst, long position)
Reads data from the channel.
long
Reads data from this channel.
long
Reads data from the channel.
long
Reads a sequence of bytes from this channel into the given buffers
long
Reads data from the channel.
long
DatagramChannel.read(ByteBuffer[] dsts, int offset, int length)
Reads data from this channel.
long
FileChannel.read(ByteBuffer[] dsts, int offset, int length)
Reads data from the channel.
long
ScatteringByteChannel.read(ByteBuffer[] srcs, int offset, int length)
Reads a sequence of bytes from this channel into a subsequence of the given buffers
long
SocketChannel.read(ByteBuffer[] dsts, int offset, int length)
Reads data from the channel.
SocketAddress
Receives a datagram via this channel.
int
Sends a datagram via this channel.
int
Writes data to this channel.
int
Writes data to the channel.
int
Writes data to the channel.
int
Writes a sequence of bytes to this channel from the given buffer
int
FileChannel.write(ByteBuffer srcs, long position)
Writes data to the channel.
long
Writes data to this channel.
long
Writes data to the channel.
long
Writes a sequence of bytes to this channel from the given buffers
long
Writes data to the channel.
long
DatagramChannel.write(ByteBuffer[] srcs, int offset, int length)
Writes data to this channel.
long
FileChannel.write(ByteBuffer[] srcs, int offset, int length)
Writes data to the channel.
long
GatheringByteChannel.write(ByteBuffer[] srcs, int offset, int length)
Writes a sequence of bytes to this channel from a subsequence of the given buffers
long
SocketChannel.write(ByteBuffer[] srcs, int offset, int length)
Writes data to the channel.

Uses in package javax.net.ssl

Methods with parameter type java.nio.ByteBuffer

SSLEngineResult
Unwraps a byte buffer recieved from the network, storing the decrypted, unwrapped bytes into the given buffer.
SSLEngineResult
Unwraps a byte buffer recieved from the network, storing the decrypted, unwrapped bytes into the given buffers.
SSLEngineResult
SSLEngine.unwrap(ByteBuffer source, ByteBuffer[] sinks, int offset, int length)
Unwraps a byte buffer received from the network, storing the decrypted, unwrapped bytes into the given buffers.
SSLEngineResult
Wraps a byte buffer into an SSL message, for preparation to send it over the network.
SSLEngineResult
SSLEngine.wrap(ByteBuffer[] sources, int offset, int length, ByteBuffer sink)
Wraps byte buffers into an SSL message, for preparation to send them over the network.
SSLEngineResult
SSLEngine.wrap(ByteBuffer[] sources, ByteBuffer sink)
Wraps byte buffers into an SSL message, for preparation to send them over the network.

Uses in package java.nio

Classes derived from java.nio.ByteBuffer

class

Methods with parameter type java.nio.ByteBuffer

int
Compares two ByteBuffer objects.
ByteBuffer
Writes the content of the the ByteBUFFER src into the buffer.

Methods with return type java.nio.ByteBuffer

ByteBuffer
ByteBuffer.allocate(int capacity)
Allocates a new ByteBuffer object with a given capacity.
ByteBuffer
ByteBuffer.allocateDirect(int capacity)
Allocates a new direct byte buffer.
ByteBuffer
Creates a new read-only ByteBuffer that shares this buffer's content.
ByteBuffer
Compacts this buffer.
ByteBuffer
Creates a new ByteBuffer that shares this buffer's content.
ByteBuffer
ByteBuffer.get(byte[] dst)
This method transfers bytes from this buffer into the given destination array.
ByteBuffer
ByteBuffer.get(byte[] dst, int offset, int length)
This method transfers bytes from this buffer into the given destination array.
ByteBuffer
Modifies this buffer's byte order.
ByteBuffer
ByteBuffer.put(byte b)
Writes the byte at this buffer's current position, and then increments the position.
ByteBuffer
ByteBuffer.put(byte[] src)
Writes the content of the the byte array src into the buffer.
ByteBuffer
ByteBuffer.put(byte[] src, int offset, int length)
Writes the content of the the byte array src into the buffer.
ByteBuffer
ByteBuffer.put(int index, byte b)
Absolute put method.
ByteBuffer
Writes the content of the the ByteBUFFER src into the buffer.
ByteBuffer
ByteBuffer.putChar(char value)
Relative put method for writing a character value.
ByteBuffer
ByteBuffer.putChar(int index, char value)
Absolute put method for writing a character value.
ByteBuffer
ByteBuffer.putDouble(double value)
Relative put method for writing a double value.
ByteBuffer
ByteBuffer.putDouble(int index, double value)
Absolute put method for writing a double value.
ByteBuffer
ByteBuffer.putFloat(float value)
Relative put method for writing a float value.
ByteBuffer
ByteBuffer.putFloat(int index, float value)
Relative put method for writing a float value.
ByteBuffer
ByteBuffer.putInt(int value)
Relative put method for writing an integer value.
ByteBuffer
ByteBuffer.putInt(int index, int value)
Absolute put method for writing an integer value.
ByteBuffer
ByteBuffer.putLong(int index, long value)
Absolute put method for writing a float value.
ByteBuffer
ByteBuffer.putLong(long value)
Relative put method for writing a long value.
ByteBuffer
ByteBuffer.putShort(int index, short value)
Absolute put method for writing a short value.
ByteBuffer
ByteBuffer.putShort(short value)
Relative put method for writing a short value.
ByteBuffer
Creates a new ByteBuffer whose content is a shared subsequence of this buffer's content.
ByteBuffer
ByteBuffer.wrap(byte[] array)
Wraps a byte array into a ByteBuffer object.
ByteBuffer
ByteBuffer.wrap(byte[] array, int offset, int length)
Wraps a byte array into a ByteBuffer object.

Uses in package javax.crypto

Methods with parameter type java.nio.ByteBuffer

int
Finishes a multi-part transformation with, or completely transforms, a byte buffer, and stores the result into the output buffer.
int
void
Update this MAC with the remaining bytes of a buffer.
int
void
Update this MAC with the remaining bytes in the given buffer
int
Continue a multi-part transformation on a byte buffer, storing the transformed bytes into another buffer.