code: public void close() throws IOException {
  
  		//PrintWriter.close does not throw exceptions. Thus, the call does not need
  		//be inside a try-catch block.
  		if (this.printWriter != null) {
  			this.printWriter.close();
  		}
  
  		if (this.gzipOutputStream != null) {
  			this.gzipOutputStream.close();
  		}
  	}
docs: Closes the stream.
  @throws IOException maybe