Вы находитесь на странице: 1из 1

SEM-III

KNS INSTITUTE OF TECHNLOGY

JAVA CH-4

DEPARTMENT OF MCA

INPUT/OUTPUT:
4.2 Exploring java.io

Programs cannot accomplish their goals without accessing external data. Data is retrieved
from an input source. The results of a program are sent to an output destination. In Java, these
sources or destinations are defined very broadly.

For example, a network connection, memory buffer, or disk file can be manipulated by the
Java I/O classes.

Although physically different, these devices are all handled by the same abstraction: the
stream.

A stream is a logical entity that either produces or consumes information. A stream is linked
to a physical device by the Java I/O system. All streams behave in the same manner, even if
the actual physical devices they are linked to differ.
The I/O classes defined by java.io are listed here:

BufferedInputStream
BufferedOutputStream
BufferedReader
BufferedWriter
ByteArrayInputStream
ByteArrayOutputStream
CharArrayReader
CharArrayWriter
Console
DataInputStream
DataOutputStream
File
FileDescriptor
FileInputStream
FileOutputStream
FilePermission
FileReader

FileWriter
FilterInputStream
FilterOutputStream
FilterReader
FilterWriter
InputStream
InputStreamReader
LineNumberReader
ObjectInputStream
ObjectInputStream.GetField
ObjectOutputStream
ObjectOutputStream.PutField
ObjectStreamClass
ObjectStreamField
OutputStream
OutputStreamWriter
PipedInputStream

pipedOutputStream
PipedReader
PipedWriter
PrintStream
PrintWriter
PushbackInputStream
PushbackReader
RandomAccessFile
Reader
SequenceInputStream
SerializablePermission
StreamTokenizer
StringReader
StringWriter
Writer

The following interfaces are defined by java.io:


Closeable
DataInput
DataOutput
Externalizable

FileFilter
FilenameFilter
Flushable
ObjectInput

Lecturer: Syed Khutubuddin Ahmed

ObjectInputValidation
ObjectOutput
ObjectStreamConstants
Serializable

E-Mail: khutub27@gmail.com

17

Вам также может понравиться