Subclasses of OutputStream, Reader, Writer classes in Java
Subclasses of the OutputStream class
- OutputStream is an abstract class that defines stream byte output.
- BufferedOutputStream is a buffered output stream.
- ByteArrayOutputStream - all data sent to this stream is placed in a previously created buffer.
- DataOutputStream is an output byte stream that includes methods for writing standard Java data types.
- FileOutputStream - writing data to a file on a physical medium.
- FilterOutputStream is an abstract class that provides an interface for add-on classes that add useful properties to existing streams.
- PrintStream - an output stream that includes the print() and println() methods.
- ObjectOutputStream - output stream for writing objects.
- PipedOutputStream implements the concept of an output pipe.
Subclasses of the Reader class
- Reader is an abstract class that describes character input.
- BufferedReader - buffered input character stream.
- CharArrayReader - the input stream that reads from a character array.
- FileReader - the input stream that reads the file.
- FilterReader is an abstract class that provides an interface for add-in classes.
- InputStreamReader - input stream that translates bytes into characters.
- LineNumberReader -the input stream that counts lines.
- PipedReader - input channel.
- PushbackReader - an input stream that allows characters to be returned back to the stream.
- StringReader is the input stream reading from a string.
Subclasses of the Writer class
- Writer is an abstract class that describes character output.
- BufferedWriter is a buffered character stream output.
- CharArrayWriter - the output stream that writes to the character array.
- FileWriter - the output stream writing to the file.
- FilterWriter is an abstract class that provides an interface for add-in classes.
- OutputStreamWriter - an output stream that translates bytes to characters.
- PipedWriter is an output channel.
- PrintWriter - an output character stream that includes the print() and println() methods.
- StringWriter - the output stream writing to a string.
Read also:
Comments
Post a Comment