Results 1 to 2 of 2

Thread: Flush BufferedReader

  1. #1
    amani
    Guest

    Flush BufferedReader

    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

  2. #2
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width