• Post Reply Bookmark Topic Watch Topic
  • New Topic

read all the text from a stream in one line tip  RSS feed

 
Dilshad Marikar
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Found this interesting link in the latest Java tech tip newsletter: Pat Niemeyer's Blog. This is a very useful tip, and a nice abstraction over the regular expression classes.
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was just coming over here to post that, myself. It's cute fer sure - read any stream, file or channel to end in one line of code.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!