while (i > offset && (buf[i] == 0 || Character.isWhitespace((char)buf[i])))
while (i >= offset && (buf[i] == 0 || Character.isWhitespace((char)buf[i])))
	private String unpackString(byte []buf, int offset, int length)	{		String retval;		int i = offset + length - 1;		while (i > offset && (buf[i] == 0 || Character.isWhitespace((char)buf[i])))			i--;		if (i == offset)			retval = "";		else			retval = new String(buf, offset, i - offset + 1);		return(retval);	}