code: public int read() throws IOException
      {
          if (_closed)
              return -1;
  
          if (_packet.unconsumedData()<=0)
          {
              fillPacket();
              if (_packet.unconsumedData()<=0)
              {
                  _closed=true;
                  return -1;
              }
          }
          return _packet.getByte();
      }
docs: /* ------------------------------------------------------------