/** * Reads a string from the byte stream. * @return the next string in the byte stream */ private String readString(final Input rawInput) { final int strLen = lengthOfCurrentString(rawInput); final String res = new String(rawInput.getBytes(), rawInput.getStreamPosition(), strLen, charset); rawInput.addToStreamPosition(strLen); moveToFourByteBoundry(rawInput); return res; }