想输出十六进制前面补0不用那么麻烦。
System.out.printf( "%02x"+" ",buf[i] );//%x输出16进制,%02x输出两位十六进制,不足两位前面补0
System.out.printf( "%02x"+" ",buf[i] );//%x输出16进制,%02x输出两位十六进制,不足两位前面补0
2016-05-30
@禹爸爸
java.io.FileOutputStream.write(byte[] b, int off, int len)
Parameters:
b the data.
off the start offset in the data.
len the number of bytes to write.
java.io.FileOutputStream.write(byte[] b, int off, int len)
Parameters:
b the data.
off the start offset in the data.
len the number of bytes to write.
2016-05-19