code: @Override
  	public void close() throws IOException {
  		if (this.stream != null) {
  			this.stream.write(this.buffer, 0, this.pos);
  		}
  		
  		// close file stream
  		super.close();
  	}
docs: --------------------------------------------------------------------------------------------