Package | Description |
---|---|
java.io |
Provides for system input and output through data streams and the file system.
|
java.nio.channels |
Defines channels, which represent connections to entities that are capable of
performing I/O operations, such as files.
|
java.nio.file |
Defines interfaces and classes for the Java virtual machine to access files,
file attributes, and file systems.
|
java.util |
Contains the collections framework, legacy collection classes, event model,
date and time facilities, random-number generator, and miscellaneous utility
classes.
|
Modifier and Type | Interface and Description |
---|---|
interface |
Closeable
A
Closeable is a source or destination of data that can be closed. |
Modifier and Type | Class and Description |
---|---|
class |
BufferedReader
Reads text from a character-input stream, buffering characters so as to
provide for the efficient reading of characters, arrays, and lines.
|
class |
BufferedWriter
Writes text to a character-output stream, buffering characters so as to
provide for the efficient writing of single characters, arrays, and strings.
|
class |
ByteArrayInputStream
A
ByteArrayInputStream contains
an internal buffer that contains bytes that
may be read from the stream. |
class |
ByteArrayOutputStream
This class implements an output stream in which the data is
written into a byte array.
|
class |
DataInputStream
A data input stream lets an application read primitive Java data
types from an underlying input stream in a machine-independent
way.
|
class |
DataOutputStream
A data output stream lets an application write primitive Java data
types to an output stream in a portable way.
|
class |
InputStream
This abstract class is the superclass of all classes representing
an input stream of bytes.
|
class |
InputStreamReader
An InputStreamReader is a bridge from byte streams to character streams: It
reads bytes and decodes them into characters using a specified
charset . |
class |
OutputStream
This abstract class is the superclass of all classes representing
an output stream of bytes.
|
class |
OutputStreamWriter
An OutputStreamWriter is a bridge from character streams to byte streams:
Characters written to it are encoded into bytes using a specified
charset . |
class |
PrintStream
A
PrintStream adds functionality to another output stream,
namely the ability to print representations of various data values
conveniently. |
class |
Reader
Abstract class for reading character streams.
|
class |
Writer
Abstract class for writing to character streams.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ByteChannel
A channel that can read and write bytes.
|
interface |
Channel
A nexus for I/O operations.
|
interface |
ReadableByteChannel
A channel that can read bytes.
|
interface |
SeekableByteChannel
A byte channel that maintains a current position and allows the
position to be changed.
|
interface |
WritableByteChannel
A channel that can write bytes.
|
Modifier and Type | Class and Description |
---|---|
class |
FileChannel
A channel for reading, writing, mapping, and manipulating a file.
|
Modifier and Type | Interface and Description |
---|---|
interface |
DirectoryStream<T>
An object to iterate over the entries in a directory.
|
Modifier and Type | Class and Description |
---|---|
class |
FileSystem
Provides an interface to a file system and is the factory for objects to
access files and other objects in the file system.
|
Modifier and Type | Class and Description |
---|---|
class |
Formatter
An interpreter for printf-style format strings.
|
Copyright (c) 2014, Oracle and/or its affiliates. All Rights Reserved. Use of this specification is subject to license terms.