public static void main(String[] args) throws IOException {
String in = "in.txt";
Integer datastreamLen,str;
String strData;
public static void main(String[] args) throws IOException {
String in = "in.txt";
Integer datastreamLen,str;
String strData;
try {
FileInputStream read = new FileInputStream(in);
int x = 0;
datastreamLen = read.read();
read.read();
for(int i = 0;i < datastreamLen; i ++){
str = read.read();
System.out.println(String.format("%02X", str)); //以02的长度打印成String
String in = "in.txt";
Integer datastreamLen,str;
String strData;
public static void main(String[] args) throws IOException {
String in = "in.txt";
Integer datastreamLen,str;
String strData;
try {
FileInputStream read = new FileInputStream(in);
int x = 0;
datastreamLen = read.read();
read.read();
for(int i = 0;i < datastreamLen; i ++){
str = read.read();
System.out.println(String.format("%02X", str)); //以02的长度打印成String
}
}