code: public void close()
    {
      StreamSource ss = _indirectSource;
      _indirectSource = null;
      
      if (ss != null) {
        ss.freeUseCount();
      }
      else {
        freeUseCount();
      }
    }
docs: Close the stream.