Spec-Zone .ru
спецификации, руководства, описания, API
|
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
PREV NEXT | FRAMES NO FRAMES |
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). |
javax.crypto | Provides the classes and interfaces for cryptographic operations. |
javax.net.ssl | Provides classes for the secure socket package. |
Uses of ByteBuffer in java.lang |
---|
Modifier and Type | Method and Description |
---|---|
protected Class<?> |
ClassLoader.defineClass(String name,
ByteBuffer b,
ProtectionDomain protectionDomain)
Converts a ByteBuffer
into an instance of class Class,
with an optional ProtectionDomain. |
Uses of ByteBuffer in java.nio |
---|
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 bo)
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 src)
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 that)
Compares this buffer to another. |
ByteBuffer |
ByteBuffer.put(ByteBuffer src)
Relative bulk put method (optional operation). |
Uses of ByteBuffer in java.nio.channels |
---|
Modifier and Type | Method and Description | |
---|---|---|
abstract Future<Integer> |
AsynchronousSocketChannel.read(ByteBuffer dst)
|
|
Future<Integer> |
AsynchronousByteChannel.read(ByteBuffer dst)
Reads a sequence of bytes from this channel into the given buffer. |
|
abstract int |
SocketChannel.read(ByteBuffer dst)
|
|
abstract int |
DatagramChannel.read(ByteBuffer dst)
Reads a datagram from this channel. |
|
abstract int |
FileChannel.read(ByteBuffer dst)
Reads a sequence of bytes from this channel into the given buffer. |
|
int |
ReadableByteChannel.read(ByteBuffer dst)
Reads a sequence of bytes from this channel into the given buffer. |
|
int |
SeekableByteChannel.read(ByteBuffer dst)
Reads a sequence of bytes from this channel into the given buffer. |
|
long |
SocketChannel.read(ByteBuffer[] dsts)
|
|
long |
DatagramChannel.read(ByteBuffer[] dsts)
Reads a datagram from this channel. |
|
long |
ScatteringByteChannel.read(ByteBuffer[] dsts)
Reads a sequence of bytes from this channel into the given buffers. |
|
long |
FileChannel.read(ByteBuffer[] dsts)
Reads a sequence of bytes from this channel into the given buffers. |
|
abstract long |
SocketChannel.read(ByteBuffer[] dsts,
int offset,
int length)
|
|
abstract long |
DatagramChannel.read(ByteBuffer[] dsts,
int offset,
int length)
Reads a datagram from this channel. |
|
long |
ScatteringByteChannel.read(ByteBuffer[] dsts,
int offset,
int length)
Reads a sequence of bytes from this channel into a subsequence of the given buffers. |
|
abstract long |
FileChannel.read(ByteBuffer[] dsts,
int offset,
int length)
Reads a sequence of bytes from this channel into a subsequence of the given buffers. |
|
abstract
|
AsynchronousSocketChannel.read(ByteBuffer[] dsts,
int offset,
int length,
long timeout,
TimeUnit unit,
A attachment,
CompletionHandler<Long,? super A> handler)
Reads a sequence of bytes from this channel into a subsequence of the given buffers. |
|
|
AsynchronousSocketChannel.read(ByteBuffer dst,
A attachment,
CompletionHandler<Integer,? super A> handler)
|
|
|
AsynchronousByteChannel.read(ByteBuffer dst,
A attachment,
CompletionHandler<Integer,? super A> handler)
Reads a sequence of bytes from this channel into the given buffer. |
|
abstract Future<Integer> |
AsynchronousFileChannel.read(ByteBuffer dst,
long position)
Reads a sequence of bytes from this channel into the given buffer, starting at the given file position. |
|
abstract int |
FileChannel.read(ByteBuffer dst,
long position)
Reads a sequence of bytes from this channel into the given buffer, starting at the given file position. |
|
abstract
|
AsynchronousFileChannel.read(ByteBuffer dst,
long position,
A attachment,
CompletionHandler<Integer,? super A> handler)
Reads a sequence of bytes from this channel into the given buffer, starting at the given file position. |
|
abstract
|
AsynchronousSocketChannel.read(ByteBuffer dst,
long timeout,
TimeUnit unit,
A attachment,
CompletionHandler<Integer,? super A> handler)
Reads a sequence of bytes from this channel into the given buffer. |
|
abstract SocketAddress |
DatagramChannel.receive(ByteBuffer dst)
Receives a datagram via this channel. |
|
abstract int |
DatagramChannel.send(ByteBuffer src,
SocketAddress target)
Sends a datagram via this channel. |
|
abstract Future<Integer> |
AsynchronousSocketChannel.write(ByteBuffer src)
|
|
Future<Integer> |
AsynchronousByteChannel.write(ByteBuffer src)
Writes a sequence of bytes to this channel from the given buffer. |
|
abstract int |
SocketChannel.write(ByteBuffer src)
|
|
abstract int |
DatagramChannel.write(ByteBuffer src)
Writes a datagram to this channel. |
|
abstract int |
FileChannel.write(ByteBuffer src)
Writes a sequence of bytes to this channel from the given buffer. |
|
int |
SeekableByteChannel.write(ByteBuffer src)
Writes a sequence of bytes to this channel from the given buffer. |
|
int |
WritableByteChannel.write(ByteBuffer src)
Writes a sequence of bytes to this channel from the given buffer. |
|
long |
SocketChannel.write(ByteBuffer[] srcs)
|
|
long |
DatagramChannel.write(ByteBuffer[] srcs)
Writes a datagram to this channel. |
|
long |
GatheringByteChannel.write(ByteBuffer[] srcs)
Writes a sequence of bytes to this channel from the given buffers. |
|
long |
FileChannel.write(ByteBuffer[] srcs)
Writes a sequence of bytes to this channel from the given buffers. |
|
abstract long |
SocketChannel.write(ByteBuffer[] srcs,
int offset,
int length)
|
|
abstract long |
DatagramChannel.write(ByteBuffer[] srcs,
int offset,
int length)
Writes a datagram to this 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. |
|
abstract long |
FileChannel.write(ByteBuffer[] srcs,
int offset,
int length)
Writes a sequence of bytes to this channel from a subsequence of the given buffers. |
|
abstract
|
AsynchronousSocketChannel.write(ByteBuffer[] srcs,
int offset,
int length,
long timeout,
TimeUnit unit,
A attachment,
CompletionHandler<Long,? super A> handler)
Writes a sequence of bytes to this channel from a subsequence of the given buffers. |
|
|
AsynchronousSocketChannel.write(ByteBuffer src,
A attachment,
CompletionHandler<Integer,? super A> handler)
|
|
|
AsynchronousByteChannel.write(ByteBuffer src,
A attachment,
CompletionHandler<Integer,? super A> handler)
Writes a sequence of bytes to this channel from the given buffer. |
|
abstract Future<Integer> |
AsynchronousFileChannel.write(ByteBuffer src,
long position)
Writes a sequence of bytes to this channel from the given buffer, starting at the given file position. |
|
abstract int |
FileChannel.write(ByteBuffer src,
long position)
Writes a sequence of bytes to this channel from the given buffer, starting at the given file position. |
|
abstract
|
AsynchronousFileChannel.write(ByteBuffer src,
long position,
A attachment,
CompletionHandler<Integer,? super A> handler)
Writes a sequence of bytes to this channel from the given buffer, starting at the given file position. |
|
abstract
|
AsynchronousSocketChannel.write(ByteBuffer src,
long timeout,
TimeUnit unit,
A attachment,
CompletionHandler<Integer,? super A> handler)
Writes a sequence of bytes to this channel from the given buffer. |
Uses of ByteBuffer in java.nio.charset |
---|
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
CharsetEncoder.encode(CharBuffer in)
Convenience method that encodes the remaining content of a single input character buffer into a newly-allocated byte buffer. |
ByteBuffer |
Charset.encode(CharBuffer cb)
Convenience method that encodes Unicode characters into bytes in this charset. |
ByteBuffer |
Charset.encode(String str)
Convenience method that encodes a string into bytes in this charset. |
Modifier and Type | Method and Description |
---|---|
CharBuffer |
CharsetDecoder.decode(ByteBuffer in)
Convenience method that decodes the remaining content of a single input byte buffer into a newly-allocated character buffer. |
CharBuffer |
Charset.decode(ByteBuffer bb)
Convenience method that decodes bytes in this charset into Unicode characters. |
CoderResult |
CharsetDecoder.decode(ByteBuffer in,
CharBuffer out,
boolean endOfInput)
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 in,
CharBuffer out)
Decodes one or more bytes into one or more characters. |
CoderResult |
CharsetEncoder.encode(CharBuffer in,
ByteBuffer out,
boolean endOfInput)
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 in,
ByteBuffer out)
Encodes one or more characters into one or more bytes. |
CoderResult |
CharsetEncoder.flush(ByteBuffer out)
Flushes this encoder. |
protected CoderResult |
CharsetEncoder.implFlush(ByteBuffer out)
Flushes this encoder. |
Uses of ByteBuffer in java.nio.file.attribute |
---|
Modifier and Type | Method and Description |
---|---|
int |
UserDefinedFileAttributeView.read(String name,
ByteBuffer dst)
Read the value of a user-defined attribute into a buffer. |
int |
UserDefinedFileAttributeView.write(String name,
ByteBuffer src)
Writes the value of a user-defined attribute from a buffer. |
Uses of ByteBuffer in java.security |
---|
Modifier and Type | Method and Description |
---|---|
protected Class<?> |
SecureClassLoader.defineClass(String name,
ByteBuffer b,
CodeSource cs)
Converts a ByteBuffer
into an instance of class Class, with an optional CodeSource. |
protected void |
SignatureSpi.engineUpdate(ByteBuffer input)
Updates the data to be signed or verified using the specified ByteBuffer. |
protected void |
MessageDigestSpi.engineUpdate(ByteBuffer input)
Update the digest using the specified ByteBuffer. |
void |
Signature.update(ByteBuffer data)
Updates the data to be signed or verified using the specified ByteBuffer. |
void |
MessageDigest.update(ByteBuffer input)
Update the digest using the specified ByteBuffer. |
Uses of ByteBuffer in java.util |
---|
Modifier and Type | Method and Description |
---|---|
static BitSet |
BitSet.valueOf(ByteBuffer bb)
Returns a new bit set containing all the bits in the given byte buffer between its position and limit. |
Uses of ByteBuffer in javax.crypto |
---|
Modifier and Type | Method and Description |
---|---|
int |
Cipher.doFinal(ByteBuffer input,
ByteBuffer output)
Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation. |
protected int |
CipherSpi.engineDoFinal(ByteBuffer input,
ByteBuffer output)
Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation. |
protected void |
MacSpi.engineUpdate(ByteBuffer input)
Processes input.remaining() bytes in the ByteBuffer
input , starting at input.position() . |
protected int |
CipherSpi.engineUpdate(ByteBuffer input,
ByteBuffer output)
Continues a multiple-part encryption or decryption operation (depending on how this cipher was initialized), processing another data part. |
void |
Mac.update(ByteBuffer input)
Processes input.remaining() bytes in the ByteBuffer
input , starting at input.position() . |
int |
Cipher.update(ByteBuffer input,
ByteBuffer output)
Continues a multiple-part encryption or decryption operation (depending on how this cipher was initialized), processing another data part. |
Uses of ByteBuffer in javax.net.ssl |
---|
Modifier and Type | Method and Description |
---|---|
SSLEngineResult |
SSLEngine.unwrap(ByteBuffer src,
ByteBuffer dst)
Attempts to decode SSL/TLS network data into a plaintext application data buffer. |
SSLEngineResult |
SSLEngine.unwrap(ByteBuffer src,
ByteBuffer[] dsts)
Attempts to decode SSL/TLS network data into a sequence of plaintext application data buffers. |
SSLEngineResult |
SSLEngine.unwrap(ByteBuffer src,
ByteBuffer[] dsts)
Attempts to decode SSL/TLS network data into a sequence of plaintext application data buffers. |
abstract SSLEngineResult |
SSLEngine.unwrap(ByteBuffer src,
ByteBuffer[] dsts,
int offset,
int length)
Attempts to decode SSL/TLS network data into a subsequence of plaintext application data buffers. |
abstract SSLEngineResult |
SSLEngine.unwrap(ByteBuffer src,
ByteBuffer[] dsts,
int offset,
int length)
Attempts to decode SSL/TLS network data into a subsequence of plaintext application data buffers. |
SSLEngineResult |
SSLEngine.wrap(ByteBuffer[] srcs,
ByteBuffer dst)
Attempts to encode plaintext bytes from a sequence of data buffers into SSL/TLS network data. |
SSLEngineResult |
SSLEngine.wrap(ByteBuffer[] srcs,
ByteBuffer dst)
Attempts to encode plaintext bytes from a sequence of data buffers into SSL/TLS network data. |
abstract SSLEngineResult |
SSLEngine.wrap(ByteBuffer[] srcs,
int offset,
int length,
ByteBuffer dst)
Attempts to encode plaintext bytes from a subsequence of data buffers into SSL/TLS network data. |
abstract SSLEngineResult |
SSLEngine.wrap(ByteBuffer[] srcs,
int offset,
int length,
ByteBuffer dst)
Attempts to encode plaintext bytes from a subsequence of data buffers into SSL/TLS network data. |
SSLEngineResult |
SSLEngine.wrap(ByteBuffer src,
ByteBuffer dst)
Attempts to encode a buffer of plaintext application data into SSL/TLS network data. |
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Copyright © 1993, 2010, Oracle Corporation. All rights reserved.