Example usage for Java java.nio.channels AsynchronousFileChannel fields, constructors, methods, implement or subclass
The text is from its open source code.
void | lock(A attachment, CompletionHandler Acquires an exclusive lock on this channel's file. |
AsynchronousFileChannel | open(Path file, Set extends OpenOption> options, ExecutorService executor, FileAttribute>... attrs) Opens or creates a file for reading and/or writing, returning an asynchronous file channel to access the file. |
AsynchronousFileChannel | open(Path file, OpenOption... options) Opens or creates a file for reading and/or writing, returning an asynchronous file channel to access the file. |
Future | read(ByteBuffer dst, long position) Reads a sequence of bytes from this channel into the given buffer, starting at the given file position. |
void | read(ByteBuffer dst, long position, A attachment, CompletionHandler Reads a sequence of bytes from this channel into the given buffer, starting at the given file position. |
Future | write(ByteBuffer src, long position) Writes a sequence of bytes to this channel from the given buffer, starting at the given file position. |
void | write(ByteBuffer src, long position, A attachment, CompletionHandler Writes a sequence of bytes to this channel from the given buffer, starting at the given file position. |