code: public String readString() throws IOException
     {
  
        int length = readInt();
        byte[] buf = new byte[length];
        readFully(buf);
        return new String(buf, Constants.DEFAULT_ENCODING);
     }
docs: {@inheritDoc}