Uses of Class
java.nio.ByteBuffer
| Package | Description |
|---|---|
| java.lang | |
| java.nio | |
| java.nio.channels | |
| java.nio.charset | |
| java.security |
Extensible cryptographic service provider infrastructure (SPI) for using
and defining services such as
Certificates,
Keys, KeyStores, MessageDigests, and Signatures. |
| java.util | |
| javax.crypto |
This package provides the classes and interfaces for cryptographic applications implementing algorithms for encryption, decryption, or
key agreement.
|
| javax.net.ssl |
This package provides classes and interfaces needed to use the Secure
Sockets Layer (SSL) protocol and the successor Transport Layer
Security (TLS) protocol.
|
| libcore.io | |
| org.apache.harmony.crypto.internal | |
| org.conscrypt | |
| org.robovm.rt | |
| org.robovm.rt.bro | |
| org.robovm.rt.bro.ptr |
-
Uses of ByteBuffer in java.lang
Methods in java.lang with parameters of type ByteBuffer Modifier and Type Method Description protected Class<?>ClassLoader. defineClass(String name, ByteBuffer b, ProtectionDomain protectionDomain)Defines a new class with the specified name, byte code from the byte buffer and the optional protection domain. -
Uses of ByteBuffer in java.nio
Subclasses of ByteBuffer in java.nio Modifier and Type Class Description classMappedByteBufferMappedByteBufferis a special kind of direct byte buffer which maps a region of file to memory.Methods in java.nio that return ByteBuffer Modifier and Type Method Description static ByteBufferByteBuffer. allocate(int capacity)Creates a byte buffer based on a newly allocated byte array.static ByteBufferByteBuffer. allocateDirect(int capacity)Creates a direct byte buffer based on a newly allocated memory block.abstract ByteBufferByteBuffer. asReadOnlyBuffer()Returns a read-only buffer that shares its content with this buffer.abstract ByteBufferByteBuffer. compact()Compacts this byte buffer.abstract ByteBufferByteBuffer. duplicate()Returns a duplicated buffer that shares its content with this buffer.ByteBufferByteBuffer. get(byte[] dst)Reads bytes from the current position into the specified byte array and increases the position by the number of bytes read.ByteBufferByteBuffer. get(byte[] dst, int dstOffset, int byteCount)Reads bytes from the current position into the specified byte array, starting at the specified offset, and increases the position by the number of bytes read.ByteBufferByteBuffer. order(ByteOrder byteOrder)Sets the byte order of this buffer.abstract ByteBufferByteBuffer. put(byte b)Writes the given byte to the current position and increases the position by 1.ByteBufferByteBuffer. put(byte[] src)Writes bytes in the given byte array to the current position and increases the position by the number of bytes written.ByteBufferByteBuffer. put(byte[] src, int srcOffset, int byteCount)Writes bytes in the given byte array, starting from the specified offset, to the current position and increases the position by the number of bytes written.abstract ByteBufferByteBuffer. put(int index, byte b)Write a byte to the specified index of this buffer without changing the position.ByteBufferByteBuffer. put(ByteBuffer src)Writes all the remaining bytes of thesrcbyte buffer to this buffer's current position, and increases both buffers' position by the number of bytes copied.abstract ByteBufferByteBuffer. putChar(char value)Writes the given char to the current position and increases the position by 2.abstract ByteBufferByteBuffer. putChar(int index, char value)Writes the given char to the specified index of this buffer.abstract ByteBufferByteBuffer. putDouble(double value)Writes the given double to the current position and increases the position by 8.abstract ByteBufferByteBuffer. putDouble(int index, double value)Writes the given double to the specified index of this buffer.abstract ByteBufferByteBuffer. putFloat(float value)Writes the given float to the current position and increases the position by 4.abstract ByteBufferByteBuffer. putFloat(int index, float value)Writes the given float to the specified index of this buffer.abstract ByteBufferByteBuffer. putInt(int value)Writes the given int to the current position and increases the position by 4.abstract ByteBufferByteBuffer. putInt(int index, int value)Writes the given int to the specified index of this buffer.abstract ByteBufferByteBuffer. putLong(int index, long value)Writes the given long to the specified index of this buffer.abstract ByteBufferByteBuffer. putLong(long value)Writes the given long to the current position and increases the position by 8.abstract ByteBufferByteBuffer. putShort(int index, short value)Writes the given short to the specified index of this buffer.abstract ByteBufferByteBuffer. putShort(short value)Writes the given short to the current position and increases the position by 2.abstract ByteBufferByteBuffer. slice()Returns a sliced buffer that shares its content with this buffer.static ByteBufferByteBuffer. wrap(byte[] array)Creates a new byte buffer by wrapping the given byte array.static ByteBufferByteBuffer. wrap(byte[] array, int start, int byteCount)Creates a new byte buffer by wrapping the given byte array.Methods in java.nio with parameters of type ByteBuffer Modifier and Type Method Description intByteBuffer. compareTo(ByteBuffer otherBuffer)Compares the remaining bytes of this buffer to another byte buffer's remaining bytes.static voidNioUtils. freeDirectBuffer(ByteBuffer buffer)ByteBufferByteBuffer. put(ByteBuffer src)Writes all the remaining bytes of thesrcbyte buffer to this buffer's current position, and increases both buffers' position by the number of bytes copied.static byte[]NioUtils. unsafeArray(ByteBuffer b)Exposes the array backing a non-direct ByteBuffer, even if the ByteBuffer is read-only.static intNioUtils. unsafeArrayOffset(ByteBuffer b)Exposes the array offset for the array backing a non-direct ByteBuffer, even if the ByteBuffer is read-only. -
Uses of ByteBuffer in java.nio.channels
Methods in java.nio.channels with parameters of type ByteBuffer Modifier and Type Method Description abstract intDatagramChannel. read(ByteBuffer target)Reads a datagram from this channel into the byte buffer.longDatagramChannel. read(ByteBuffer[] targets)Reads a datagram from this channel into an array of byte buffers.abstract longDatagramChannel. read(ByteBuffer[] targets, int offset, int length)Reads a datagram from this channel into an array of byte buffers.abstract intFileChannel. read(ByteBuffer buffer)Reads bytes from this file channel into the given buffer.longFileChannel. read(ByteBuffer[] buffers)Reads bytes from this file channel and stores them in the specified array of buffers.abstract longFileChannel. read(ByteBuffer[] buffers, int start, int number)Reads bytes from this file channel into a subset of the given buffers.abstract intFileChannel. read(ByteBuffer buffer, long position)Reads bytes from this file channel into the given buffer starting from the specified file position.intReadableByteChannel. read(ByteBuffer buffer)Reads bytes from the channel into the given buffer.longScatteringByteChannel. read(ByteBuffer[] buffers)Reads bytes from this channel into the specified array of buffers.longScatteringByteChannel. read(ByteBuffer[] buffers, int offset, int length)Attempts to read allremaining()bytes fromlengthbyte buffers, in order, starting atbuffers[offset].abstract intSocketChannel. read(ByteBuffer target)Reads bytes from this socket channel into the given buffer.longSocketChannel. read(ByteBuffer[] targets)Reads bytes from this socket channel and stores them in the specified array of buffers.abstract longSocketChannel. read(ByteBuffer[] targets, int offset, int length)Reads bytes from this socket channel into a subset of the given buffers.abstract SocketAddressDatagramChannel. receive(ByteBuffer target)Gets a datagram from this channel.abstract intDatagramChannel. send(ByteBuffer source, SocketAddress address)Sends a datagram through this channel.abstract intDatagramChannel. write(ByteBuffer source)Writes a datagram from the byte buffer to this channel.longDatagramChannel. write(ByteBuffer[] sources)Writes a datagram from the byte buffers to this channel.abstract longDatagramChannel. write(ByteBuffer[] sources, int offset, int length)Writes a datagram from the byte buffers to this channel.abstract intFileChannel. write(ByteBuffer src)Writes bytes from the given byte buffer to this file channel.longFileChannel. write(ByteBuffer[] buffers)Writes bytes from all the given byte buffers to this file channel.abstract longFileChannel. write(ByteBuffer[] buffers, int offset, int length)Attempts to write a subset of the given bytes from the buffers to this file channel.abstract intFileChannel. write(ByteBuffer buffer, long position)Writes bytes from the given buffer to this file channel starting at the given file position.longGatheringByteChannel. write(ByteBuffer[] buffers)Writes bytes from all the given buffers to a channel.longGatheringByteChannel. write(ByteBuffer[] buffers, int offset, int length)Attempts to write allremaining()bytes fromlengthbyte buffers, in order, starting atbuffers[offset].abstract intSocketChannel. write(ByteBuffer source)Writes bytes from the given byte buffer to this socket channel.longSocketChannel. write(ByteBuffer[] sources)Writes bytes from all the given byte buffers to this socket channel.abstract longSocketChannel. write(ByteBuffer[] sources, int offset, int length)Attempts to write a subset of the given bytes from the buffers to this socket channel.intWritableByteChannel. write(ByteBuffer buffer)Writes bytes from the given buffer to the channel. -
Uses of ByteBuffer in java.nio.charset
Methods in java.nio.charset that return ByteBuffer Modifier and Type Method Description ByteBufferCharset. encode(String s)Returns a newByteBuffercontaining the bytes encoding the characters froms.ByteBufferCharset. encode(CharBuffer buffer)Returns a newByteBuffercontaining the bytes encoding the characters frombuffer.ByteBufferCharsetEncoder. encode(CharBuffer in)This is a facade method for the encoding operation.Methods in java.nio.charset with parameters of type ByteBuffer Modifier and Type Method Description CharBufferCharset. decode(ByteBuffer buffer)Returns a newCharBuffercontaining the characters decoded frombuffer.CharBufferCharsetDecoder. decode(ByteBuffer in)This is a facade method for the decoding operation.CoderResultCharsetDecoder. decode(ByteBuffer in, CharBuffer out, boolean endOfInput)Decodes bytes starting at the current position of the given input buffer, and writes the equivalent character sequence into the given output buffer from its current position.protected abstract CoderResultCharsetDecoder. decodeLoop(ByteBuffer in, CharBuffer out)Decodes bytes into characters.CoderResultCharsetEncoder. encode(CharBuffer in, ByteBuffer out, boolean endOfInput)Encodes characters starting at the current position of the given input buffer, and writes the equivalent byte sequence into the given output buffer from its current position.protected abstract CoderResultCharsetEncoder. encodeLoop(CharBuffer in, ByteBuffer out)Encodes characters into bytes.CoderResultCharsetEncoder. flush(ByteBuffer out)Flushes this encoder.protected CoderResultCharsetEncoder. implFlush(ByteBuffer out)Flushes this encoder. -
Uses of ByteBuffer in java.security
Methods in java.security with parameters of type ByteBuffer Modifier and Type Method Description protected Class<?>SecureClassLoader. defineClass(String name, ByteBuffer b, CodeSource cs)Constructs a new class from an array of bytes containing a class definition in class file format with an optionalCodeSource.protected voidMessageDigestSpi. engineUpdate(ByteBuffer input)Updates thisMessageDigestSpiusing the giveninput.protected voidSignatureSpi. engineUpdate(ByteBuffer input)Updates the data to be verified or to be signed, using the specifiedByteBuffer.voidMessageDigest. update(ByteBuffer input)Updates thisMessageDigestusing the giveninput.voidSignature. update(ByteBuffer data)Updates the data to be verified or to be signed, using the specifiedByteBuffer. -
Uses of ByteBuffer in java.util
Methods in java.util with parameters of type ByteBuffer Modifier and Type Method Description static BitSetBitSet. valueOf(ByteBuffer byteBuffer)Returns aBitSetcorresponding tobyteBuffer, interpreted as a little-endian sequence of bits. -
Uses of ByteBuffer in javax.crypto
Methods in javax.crypto with parameters of type ByteBuffer Modifier and Type Method Description intCipher. doFinal(ByteBuffer input, ByteBuffer output)Finishes a multi-part transformation (encryption or decryption).protected intCipherSpi. engineDoFinal(ByteBuffer input, ByteBuffer output)Finishes a multi-part transformation (encryption or decryption).protected intCipherSpi. engineUpdate(ByteBuffer input, ByteBuffer output)Continues a multi-part transformation (encryption or decryption).protected voidMacSpi. engineUpdate(ByteBuffer input)Updates thisMacSpiinstance with the data from the specified buffer, starting atBuffer.position(), including the nextBuffer.remaining()bytes.protected voidCipherSpi. engineUpdateAAD(ByteBuffer input)Continues a multi-part transformation (encryption or decryption).intCipher. update(ByteBuffer input, ByteBuffer output)Continues a multi-part transformation (encryption or decryption).voidMac. update(ByteBuffer input)Updates thisMacinstance with the data from the specified buffer, starting atBuffer.position(), including the nextBuffer.remaining()bytes.voidCipher. updateAAD(ByteBuffer input)Continues a multi-part transformation (encryption or decryption) with Authenticated Additional Data (AAD). -
Uses of ByteBuffer in javax.net.ssl
Methods in javax.net.ssl with parameters of type ByteBuffer Modifier and Type Method Description SSLEngineResultSSLEngine. unwrap(ByteBuffer src, ByteBuffer dst)Decodes the incoming network data buffer into the application data buffer.SSLEngineResultSSLEngine. unwrap(ByteBuffer src, ByteBuffer[] dsts)Decodes the incoming network data buffer into the application data buffers.abstract SSLEngineResultSSLEngine. unwrap(ByteBuffer src, ByteBuffer[] dsts, int offset, int length)Decodes the incoming network data buffer into application data buffers.abstract SSLEngineResultSSLEngine. wrap(ByteBuffer[] srcs, int offset, int length, ByteBuffer dst)Encodes the outgoing application data buffers into the network data buffer.SSLEngineResultSSLEngine. wrap(ByteBuffer[] srcs, ByteBuffer dst)Encodes the outgoing application data buffers into the network data buffer.SSLEngineResultSSLEngine. wrap(ByteBuffer src, ByteBuffer dst)Encodes the outgoing application data buffer into the network data buffer. -
Uses of ByteBuffer in libcore.io
Methods in libcore.io with parameters of type ByteBuffer Modifier and Type Method Description intBlockGuardOs. pread(FileDescriptor fd, ByteBuffer buffer, long offset)intForwardingOs. pread(FileDescriptor fd, ByteBuffer buffer, long offset)intOs. pread(FileDescriptor fd, ByteBuffer buffer, long offset)intPosix. pread(FileDescriptor fd, ByteBuffer buffer, long offset)intBlockGuardOs. pwrite(FileDescriptor fd, ByteBuffer buffer, long offset)intForwardingOs. pwrite(FileDescriptor fd, ByteBuffer buffer, long offset)intOs. pwrite(FileDescriptor fd, ByteBuffer buffer, long offset)intPosix. pwrite(FileDescriptor fd, ByteBuffer buffer, long offset)intBlockGuardOs. read(FileDescriptor fd, ByteBuffer buffer)intForwardingOs. read(FileDescriptor fd, ByteBuffer buffer)intOs. read(FileDescriptor fd, ByteBuffer buffer)intPosix. read(FileDescriptor fd, ByteBuffer buffer)intBlockGuardOs. recvfrom(FileDescriptor fd, ByteBuffer buffer, int flags, InetSocketAddress srcAddress)intForwardingOs. recvfrom(FileDescriptor fd, ByteBuffer buffer, int flags, InetSocketAddress srcAddress)static intIoBridge. recvfrom(boolean isRead, FileDescriptor fd, ByteBuffer buffer, int flags, DatagramPacket packet, boolean isConnected)intOs. recvfrom(FileDescriptor fd, ByteBuffer buffer, int flags, InetSocketAddress srcAddress)intPosix. recvfrom(FileDescriptor fd, ByteBuffer buffer, int flags, InetSocketAddress srcAddress)intBlockGuardOs. sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port)intForwardingOs. sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port)static intIoBridge. sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port)intOs. sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port)intPosix. sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port)intBlockGuardOs. write(FileDescriptor fd, ByteBuffer buffer)intForwardingOs. write(FileDescriptor fd, ByteBuffer buffer)intOs. write(FileDescriptor fd, ByteBuffer buffer)intPosix. write(FileDescriptor fd, ByteBuffer buffer) -
Uses of ByteBuffer in org.apache.harmony.crypto.internal
Methods in org.apache.harmony.crypto.internal with parameters of type ByteBuffer Modifier and Type Method Description intNullCipherSpi. engineDoFinal(ByteBuffer input, ByteBuffer output)intNullCipherSpi. engineUpdate(ByteBuffer input, ByteBuffer output) -
Uses of ByteBuffer in org.conscrypt
Methods in org.conscrypt with parameters of type ByteBuffer Modifier and Type Method Description protected intSSLEngineAppData. placeTo(ByteBuffer[] dsts, int offset, int length)Places the data from the buffer into the array of destination ByteBuffer objects.protected voidSSLBufferedInput. setSourceBuffer(ByteBuffer in)Sets the buffer as a data sourceprotected voidSSLEngineDataStream. setSourceBuffers(ByteBuffer[] srcs, int offset, int length)SSLEngineResultSSLEngineImpl. unwrap(ByteBuffer src, ByteBuffer[] dsts, int offset, int length)Decodes one complete SSL/TLS record provided in the source buffer.SSLEngineResultSSLEngineImpl. wrap(ByteBuffer[] srcs, int offset, int len, ByteBuffer dst)Encodes the application data into SSL/TLS record. -
Uses of ByteBuffer in org.robovm.rt
Methods in org.robovm.rt that return ByteBuffer Modifier and Type Method Description static ByteBufferVM. newDirectByteBuffer(long address, long capacity) -
Uses of ByteBuffer in org.robovm.rt.bro
Methods in org.robovm.rt.bro that return ByteBuffer Modifier and Type Method Description static ByteBufferBufferMarshalers.BufferMarshaler. toByteBuffer(Class<?> cls, long handle, long flags, int d1)static ByteBufferBufferMarshalers.BufferMarshaler. toByteBuffer(Class<?> cls, long handle, long flags, int d1, int d2)static ByteBufferBufferMarshalers.BufferMarshaler. toByteBuffer(Class<?> cls, long handle, long flags, int d1, int d2, int d3)Methods in org.robovm.rt.bro with parameters of type ByteBuffer Modifier and Type Method Description static voidBufferMarshalers.BufferMarshaler. toNative(ByteBuffer buffer, long handle, long flags, int d1)static voidBufferMarshalers.BufferMarshaler. toNative(ByteBuffer buffer, long handle, long flags, int d1, int d2)static voidBufferMarshalers.BufferMarshaler. toNative(ByteBuffer buffer, long handle, long flags, int d1, int d2, int d3) -
Uses of ByteBuffer in org.robovm.rt.bro.ptr
Methods in org.robovm.rt.bro.ptr that return ByteBuffer Modifier and Type Method Description ByteBufferBytePtr. asByteBuffer(int n)Returns aByteBufferwhich reads and writes to the same memory location pointed to by thisBytePtr.