Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic


darren malt
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm a little confused over this class. What I want to know is when is the data actualy sent or flushed. for example:
OutputStream op = new OutputStream();
Print Writer out = new PrintWriter(new GZIPOutputStream(op),false);
// several Println()'s before closing the Stream.
obviously the "false" arg to the PrintWriter constructor prevents flushing every time println() is invoked, so when would that happen, when the buffer is full maybe. But because I am Zipping the data, when is the data actually sent on it's merry way. I'm a bit lost here. Thanks for your time.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic