java.io |
Provides for system input and output through data streams,
serialization and the file system.
Unless otherwise noted, passing a null argument to a constructor
or method in any class or interface in this package will cause a
NullPointerException to be thrown.
Package Specification
Related Documentation
For overviews, tutorials, examples, guides, and tool documentation,
please see:
@since JDK1.0
|
Java Source File Name | Type | Comment |
Bits.java | Class | Utility methods for packing/unpacking primitive values in/out of byte arrays
using big-endian byte ordering. |
BufferedInputStream.java | Class | A BufferedInputStream adds
functionality to another input stream-namely,
the ability to buffer the input and to
support the mark and reset
methods. |
BufferedOutputStream.java | Class | The class implements a buffered output stream. |
BufferedReader.java | Class | Reads text from a character-input stream, buffering characters so as to
provide for the efficient reading of characters, arrays, and lines.
The buffer size may be specified, or the default size may be used. |
BufferedWriter.java | Class | Writes text to a character-output stream, buffering characters so as to
provide for the efficient writing of single characters, arrays, and strings.
The buffer size may be specified, or the default size may be accepted.
The default is large enough for most purposes.
A newLine() method is provided, which uses the platform's own notion of
line separator as defined by the system property line.separator.
Not all platforms use the newline character ('\n') to terminate lines.
Calling this method to terminate each output line is therefore preferred to
writing a newline character directly.
In general, a Writer sends its output immediately to the underlying
character or byte stream. |
ByteArrayInputStream.java | Class | A ByteArrayInputStream contains
an internal buffer that contains bytes that
may be read from the stream. |
ByteArrayOutputStream.java | Class | This class implements an output stream in which the data is
written into a byte array. |
CharArrayReader.java | Class | This class implements a character buffer that can be used as a
character-input stream. |
CharArrayWriter.java | Class | This class implements a character buffer that can be used as an Writer.
The buffer automatically grows when data is written to the stream. |
CharConversionException.java | Class | Base class for character conversion exceptions. |
Closeable.java | Interface | A Closeable is a source or destination of data that can be closed. |
Console.java | Class | Methods to access the character-based console device, if any, associated
with the current Java virtual machine.
Whether a virtual machine has a console is dependent upon the
underlying platform and also upon the manner in which the virtual
machine is invoked. |
DataInput.java | Interface | The DataInput interface provides
for reading bytes from a binary stream and
reconstructing from them data in any of
the Java primitive types. |
DataInputStream.java | Class | A data input stream lets an application read primitive Java data
types from an underlying input stream in a machine-independent
way. |
DataOutput.java | Interface | The DataOutput interface provides
for converting data from any of the Java
primitive types to a series of bytes and
writing these bytes to a binary stream. |
DataOutputStream.java | Class | A data output stream lets an application write primitive Java data
types to an output stream in a portable way. |
DeleteOnExitHook.java | Class | This class holds a set of filenames to be deleted on VM exit through a shutdown hook. |
EOFException.java | Class | Signals that an end of file or end of stream has been reached
unexpectedly during input.
This exception is mainly used by data input streams to signal end of
stream. |
ExpiringCache.java | Class | |
Externalizable.java | Interface | Only the identity of the class of an Externalizable instance is
written in the serialization stream and it is the responsibility
of the class to save and restore the contents of its instances.
The writeExternal and readExternal methods of the Externalizable
interface are implemented by a class to give the class complete
control over the format and contents of the stream for an object
and its supertypes. |
File.java | Class | An abstract representation of file and directory pathnames.
User interfaces and operating systems use system-dependent pathname
strings to name files and directories. |
FileFilter.java | Interface | A filter for abstract pathnames. |
FileInputStream.java | Class | A FileInputStream obtains input bytes
from a file in a file system. |
FilenameFilter.java | Interface | Instances of classes that implement this interface are used to
filter filenames. |
FileNotFoundException.java | Class | Signals that an attempt to open the file denoted by a specified pathname
has failed.
This exception will be thrown by the
FileInputStream ,
FileOutputStream , and
RandomAccessFile constructors when a file
with the specified pathname does not exist. |
FileOutputStream.java | Class | A file output stream is an output stream for writing data to a
File or to a FileDescriptor . |
FilePermission.java | Class | This class represents access to a file or directory. |
FileReader.java | Class | Convenience class for reading character files. |
FileSystem.java | Class | Package-private abstract class for the local filesystem abstraction. |
FileWriter.java | Class | Convenience class for writing character files. |
FilterInputStream.java | Class | A FilterInputStream contains
some other input stream, which it uses as
its basic source of data, possibly transforming
the data along the way or providing additional
functionality. |
FilterOutputStream.java | Class | This class is the superclass of all classes that filter output
streams. |
FilterReader.java | Class | Abstract class for reading filtered character streams.
The abstract class FilterReader itself
provides default methods that pass all requests to
the contained stream. |
FilterWriter.java | Class | Abstract class for writing filtered character streams.
The abstract class FilterWriter itself
provides default methods that pass all requests to the
contained stream. |
Flushable.java | Interface | A Flushable is a destination of data that can be flushed. |
InputStream.java | Class | This abstract class is the superclass of all classes representing
an input stream of bytes. |
InputStreamReader.java | Class | An InputStreamReader is a bridge from byte streams to character streams: It
reads bytes and decodes them into characters using a specified
java.nio.charset.Charset charset . |
InterruptedIOException.java | Class | Signals that an I/O operation has been interrupted. |
InvalidClassException.java | Class | Thrown when the Serialization runtime detects one of the following
problems with a Class. |
InvalidObjectException.java | Class | Indicates that one or more deserialized objects failed validation
tests. |
IOError.java | Class | Thrown when a serious I/O error has occurred. |
IOException.java | Class | Signals that an I/O exception of some sort has occurred. |
LineNumberInputStream.java | Class | This class is an input stream filter that provides the added
functionality of keeping track of the current line number. |
LineNumberReader.java | Class | A buffered character-input stream that keeps track of line numbers. |
NotActiveException.java | Class | Thrown when serialization or deserialization is not active. |
NotSerializableException.java | Class | Thrown when an instance is required to have a Serializable interface.
The serialization runtime or the class of the instance can throw
this exception. |
ObjectInput.java | Interface | ObjectInput extends the DataInput interface to include the reading of
objects. |
ObjectInputStream.java | Class | An ObjectInputStream deserializes primitive data and objects previously
written using an ObjectOutputStream.
ObjectOutputStream and ObjectInputStream can provide an application with
persistent storage for graphs of objects when used with a FileOutputStream
and FileInputStream respectively. |
ObjectInputValidation.java | Interface | Callback interface to allow validation of objects within a graph. |
ObjectOutput.java | Interface | ObjectOutput extends the DataOutput interface to include writing of objects. |
ObjectOutputStream.java | Class | An ObjectOutputStream writes primitive data types and graphs of Java objects
to an OutputStream. |
ObjectStreamClass.java | Class | Serialization's descriptor for classes. |
ObjectStreamConstants.java | Interface | Constants written into the Object Serialization Stream. |
ObjectStreamException.java | Class | Superclass of all exceptions specific to Object Stream classes. |
ObjectStreamField.java | Class | A description of a Serializable field from a Serializable class. |
OptionalDataException.java | Class | Exception indicating the failure of an object read operation due to
unread primitive data, or the end of data belonging to a serialized
object in the stream. |
OutputStream.java | Class | This abstract class is the superclass of all classes representing
an output stream of bytes. |
OutputStreamWriter.java | Class | An OutputStreamWriter is a bridge from character streams to byte streams:
Characters written to it are encoded into bytes using a specified
java.nio.charset.Charset charset . |
PipedInputStream.java | Class | A piped input stream should be connected
to a piped output stream; the piped input
stream then provides whatever data bytes
are written to the piped output stream.
Typically, data is read from a PipedInputStream
object by one thread and data is written
to the corresponding PipedOutputStream
by some other thread. |
PipedOutputStream.java | Class | A piped output stream can be connected to a piped input stream
to create a communications pipe. |
PipedReader.java | Class | Piped character-input streams. |
PipedWriter.java | Class | Piped character-output streams. |
PrintStream.java | Class | A PrintStream adds functionality to another output stream,
namely the ability to print representations of various data values
conveniently. |
PrintWriter.java | Class | Prints formatted representations of objects to a text-output stream. |
PushbackInputStream.java | Class | A PushbackInputStream adds
functionality to another input stream, namely
the ability to "push back" or "unread"
one byte. |
PushbackReader.java | Class | A character-stream reader that allows characters to be pushed back into the
stream. |
RandomAccessFile.java | Class | Instances of this class support both reading and writing to a
random access file. |
Reader.java | Class | Abstract class for reading character streams. |
SequenceInputStream.java | Class | A SequenceInputStream represents
the logical concatenation of other input
streams. |
Serializable.java | Interface | Serializability of a class is enabled by the class implementing the
java.io.Serializable interface. |
SerializablePermission.java | Class | This class is for Serializable permissions. |
StreamCorruptedException.java | Class | Thrown when control information that was read from an object stream
violates internal consistency checks. |
StreamTokenizer.java | Class | The StreamTokenizer class takes an input stream and
parses it into "tokens", allowing the tokens to be
read one at a time. |
StringBufferInputStream.java | Class | This class allows an application to create an input stream in
which the bytes read are supplied by the contents of a string. |
StringReader.java | Class | A character stream whose source is a string. |
StringWriter.java | Class | A character stream that collects its output in a string buffer, which can
then be used to construct a string.
Closing a StringWriter has no effect. |
SyncFailedException.java | Class | Signals that a sync operation has failed. |
UnsupportedEncodingException.java | Class | The Character Encoding is not supported. |
UTFDataFormatException.java | Class | Signals that a malformed string in
modified UTF-8
format has been read in a data
input stream or by any class that implements the data input
interface. |
WriteAbortedException.java | Class | Signals that one of the ObjectStreamExceptions was thrown during a
write operation. |
Writer.java | Class | Abstract class for writing to character streams. |