Spec-Zone .ru
спецификации, руководства, описания, API
|
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Package | Description |
---|---|
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. |
Uses of CompletionHandler in java.nio.channels |
---|
Modifier and Type | Method and Description | |
---|---|---|
abstract
|
AsynchronousServerSocketChannel.accept(A attachment,
CompletionHandler<AsynchronousSocketChannel,? super A> handler)
Accepts a connection. |
|
abstract
|
AsynchronousSocketChannel.connect(SocketAddress remote,
A attachment,
CompletionHandler<Void,? super A> handler)
Connects this channel. |
|
|
AsynchronousFileChannel.lock(A attachment,
CompletionHandler<FileLock,? super A> handler)
Acquires an exclusive lock on this channel's file. |
|
abstract
|
AsynchronousFileChannel.lock(long position,
long size,
boolean shared,
A attachment,
CompletionHandler<FileLock,? super A> handler)
Acquires a lock on the given region of this channel's file. |
|
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
|
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
|
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
|
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. |
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Copyright © 1993, 2010, Oracle Corporation. All rights reserved.