Topics Index

Input/Output: Exploring >
Siva Nookala - 03 Mar 2017 package provides for system input and output through data streams, serialization and the file system.

Interface Summary:
Interface Description
Closeable A Closeable is a source or destination of data that can be closed.
Externalizable 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.
Flushable A Flushable is a destination of data that can be flushed.
ObjectInput ObjectInput extends the DataInput interface to include the reading of objects.
ObjectOutput ObjectOutput extends the DataOutput interface to include writing of objects.
Serializable Serializability of a class is enabled by the class implementing the interface.
Class Summary :
Class Description
BufferedInputStream A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the input and to support the mark and reset methods.
BufferedOutputStream The class implements a buffered output stream.
BufferedReader Reads text from a character-input stream, buffering characters so as to provide for the efficient reading of characters, arrays, and lines.
BufferedWriter Writes text to a character-output stream, buffering characters so as to provide for the efficient writing of single characters, arrays, and strings.
ByteArrayInputStream A ByteArrayInputStream contains an internal buffer that contains bytes that may be read from the stream.
ByteArrayOutputStream This class implements an output stream in which the data is written into a byte array.
CharArrayReader This class implements a character buffer that can be used as a character-input stream.
CharArrayWriter This class implements a character buffer that can be used as an Writer.
Console Methods to access the character-based console device, if any, associated with the current Java virtual machine.
DataInputStream A data input stream lets an application read primitive Java data types from an underlying input stream in a machine-independent way.
DataOutputStream A data output stream lets an application write primitive Java data types to an output stream in a portable way.
File An abstract representation of file and directory pathnames.
FileInputStream A FileInputStream obtains input bytes from a file in a file system.
FileOutputStream A file output stream is an output stream for writing data to a File or to a FileDescriptor.
InputStream This abstract class is the superclass of all classes representing an input stream of bytes.
ObjectInputStream An ObjectInputStream deserializes primitive data and objects previously written using an ObjectOutputStream.
ObjectOutputStream An ObjectOutputStream writes primitive data types and graphs of Java objects to an OutputStream.
PushbackReader A character-stream reader that allows characters to be pushed back into the stream.
Reader Abstract class for reading character streams.
Writer Abstract class for writing to character streams.

Note : 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.

Score more than 2 points

© meritcampus 2016 - 2017

All Rights Reserved.