Reader
In this chapter you will learn:
Use Reader class
Reader
is the abstract class for reading character streams.
The following table lists the reader classes which deal with the character based stream.
Reader
Abstract class that describes character stream inputBufferedReader
Buffered input character streamCharArrayReader
Input stream that reads from a character arrayFileReader
Input stream that reads from a fileFilterReader
Filtered readerInputStreamReader
Input stream that translates bytes to charactersLineNumberReader
Input stream that counts linesPipedReader
Input pipePushbackReader
Input stream that allows characters to be returned to the input streamStringReader
Input stream that reads from a string
The Predefined Streams
System.out
refers to the standard output stream. By default, this is the console.
System.in
refers to standard input, which is the keyboard by default.
System.err
refers to the standard error stream, which also is the console by default.
System.in
is an object of type InputStream;
System.out
and System.err
are objects of type PrintStream
.
Next chapter...
What you will learn in the next chapter:
Home » Java Tutorial » Reader Writer