Java.IO Namespace

Classes

BufferedInputStream

Wraps an existing InputStream and buffers the input.

BufferedOutputStream

Wraps an existing OutputStream and buffers the output.

BufferedReader

Wraps an existing Reader and buffers the input.

BufferedWriter

Wraps an existing Writer and buffers the output.

ByteArrayInputStream

A specialized InputStream for reading the contents of a byte array.

ByteArrayOutputStream

A specialized OutputStream for class for writing content to an (internal) byte array.

CharArrayReader

A specialized Reader for reading the contents of a char array.

CharArrayWriter

A specialized Writer for class for writing content to an (internal) char array.

CharConversionException

The top level class for character conversion exceptions.

Console

Provides access to the console, if available.

DataInputStream

Wraps an existing InputStream and reads big-endian typed data from it.

DataOutputStream

Wraps an existing OutputStream and writes big-endian typed data to it.

EOFException

Thrown when a program encounters the end of a file or stream during an input operation.

File

An "abstract" representation of a file system entity identified by a pathname.

FileDescriptor

Wraps a Unix file descriptor.

FileInputStream

An input stream that reads bytes from a file.

FileNotFoundException

Thrown when a file specified by a program cannot be found.

FileOutputStream

An output stream that writes bytes to a file.

FilePermission

Legacy security code; do not use.

FileReader

A specialized Reader that reads from a file in the file system.

FileWriter

A specialized Writer that writes to a file in the file system.

FilterInputStream

Wraps an existing InputStream and performs some transformation on the input data while it is being read.

FilterOutputStream

Wraps an existing OutputStream and performs some transformation on the output data while it is being written.

FilterReader

Wraps an existing Reader and performs some transformation on the input data while it is being read.

FilterWriter

Wraps an existing Writer and performs some transformation on the output data while it is being written.

IDataInputExtensions
IDataOutputExtensions
IExternalizableExtensions
IFlushableExtensions
InputStream

A readable source of bytes.

InputStreamReader

A class for turning a byte stream into a character stream.

InterruptedIOException

Signals that a blocking I/O operation has been interrupted.

InvalidClassException

Signals a problem during the serialization or or deserialization of an object.

InvalidObjectException

Signals that, during deserialization, the validation of an object has failed.

IObjectInputExtensions
IObjectOutputExtensions
IOError

This error is thrown when a severe I/O error has happened.

IOException

Signals a general, I/O-related error.

LineNumberInputStream

Wraps an existing InputStream and counts the line terminators encountered while reading the data.

LineNumberReader

Wraps an existing Reader and counts the line terminators encountered while reading the data.

NotActiveException

Signals that a serialization-related method has been invoked in the wrong place.

NotSerializableException

Signals that an object that is not serializable has been passed into the ObjectOutput.writeObject() method.

ObjectInputStream

A specialized InputStream that is able to read (deserialize) Java objects as well as primitive data types (int, byte, char etc.

ObjectInputStream.GetField

GetField is an inner class that provides access to the persistent fields read from the source stream.

ObjectInputStream.InterfaceConsts
ObjectOutputStream

A specialized OutputStream that is able to write (serialize) Java objects as well as primitive data types (int, byte, char etc.

ObjectOutputStream.InterfaceConsts
ObjectOutputStream.PutField

PutField is an inner class to provide access to the persistent fields that are written to the target stream.

ObjectStreamClass

Represents a descriptor for identifying a class during serialization and deserialization.

ObjectStreamConstants

A helper interface with constants used by the serialization implementation.

ObjectStreamConstantsConsts
ObjectStreamException

Signals some sort of problem during either serialization or deserialization of objects.

ObjectStreamField

Describes a field for the purpose of serialization.

OptionalDataException

Signals that the ObjectInputStream class encountered a primitive type (int, char etc.) instead of an object instance in the input stream.

OutputStream

A writable sink for bytes.

OutputStreamWriter

A class for turning a character stream into a byte stream.

PipedInputStream

Receives information from a communications pipe.

PipedOutputStream

Places information on a communications pipe.

PipedReader

Receives information on a communications pipe.

PipedWriter

Places information on a communications pipe.

PrintStream

Wraps an existing OutputStream and provides convenience methods for writing common data types in a human readable format.

PrintWriter

Wraps either an existing OutputStream or an existing Writer and provides convenience methods for printing common data types in a human readable format.

PushbackInputStream

Wraps an existing InputStream and adds functionality to "push back" bytes that have been read, so that they can be read again.

PushbackReader

Wraps an existing Reader and adds functionality to "push back" characters that have been read, so that they can be read again.

RandomAccessFile

Allows reading from and writing to a file in a random-access manner.

Reader

The base class for all readers.

SequenceInputStream

Concatenates two or more existing InputStreams.

SerializablePermission

Legacy security code; do not use.

StreamCorruptedException
StreamTokenizer

Parses a stream into a set of defined tokens, one at a time.

StringBufferInputStream

A specialized InputStream that reads bytes from a String in a sequential manner.

StringReader

A specialized Reader that reads characters from a String in a sequential manner.

StringWriter

A specialized Writer that writes characters to a StringBuffer in a sequential manner, appending them in the process.

SyncFailedException

Signals that the Sync() method has failed to complete.

UncheckedIOException
UnsupportedEncodingException

Thrown when a program asks for a particular character converter that is unavailable.

UTFDataFormatException

Signals that an incorrectly encoded UTF-8 string has been encountered, most likely while reading some DataInputStream.

WriteAbortedException

Signals that the ReadObject() method has detected an exception marker in the input stream.

Writer

The base class for all writers.

Interfaces

ICloseable

An AutoCloseable whose close method may throw an IOException.

IDataInput

Defines an interface for classes that are able to read big-endian typed data from some source.

IDataOutput

Defines an interface for classes that are able to write big-endian typed data to some target.

IExternalizable

Defines an interface for classes that want to be serializable, but have their own binary representation.

IFileFilter

An interface for filtering File objects based on their names or other information.

IFilenameFilter

An interface for filtering File objects based on their names or the directory they reside in.

IFlushable

Defines an interface for classes that can (or need to) be flushed, typically before some output processing is considered to be finished and the object gets closed.

IObjectInput

Defines an interface for classes that allow reading serialized objects.

IObjectInputValidation

A callback interface for post-deserialization checks on objects.

IObjectOutput

Defines an interface for classes that allow writing serialized objects.

ISerializable

Marks classes that can be serialized by ObjectOutputStream and deserialized by ObjectInputStream.

Enums

ObjectStreamProtocol

F:Java.IO.ObjectOutputStream.UseProtocolVersion

TokenType

Enumerates values returned by several types.