Hi,Indika
Reader is a public Abstract class for reading character streams. The only methods that a subclass must implement are read(char[], int, int) and close().
int read()
Read a single character.
int read(char[] cbuf)
Read characters into an array.
abstract int read(char[] cbuf, int off, int len)
Read characters into a portion of an array.
Writer is public abstract class which extends Object
for writing to character streams. The only methods that a subclass must implement are write(char[], int, int), flush(), and close().
void write(char[] cbuf)
Write an array of characters.
abstract void write(char[] cbuf, int off, int len)
Write a portion of an array of characters.
void write(int c)
Write a single character.
void write(String str)
Write a string.
void write(String str, int off, int len)
Write a portion of a string.
In short,read(char[] cbuf, int off, int len) in abstract Reader class and write(char[] cbuf, int off, int len) is absract in abstract writer class.Hope this will clear .
with regds,
vkswami.