code: public int read(byte[] b, int off, int len) throws IOException
      {
          if (_closed)
              return -1;
  
          if (_packet.unconsumedData()==0)
          {
              fillPacket();
              if (_packet.unconsumedData()==0)
              {
                  _closed=true;
                  return -1;
              }
          }
  
          return _packet.getBytes(b,off,len);
      }
docs: /* ------------------------------------------------------------