code: protected synchronized void close() {
  
          this.closed = true;
  
          setReadable(false);
          setWritable(false);
          freeOutputStream();
          freeInputStream();
  
          this.gzdata = null;
      }
docs: closes this object and releases the resources that it holds.