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 ReadableByteChannel |
Channels.newChannel(InputStream in)
Constructs a channel that reads bytes from the given stream.
|
Modifier and Type | Method and Description |
---|---|
static InputStream |
Channels.newInputStream(ReadableByteChannel ch)
Constructs a stream that reads bytes from the given channel.
|
Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. Use of this specification is subject to license terms.