PDA

Click to See Complete Forum and Search --> : Flush BufferedReader


amani
Aug 30th, 2001, 11:17 PM
Hi all,

Can anyone tell me how I can flush a BufferedReader????

I am downloading a file from a URL and I get only 8K of data from a possible 12K. I am lost.......Could anyone please advice me.....

Thanks a bunch

Dillinger4
Aug 31st, 2001, 01:01 PM
BufferedReader applies buffering on the underlying stream.
BufferedReader also supplies an alternate readLine() method
for DataInputStream's becuase it was unable to convert bytes to characters properly.

But before i even start to show an example . I dont think you can flush a Reader. a flush method is defined in the BufferedWriter class though.

public void flush() throws IOException