• Post Reply Bookmark Topic Watch Topic
  • New Topic

reading the content in outputstream  RSS feed

 
yathish Gatty
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to read the content which is already present in outputstream.How do i do it.

OutputStream os = response.getOutputStream();

How do I read contents in this OutputStream.

Thank you.
 
Joe Ess
Bartender
Posts: 9406
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't. Output streams are for writing out. You could, however, create your own kind of buffered output stream which would either keep a log of everything written to it or buffer everything until a flush() was invoked and provide some method to view that log or content.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!