java.io

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Net
51.Parser
52.PDF
53.Portal
54.Profiler
55.Project Management
56.Report
57.RSS RDF
58.Rule Engine
59.Science
60.Scripting
61.Search Engine
62.Security
63.Sevlet Container
64.Source Control
65.Swing Library
66.Template Engine
67.Test Coverage
68.Testing
69.UML
70.Web Crawler
71.Web Framework
72.Web Mail
73.Web Server
74.Web Services
75.Web Services apache cxf 2.2.6
76.Web Services AXIS2
77.Wiki Engine
78.Workflow Engines
79.XML
80.XML UI
Java Source Code / Java Documentation » 6.0 JDK Core » io nio » java.io 
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 NameTypeComment
Bits.javaClass Utility methods for packing/unpacking primitive values in/out of byte arrays using big-endian byte ordering.
BufferedInputStream.javaClass A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the input and to support the mark and reset methods.
BufferedOutputStream.javaClass The class implements a buffered output stream.
BufferedReader.javaClass 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.javaClass 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.javaClass A ByteArrayInputStream contains an internal buffer that contains bytes that may be read from the stream.
ByteArrayOutputStream.javaClass This class implements an output stream in which the data is written into a byte array.
CharArrayReader.javaClass This class implements a character buffer that can be used as a character-input stream.
CharArrayWriter.javaClass 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.javaClass Base class for character conversion exceptions.
Closeable.javaInterface A Closeable is a source or destination of data that can be closed.
Console.javaClass 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.javaInterface The DataInput interface provides for reading bytes from a binary stream and reconstructing from them data in any of the Java primitive types.
DataInputStream.javaClass A data input stream lets an application read primitive Java data types from an underlying input stream in a machine-independent way.
DataOutput.javaInterface 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.javaClass A data output stream lets an application write primitive Java data types to an output stream in a portable way.
DeleteOnExitHook.javaClass This class holds a set of filenames to be deleted on VM exit through a shutdown hook.
EOFException.javaClass 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.javaClass
Externalizable.javaInterface 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.javaClass An abstract representation of file and directory pathnames.

User interfaces and operating systems use system-dependent pathname strings to name files and directories.

FileFilter.javaInterface A filter for abstract pathnames.
FileInputStream.javaClass A FileInputStream obtains input bytes from a file in a file system.
FilenameFilter.javaInterface Instances of classes that implement this interface are used to filter filenames.
FileNotFoundException.javaClass 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.javaClass A file output stream is an output stream for writing data to a File or to a FileDescriptor.
FilePermission.javaClass This class represents access to a file or directory.
FileReader.javaClass Convenience class for reading character files.
FileSystem.javaClass Package-private abstract class for the local filesystem abstraction.
FileWriter.javaClass Convenience class for writing character files.
FilterInputStream.javaClass 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.javaClass This class is the superclass of all classes that filter output streams.
FilterReader.javaClass Abstract class for reading filtered character streams. The abstract class FilterReader itself provides default methods that pass all requests to the contained stream.
FilterWriter.javaClass Abstract class for writing filtered character streams. The abstract class FilterWriter itself provides default methods that pass all requests to the contained stream.
Flushable.javaInterface A Flushable is a destination of data that can be flushed.
InputStream.javaClass This abstract class is the superclass of all classes representing an input stream of bytes.
InputStreamReader.javaClass 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.javaClass Signals that an I/O operation has been interrupted.
InvalidClassException.javaClass Thrown when the Serialization runtime detects one of the following problems with a Class.
InvalidObjectException.javaClass Indicates that one or more deserialized objects failed validation tests.
IOError.javaClass Thrown when a serious I/O error has occurred.
IOException.javaClass Signals that an I/O exception of some sort has occurred.
LineNumberInputStream.javaClass This class is an input stream filter that provides the added functionality of keeping track of the current line number.
LineNumberReader.javaClass A buffered character-input stream that keeps track of line numbers.
NotActiveException.javaClass Thrown when serialization or deserialization is not active.
NotSerializableException.javaClass 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.javaInterface ObjectInput extends the DataInput interface to include the reading of objects.
ObjectInputStream.javaClass 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.javaInterface Callback interface to allow validation of objects within a graph.
ObjectOutput.javaInterface ObjectOutput extends the DataOutput interface to include writing of objects.
ObjectOutputStream.javaClass An ObjectOutputStream writes primitive data types and graphs of Java objects to an OutputStream.
ObjectStreamClass.javaClass Serialization's descriptor for classes.
ObjectStreamConstants.javaInterface Constants written into the Object Serialization Stream.
ObjectStreamException.javaClass Superclass of all exceptions specific to Object Stream classes.
ObjectStreamField.javaClass A description of a Serializable field from a Serializable class.
OptionalDataException.javaClass 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.javaClass This abstract class is the superclass of all classes representing an output stream of bytes.
OutputStreamWriter.javaClass 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.javaClass 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.javaClass A piped output stream can be connected to a piped input stream to create a communications pipe.
PipedReader.javaClass Piped character-input streams.
PipedWriter.javaClass Piped character-output streams.
PrintStream.javaClass A PrintStream adds functionality to another output stream, namely the ability to print representations of various data values conveniently.
PrintWriter.javaClass Prints formatted representations of objects to a text-output stream.
PushbackInputStream.javaClass A PushbackInputStream adds functionality to another input stream, namely the ability to "push back" or "unread" one byte.
PushbackReader.javaClass A character-stream reader that allows characters to be pushed back into the stream.
RandomAccessFile.javaClass Instances of this class support both reading and writing to a random access file.
Reader.javaClass Abstract class for reading character streams.
SequenceInputStream.javaClass A SequenceInputStream represents the logical concatenation of other input streams.
Serializable.javaInterface Serializability of a class is enabled by the class implementing the java.io.Serializable interface.
SerializablePermission.javaClass This class is for Serializable permissions.
StreamCorruptedException.javaClass Thrown when control information that was read from an object stream violates internal consistency checks.
StreamTokenizer.javaClass The StreamTokenizer class takes an input stream and parses it into "tokens", allowing the tokens to be read one at a time.
StringBufferInputStream.javaClass This class allows an application to create an input stream in which the bytes read are supplied by the contents of a string.
StringReader.javaClass A character stream whose source is a string.
StringWriter.javaClass 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.javaClass Signals that a sync operation has failed.
UnsupportedEncodingException.javaClass The Character Encoding is not supported.
UTFDataFormatException.javaClass 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.javaClass Signals that one of the ObjectStreamExceptions was thrown during a write operation.
Writer.javaClass Abstract class for writing to character streams.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.