Site Search:

Character Streams

Back>
Reader
The abstract class all xxxReader classes inherit from. Abstract methods: read(char[], int, int), close().

FileReader extends InputStreamReader
read(), Reads file data as characters

BufferedReader extends Reader
readLine(). Reads character data from an existing Reader with buffer for performance
Writer
The abstract class all xxxWriter classes inherit from. Abstract methods: write(char[], int, int), flush(), close().

FileWriter extends outputStreamWriter
write(int), write(String). Writes file data as character

BufferedWriter extends Writer
write(), newLine(). Writes character data to an existing Writer with buffer for performance