返回24个无符号位作为整数。
import java.io.IOException; import java.io.InputStream;/**来 自 n o w j a v a . c o m - 时代Java**/ import java.nio.ByteBuffer; import java.util.Iterator; import org.apache.log4j.Logger; public class Main{ /** * Return 24 unsigned bits as an integer. Big endian. * * @param buf * @return */ final public static int getUnsigned24(ByteBuffer buf) { int length = (0xff & buf.get()); length = (length <&l