InputStream
In this chapter you will learn:
Byte Stream Classes
Byte streams are defined by using two class hierarchies.
At the top are two abstract classes: InputStream
and OutputStream
.
Stream Class | Meaning |
---|---|
BufferedInputStream | Buffered input stream |
BufferedOutputStream | Buffered output stream |
ByteArrayInputStream | Input stream that reads from a byte array |
ByteArrayOutputStream | Output stream that writes to a byte array |
DataInputStream | An input stream that contains methods for reading the Java standard data types |
DataOutputStream | An output stream that contains methods for writing the Java standard data types |
FileInputStream | Input stream that reads from a file |
FileOutputStream | Output stream that writes to a file |
FilterInputStream | Implements InputStream |
FilterOutputStream | Implements OutputStream |
InputStream | Abstract class that describes stream input |
ObjectInputStream | Input stream for objects |
ObjectOutputStream | Output stream for objects |
OutputStream | Abstract class that describes stream output |
PipedInputStream | Input pipe |
PipedOutputStream | Output pipe |
PrintStream | Output stream that contains print( ) and println( ) |
PushbackInputStream | Input stream that supports one-byte "unget," which returns a byte to the input stream |
RandomAccessFile | Supports random access file I/O |
SequenceInputStream | Input stream that is a combination of two or more input streams that will be read sequentially, one after the other |
Next chapter...
What you will learn in the next chapter:
- How to Java FileInputStream
- Read a file with FileInputStream
- How to read a single byte from FileInputStream
- How to Skip n bytes
Home » Java Tutorial » Reader Writer