Java java.nio.channels AsynchronousFileChannel fields, constructors, methods, implement or subclass

Example usage for Java java.nio.channels AsynchronousFileChannel fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.nio.channels AsynchronousFileChannel.

The text is from its open source code.

Method

voidlock(A attachment, CompletionHandler handler)
Acquires an exclusive lock on this channel's file.
AsynchronousFileChannelopen(Path file, Set options, ExecutorService executor, FileAttribute... attrs)
Opens or creates a file for reading and/or writing, returning an asynchronous file channel to access the file.
AsynchronousFileChannelopen(Path file, OpenOption... options)
Opens or creates a file for reading and/or writing, returning an asynchronous file channel to access the file.
Futureread(ByteBuffer dst, long position)
Reads a sequence of bytes from this channel into the given buffer, starting at the given file position.
voidread(ByteBuffer dst, long position, A attachment, CompletionHandler handler)
Reads a sequence of bytes from this channel into the given buffer, starting at the given file position.
Futurewrite(ByteBuffer src, long position)
Writes a sequence of bytes to this channel from the given buffer, starting at the given file position.
voidwrite(ByteBuffer src, long position, A attachment, CompletionHandler handler)
Writes a sequence of bytes to this channel from the given buffer, starting at the given file position.