code: protected boolean readPacket ()
          throws IOException
      {
          int result;
          while ((result = _stream.packetout(_packet)) != 1) {
              if (result == 0 && !readPage()) {
                  return false;
              }
          }
          return true;
      }
docs: Reads a packet.
  
  @return true if a packet was read, false if we've reached the end of the stream.