Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

GZIPOutputStream  RSS feed

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
Boost this thread!