摘要: 注:当前文件中的数据顺序:低位在前、高位在后Java对十六进制文件的读取,尤其是使用readInt()和readDouble()方法时必须要对数据进行转换,这样才可以避免读到的数据出错。我们先提供一个数据转换的类,这样可以便于后面的数据转换: 类名:ByteToOther 方法: public int intFromByte(byte[] temp){ int value = 0;// value = (((temp[0] & 0xff) << 24) | ((temp[1] & 0xff) << 16) | ((temp[2] & 0xff) 阅读全文
posted @ 2012-04-28 16:39 Brin Page 阅读(6356) 评论(0) 推荐(0) 编辑