| Package | Description |
|---|---|
| java.lang |
Provides classes that are fundamental to the design of the Java programming language.
|
| java.nio |
Defines buffers, which are containers for data, and provides an overview of the other NIO packages.
|
| java.nio.channels |
Defines channels, which represent connections to entities that are capable of performing I/O operations, such as files and sockets; defines selectors, for multiplexed, non-blocking I/O operations.
|
| java.nio.charset |
Defines charsets, decoders, and encoders, for translating between bytes and Unicode characters.
|
| java.nio.file.attribute |
Interfaces and classes providing access to file and file system attributes.
|
| java.security |
Provides the classes and interfaces for the security framework.
|
| java.util |
Contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array).
|
| java.util.zip |
Provides classes for reading and writing the standard ZIP and GZIP file formats.
|
| javax.crypto |
Provides the classes and interfaces for cryptographic operations.
|
| javax.net.ssl |
Provides classes for the secure socket package.
|
| javax.smartcardio |
Java™ Smart Card I/O API
|
| Modifier and Type | Method and Description |
|---|---|
protected Class |
ClassLoader.defineClass(String
Converts a
ByteBuffer into an instance of class
Class, with an optional
ProtectionDomain.
|
| Modifier and Type | Class and Description |
|---|---|
class |
MappedByteBuffer
A direct byte buffer whose content is a memory-mapped region of a file.
|
| Modifier and Type | Method and Description |
|---|---|
static ByteBuffer |
ByteBuffer.allocate(int capacity)
Allocates a new byte buffer.
|
static ByteBuffer |
ByteBuffer.allocateDirect(int capacity)
Allocates a new direct byte buffer.
|
abstract ByteBuffer |
ByteBuffer.asReadOnlyBuffer()
Creates a new, read-only byte buffer that shares this buffer's content.
|
abstract ByteBuffer |
ByteBuffer.compact()
Compacts this buffer
(optional operation).
|
abstract ByteBuffer |
ByteBuffer.duplicate()
Creates a new byte buffer that shares this buffer's content.
|
ByteBuffer |
ByteBuffer.get(byte[] dst)
Relative bulk
get method.
|
ByteBuffer |
ByteBuffer.get(byte[] dst, int offset, int length)
Relative bulk
get method.
|
ByteBuffer |
ByteBuffer.order(ByteOrder
Modifies this buffer's byte order.
|
abstract ByteBuffer |
ByteBuffer.put(byte b)
Relative
put method
(optional operation).
|
ByteBuffer |
ByteBuffer.put(byte[] src)
Relative bulk
put method
(optional operation).
|
ByteBuffer |
ByteBuffer.put(byte[] src, int offset, int length)
Relative bulk
put method
(optional operation).
|
ByteBuffer |
ByteBuffer.put(ByteBuffer
Relative bulk
put method
(optional operation).
|
abstract ByteBuffer |
ByteBuffer.put(int index, byte b)
Absolute
put method
(optional operation).
|
abstract ByteBuffer |
ByteBuffer.putChar(char value)
Relative
put method for writing a char value
(optional operation).
|
abstract ByteBuffer |
ByteBuffer.putChar(int index, char value)
Absolute
put method for writing a char value
(optional operation).
|
abstract ByteBuffer |
ByteBuffer.putDouble(double value)
Relative
put method for writing a double value
(optional operation).
|
abstract ByteBuffer |
ByteBuffer.putDouble(int index, double value)
Absolute
put method for writing a double value
(optional operation).
|
abstract ByteBuffer |
ByteBuffer.putFloat(float value)
Relative
put method for writing a float value
(optional operation).
|
abstract ByteBuffer |
ByteBuffer.putFloat(int index, float value)
Absolute
put method for writing a float value
(optional operation).
|
abstract ByteBuffer |
ByteBuffer.putInt(int value)
Relative
put method for writing an int value
(optional operation).
|
abstract ByteBuffer |
ByteBuffer.putInt(int index, int value)
Absolute
put method for writing an int value
(optional operation).
|
abstract ByteBuffer |
ByteBuffer.putLong(int index, long value)
Absolute
put method for writing a long value
(optional operation).
|
abstract ByteBuffer |
ByteBuffer.putLong(long value)
Relative
put method for writing a long value
(optional operation).
|
abstract ByteBuffer |
ByteBuffer.putShort(int index, short value)
Absolute
put method for writing a short value
(optional operation).
|
abstract ByteBuffer |
ByteBuffer.putShort(short value)
Relative
put method for writing a short value
(optional operation).
|
abstract ByteBuffer |
ByteBuffer.slice()
Creates a new byte buffer whose content is a shared subsequence of this buffer's content.
|
static ByteBuffer |
ByteBuffer.wrap(byte[] array)
Wraps a byte array into a buffer.
|
static ByteBuffer |
ByteBuffer.wrap(byte[] array, int offset, int length)
Wraps a byte array into a buffer.
|
| Modifier and Type | Method and Description |
|---|---|
int |
ByteBuffer.compareTo(ByteBuffer
Compares this buffer to another.
|
ByteBuffer |
ByteBuffer.put(ByteBuffer
Relative bulk
put method
(optional operation).
|
| Modifier and Type | Method and Description |
|---|---|
abstract int |
FileChannel.read(ByteBuffer
Reads a sequence of bytes from this channel into the given buffer.
|
abstract int |
DatagramChannel.read(ByteBuffer
Reads a datagram from this channel.
|
abstract Future |
AsynchronousSocketChannel.read(ByteBuffer
|
int |
SeekableByteChannel.read(ByteBuffer
Reads a sequence of bytes from this channel into the given buffer.
|
abstract int |
SocketChannel.read(ByteBuffer
|
Future |
AsynchronousByteChannel.read(ByteBuffer
Reads a sequence of bytes from this channel into the given buffer.
|
int |
ReadableByteChannel.read(ByteBuffer
Reads a sequence of bytes from this channel into the given buffer.
|
long |
FileChannel.read(ByteBuffer
Reads a sequence of bytes from this channel into the given buffers.
|
long |
DatagramChannel.read(ByteBuffer
Reads a datagram from this channel.
|
long |
ScatteringByteChannel.read(ByteBuffer
Reads a sequence of bytes from this channel into the given buffers.
|
long |
SocketChannel.read(ByteBuffer
|
abstract long |
FileChannel.read(ByteBuffer
Reads a sequence of bytes from this channel into a subsequence of the given buffers.
|
abstract long |
DatagramChannel.read(ByteBuffer
Reads a datagram from this channel.
|
long |
ScatteringByteChannel.read(ByteBuffer
Reads a sequence of bytes from this channel into a subsequence of the given buffers.
|
abstract long |
SocketChannel.read(ByteBuffer
|
abstract <A> void |
AsynchronousSocketChannel.read(ByteBuffer
Reads a sequence of bytes from this channel into a subsequence of the given buffers.
|
<A> void |
AsynchronousSocketChannel.read(ByteBuffer
|
<A> void |
AsynchronousByteChannel.read(ByteBuffer
Reads a sequence of bytes from this channel into the given buffer.
|
abstract int |
FileChannel.read(ByteBuffer
Reads a sequence of bytes from this channel into the given buffer, starting at the given file position.
|
abstract Future |
AsynchronousFileChannel.read(ByteBuffer
Reads a sequence of bytes from this channel into the given buffer, starting at the given file position.
|
abstract <A> void |
AsynchronousFileChannel.read(ByteBuffer
Reads a sequence of bytes from this channel into the given buffer, starting at the given file position.
|
abstract <A> void |
AsynchronousSocketChannel.read(ByteBuffer
Reads a sequence of bytes from this channel into the given buffer.
|
abstract SocketAddress |
DatagramChannel.receive(ByteBuffer
Receives a datagram via this channel.
|
abstract int |
DatagramChannel.send(ByteBuffer
Sends a datagram via this channel.
|
abstract int |
FileChannel.write(ByteBuffer
Writes a sequence of bytes to this channel from the given buffer.
|
abstract int |
DatagramChannel.write(ByteBuffer
Writes a datagram to this channel.
|
int |
WritableByteChannel.write(ByteBuffer
Writes a sequence of bytes to this channel from the given buffer.
|
abstract Future |
AsynchronousSocketChannel.write(ByteBuffer
|
int |
SeekableByteChannel.write(ByteBuffer
Writes a sequence of bytes to this channel from the given buffer.
|
abstract int |
SocketChannel.write(ByteBuffer
|
Future |
AsynchronousByteChannel.write(ByteBuffer
Writes a sequence of bytes to this channel from the given buffer.
|
long |
FileChannel.write(ByteBuffer
Writes a sequence of bytes to this channel from the given buffers.
|
long |
DatagramChannel.write(ByteBuffer
Writes a datagram to this channel.
|
long |
SocketChannel.write(ByteBuffer
|
long |
GatheringByteChannel.write(ByteBuffer
Writes a sequence of bytes to this channel from the given buffers.
|
abstract long |
FileChannel.write(ByteBuffer
Writes a sequence of bytes to this channel from a subsequence of the given buffers.
|
abstract long |
DatagramChannel.write(ByteBuffer
Writes a datagram to this channel.
|
abstract long |
SocketChannel.write(ByteBuffer
|
long |
GatheringByteChannel.write(ByteBuffer
Writes a sequence of bytes to this channel from a subsequence of the given buffers.
|
abstract <A> void |
AsynchronousSocketChannel.write(ByteBuffer
Writes a sequence of bytes to this channel from a subsequence of the given buffers.
|
<A> void |
AsynchronousSocketChannel.write(ByteBuffer
|
<A> void |
AsynchronousByteChannel.write(ByteBuffer
Writes a sequence of bytes to this channel from the given buffer.
|
abstract int |
FileChannel.write(ByteBuffer
Writes a sequence of bytes to this channel from the given buffer, starting at the given file position.
|
abstract Future |
AsynchronousFileChannel.write(ByteBuffer
Writes a sequence of bytes to this channel from the given buffer, starting at the given file position.
|
abstract <A> void |
AsynchronousFileChannel.write(ByteBuffer
Writes a sequence of bytes to this channel from the given buffer, starting at the given file position.
|
abstract <A> void |
AsynchronousSocketChannel.write(ByteBuffer
Writes a sequence of bytes to this channel from the given buffer.
|
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
Charset.encode(CharBuffer
Convenience method that encodes Unicode characters into bytes in this charset.
|
ByteBuffer |
CharsetEncoder.encode(CharBuffer
Convenience method that encodes the remaining content of a single input character buffer into a newly-allocated byte buffer.
|
ByteBuffer |
Charset.encode(String
Convenience method that encodes a string into bytes in this charset.
|
| Modifier and Type | Method and Description |
|---|---|
CharBuffer |
Charset.decode(ByteBuffer
Convenience method that decodes bytes in this charset into Unicode characters.
|
CharBuffer |
CharsetDecoder.decode(ByteBuffer
Convenience method that decodes the remaining content of a single input byte buffer into a newly-allocated character buffer.
|
CoderResult |
CharsetDecoder.decode(ByteBuffer
Decodes as many bytes as possible from the given input buffer, writing the results to the given output buffer.
|
protected abstract CoderResult |
CharsetDecoder.decodeLoop(ByteBuffer
Decodes one or more bytes into one or more characters.
|
CoderResult |
CharsetEncoder.encode(CharBuffer
Encodes as many characters as possible from the given input buffer, writing the results to the given output buffer.
|
protected abstract CoderResult |
CharsetEncoder.encodeLoop(CharBuffer
Encodes one or more characters into one or more bytes.
|
CoderResult |
CharsetEncoder.flush(ByteBuffer
Flushes this encoder.
|
protected CoderResult |
CharsetEncoder.implFlush(ByteBuffer
Flushes this encoder.
|
| Modifier and Type | Method and Description |
|---|---|
int |
UserDefinedFileAttributeView.read(String
Read the value of a user-defined attribute into a buffer.
|
int |
UserDefinedFileAttributeView.write(String
Writes the value of a user-defined attribute from a buffer.
|
| Modifier and Type | Method and Description |
|---|---|
protected Class |
SecureClassLoader.defineClass(String
Converts a
ByteBuffer into an instance of class
Class, with an optional CodeSource.
|
protected void |
SignatureSpi.engineUpdate(ByteBuffer
Updates the data to be signed or verified using the specified ByteBuffer.
|
protected void |
MessageDigestSpi.engineUpdate(ByteBuffer
Update the digest using the specified ByteBuffer.
|
void |
Signature.update(ByteBuffer
Updates the data to be signed or verified using the specified ByteBuffer.
|
void |
MessageDigest.update(ByteBuffer
Update the digest using the specified ByteBuffer.
|
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
Base64.Decoder.decode(ByteBuffer
Decodes all bytes from the input byte buffer using the
Base64 encoding scheme, writing the results into a newly-allocated ByteBuffer.
|
ByteBuffer |
Base64.Encoder.encode(ByteBuffer
Encodes all remaining bytes from the specified byte buffer into a newly-allocated ByteBuffer using the
Base64 encoding scheme.
|
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
Base64.Decoder.decode(ByteBuffer
Decodes all bytes from the input byte buffer using the
Base64 encoding scheme, writing the results into a newly-allocated ByteBuffer.
|
ByteBuffer |
Base64.Encoder.encode(ByteBuffer
Encodes all remaining bytes from the specified byte buffer into a newly-allocated ByteBuffer using the
Base64 encoding scheme.
|
static BitSet |
BitSet.valueOf(ByteBuffer
Returns a new bit set containing all the bits in the given byte buffer between its position and limit.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Adler32.update(ByteBuffer
Updates the checksum with the bytes from the specified buffer.
|
void |
CRC32.update(ByteBuffer
Updates the checksum with the bytes from the specified buffer.
|
| Modifier and Type | Method and Description |
|---|---|
int |
Cipher.doFinal(ByteBuffer
Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation.
|
protected int |
CipherSpi.engineDoFinal(ByteBuffer
Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation.
|
protected void |
MacSpi.engineUpdate(ByteBuffer
Processes
input.remaining() bytes in the ByteBuffer
input, starting at
input.position().
|
protected int |
CipherSpi.engineUpdate(ByteBuffer
Continues a multiple-part encryption or decryption operation (depending on how this cipher was initialized), processing another data part.
|
protected void |
CipherSpi.engineUpdateAAD(ByteBuffer
Continues a multi-part update of the Additional Authentication Data (AAD).
|
void |
Mac.update(ByteBuffer
Processes
input.remaining() bytes in the ByteBuffer
input, starting at
input.position().
|
int |
Cipher.update(ByteBuffer
Continues a multiple-part encryption or decryption operation (depending on how this cipher was initialized), processing another data part.
|
void |
Cipher.updateAAD(ByteBuffer
Continues a multi-part update of the Additional Authentication Data (AAD).
|
| Modifier and Type | Method and Description |
|---|---|
SSLEngineResult |
SSLEngine.unwrap(ByteBuffer
Attempts to decode SSL/TLS network data into a plaintext application data buffer.
|
SSLEngineResult |
SSLEngine.unwrap(ByteBuffer
Attempts to decode SSL/TLS network data into a sequence of plaintext application data buffers.
|
SSLEngineResult |
SSLEngine.unwrap(ByteBuffer
Attempts to decode SSL/TLS network data into a sequence of plaintext application data buffers.
|
abstract SSLEngineResult |
SSLEngine.unwrap(ByteBuffer
Attempts to decode SSL/TLS network data into a subsequence of plaintext application data buffers.
|
abstract SSLEngineResult |
SSLEngine.unwrap(ByteBuffer
Attempts to decode SSL/TLS network data into a subsequence of plaintext application data buffers.
|
SSLEngineResult |
SSLEngine.wrap(ByteBuffer
Attempts to encode plaintext bytes from a sequence of data buffers into SSL/TLS network data.
|
SSLEngineResult |
SSLEngine.wrap(ByteBuffer
Attempts to encode plaintext bytes from a sequence of data buffers into SSL/TLS network data.
|
abstract SSLEngineResult |
SSLEngine.wrap(ByteBuffer
Attempts to encode plaintext bytes from a subsequence of data buffers into SSL/TLS network data.
|
abstract SSLEngineResult |
SSLEngine.wrap(ByteBuffer
Attempts to encode plaintext bytes from a subsequence of data buffers into SSL/TLS network data.
|
SSLEngineResult |
SSLEngine.wrap(ByteBuffer
Attempts to encode a buffer of plaintext application data into SSL/TLS network data.
|
| Modifier and Type | Method and Description |
|---|---|
abstract int |
CardChannel.transmit(ByteBuffer
Transmits the command APDU stored in the command ByteBuffer and receives the response APDU in the response ByteBuffer.
|
| Constructor and Description | |
|---|---|
CommandAPDU(ByteBuffer
Creates a CommandAPDU from the ByteBuffer containing the complete APDU contents (header and body).
|