How to convert InputStream to BufferedReader

I need BufferedReader but i have InputStream.
Next code makes convertion:

      InputStream stream = getClass( ).getResourceAsStream("test.txt");
      BufferedReader reader = new BufferedReader(new InputStreamReader(stream));
Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • LinkedIn
  • MySpace
  • RSS
  • Twitter
  • Yahoo! Bookmarks
  • Yahoo! Buzz
  • BlinkList
  • blogmarks
  • DZone
  • E-mail this story to a friend!
  • LinkaGoGo
  • Live
  • MisterWong
  • MisterWong.DE
  • Reddit
  • StumbleUpon
  • Technorati
  • ThisNext
  • Tumblr

Related posts:

  1. How to read text file from jar

Leave a Reply


wp