Android
package

java.io

Classes | Description

Provides input and output facilities by means of streaming, filesystem access and serialization. more...

Interfaces

Closeable Closeable represents the source or destination of some data which can be called its close method to release resources it holds. 
DataInput DataInput is an interface which declares methods for reading in typed data from a Stream. 
DataOutput DataOutput is an interface which declares methods for writing typed data to a Stream. 
Externalizable Objects that want to be serialized/deserialized using ObjectOutputStream/ObjectInputStream but defining their own byte representation should implement this interface. 
FileFilter FileFilter is an interface for filtering abstract Files  
FilenameFilter FilenameFilter is an interface which declares methods for filtering file names in the list method of File. 
Flushable

Indicates that an output object can be flushed. 

ObjectInput Streams to be used with serialization to read objects must implement this interface. 
ObjectInputValidation Objects to perform validations on other objects read with serialization should implement this interface. 
ObjectOutput Streams to be used with serialization to write objects must implement this interface. 
ObjectStreamConstants Helper interface with constants used by the serialization implementation. 
Serializable Objects that want to be serialized/deserialized using ObjectOutputStream/ObjectInputStream should implement this interface. 

Classes

BufferedInputStream BufferedInputStream is a class which takes an input stream and buffers the input. 
BufferedOutputStream BufferedOutputStream is a class which takes an output stream and buffers the writes to that stream. 
BufferedReader BufferedReader is a buffered character input reader. 
BufferedWriter BufferedWriter is for writing buffered character output. 
ByteArrayInputStream ByteArrayInputStream is used for streaming over a byte array. 
ByteArrayOutputStream ByteArrayOutputStream is a class whose underlying stream is represented by a byte array. 
CharArrayReader CharArrayReader is used as a buffered character input stream on a character array. 
CharArrayWriter CharArrayWriter is used as a character output stream on a character array. 
DataInputStream DataInputStream is a filter class which can read typed data from a Stream. 
DataOutputStream DataOutputStream is a filter class which can write typed data to a Stream. 
File File is a class which represents a file name or directory. 
FileDescriptor FileDescriptor is the lowest level representation of a File, Device, or Socket. 
FileInputStream FileInputStream is a class for reading bytes from a file. 
FileOutputStream FileOutputStream is a class whose underlying stream is represented by a file in the operating system. 
FilePermission The class FilePermission is responsible for granting access to files or directories. 
FileReader FileReader is class for turning a file into a character Stream. 
FileWriter FileWriter is a class for writing characters out to a file. 
FilterInputStream FilteredInputStream is a class which takes an input stream and filters the input in some way. 
FilterOutputStream FilteredOutputStream is a class which takes an output stream and filters the output in some way. 
FilterReader FilterReader is a class which takes a Reader and filters the input in some way. 
FilterWriter FilterWriter is a class which takes a Writer and filters the output in some way. 
InputStream InputStream is an abstract class for all byte input streams. 
InputStreamReader InputStreamReader is class for turning a byte Stream into a character Stream. 
LineNumberInputStream This class is deprecated. Use LineNumberReader  
LineNumberReader LineNumberReader is a buffered character input reader which counts line numbers as data is being read. 
ObjectInputStream An ObjectInputStream can be used to load Java objects from a stream where the objects were saved using an ObjectOutputStream. 
ObjectInputStream.GetField Inner class to provide access to serializable fields  
ObjectOutputStream An ObjectOutputStream can be used to save Java objects into a stream where the objects can be loaded later with an ObjectInputStream. 
ObjectOutputStream.PutField Inner class to provide access to serializable fields  
ObjectStreamClass Instances of ObjectStreamClass are used to describe classes of objects used by serialization. 
ObjectStreamField This class represents object fields that are saved to the stream, by serialization. 
OutputStream OutputStream is an abstract class for all byte output streams. 
OutputStreamWriter OutputStreamWriter is a class for turning a character output stream into a byte output stream. 
PipedInputStream PipedInputStream is a class which receives information on a communications pipe. 
PipedOutputStream PipedOutputStream is a class which places information on a communications pipe. 
PipedReader PipedReader is a class which receives information on a communications pipe. 
PipedWriter PipedWriter is a class which places information on a communications pipe. 
PrintStream PrintStream is a class which takes an OutputStream and provides convenience methods for printing common data types in a human readable format on the stream. 
PrintWriter PrintWriter is a class which takes either an OutputStream or Writer and provides convenience methods for printing common data types in a human readable format on the stream. 
PushbackInputStream PushbackInputStream is a filter class which allows bytes read to be pushed back into the stream so that they can be reread. 
PushbackReader PushbackReader is a filter class which allows chars read to be pushed back into the stream so that they can be reread. 
RandomAccessFile RandomAccessFile is a class which allows positioning of the next read anywhere in the file. 
Reader Reader is an Abstract class for reading Character Streams. 
SequenceInputStream SequenceInputStream is used for streaming over a sequence of streams concatenated together. 
SerializablePermission SerializablePermission objects represent permission to access unsafe serialization operations. 
StreamTokenizer StreamTokenizer takes a stream and a set of tokens and parses them one at a time. 
StringBufferInputStream This class is deprecated. Use StringReader  
StringReader StringReader is used as a character input stream on a String. 
StringWriter StringWriter is an class for writing Character Streams to a StringBuffer. 
Writer Writer is an Abstract class for writing Character Streams. 

Exceptions

CharConversionException This is the top level class for character conversion exceptions. 
EOFException This End Of File (EOF) exception is thrown when a program encounters the end of a file or stream during an operation. 
FileNotFoundException This IO exception is thrown when a file specified by a program cannot be found. 
InterruptedIOException This IO exception is thrown when a program reading or writing to a stream is interrupted. 
InvalidClassException A problem was found with the class of one of the objects being serialized or deserialized. 
InvalidObjectException The object graph loaded (deserialized) can be validated by a collection of validator objects. 
IOException This IO exception is thrown when a program encounters some sort I/O error. 
NotActiveException Some methods in ObjectInputStream and ObjectOutputStream can only be called from a nested call to readObject() or writeObject(). 
NotSerializableException When an implementation of ObjectOutput.writeObject() is passed an object that is not serializable, it will throw this type of exception. 
ObjectStreamException This is the superclass of all exceptions that can happen when serializing or deserialing objects. 
OptionalDataException When readObject() encounters primitive types (int, char, etc) instead of an object instance in the input stream, this type of exception will be thrown. 
StreamCorruptedException When readObject() cannot read an object from the input stream due to missing information (cyclic reference that doesn't match previous instance or missing class descriptor for instance to be loaded) this type of exception is thrown. 
SyncFailedException This IO exception is thrown when the method sync() in FileDescriptor failed to complete. 
UnsupportedEncodingException This IO exception is thrown when a program asks for a particular character converter and it is not available. 
UTFDataFormatException This IO exception is thrown when a program attempts to read a UTF-8 String and the encoding is incorrect. 
WriteAbortedException This type of exception is thrown by readObject() when it detects an exception marker in the input stream. 
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48