public void close() throws IOException {
  if (!closed) {
    try {
      finish();
    }
  finally {
      out.close();
      closed=true;
    }
  }
}

public void close ( ) throws IOException { if ( ! closed ) { try { finish ( ) ; } finally { out . close ( ) ; closed = true ; } } }
writes any remaining uncompressed data to the output stream and closes the underlying output stream .
