code: public void writeToStream(OutputStream os) throws IOException
    {
      if (_readLength <= _readOffset) {
        readBuffer();
      }
  
      while (_readOffset < _readLength) {
        os.write(_readBuffer, _readOffset, _readLength - _readOffset);
  
        readBuffer();
      }
    }
docs: Copies this stream to the output stream.
  
  @param os destination stream.