Package | Description |
---|---|
java.nio.channels |
Defines channels, which represent connections to entities that are capable of
performing I/O operations, such as files.
|
Modifier and Type | Method and Description |
---|---|
static FileChannel |
FileChannel.open(Path path,
OpenOption... options)
Opens or creates a file, returning a file channel to access the file.
|
static FileChannel |
FileChannel.open(Path path,
Set<? extends OpenOption> options,
FileAttribute<?>... attrs)
Opens or creates a file, returning a file channel to access the file.
|
abstract FileChannel |
FileChannel.position(long newPosition)
Sets this channel's file position.
|
abstract FileChannel |
FileChannel.truncate(long size)
Truncates this channel's file to the given size.
|
Copyright (c) 2014, Oracle and/or its affiliates. All Rights Reserved. Use of this specification is subject to license terms.