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 | Interface and Description |
---|---|
interface |
ByteChannel
A channel that can read and write bytes.
|
interface |
SeekableByteChannel
A byte channel that maintains a current position and allows the
position to be changed.
|
Modifier and Type | Class and Description |
---|---|
class |
FileChannel
A channel for reading, writing, mapping, and manipulating a file.
|
Modifier and Type | Method and Description |
---|---|
static WritableByteChannel |
Channels.newChannel(OutputStream out)
Constructs a channel that writes bytes to the given stream.
|
Modifier and Type | Method and Description |
---|---|
static OutputStream |
Channels.newOutputStream(WritableByteChannel ch)
Constructs a stream that writes bytes to the given channel.
|
Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. Use of this specification is subject to license terms.