Java根据文件头获取文件类型(二)
if (hv.length() < 2) {
builder.append(0);
}
builder.append(hv);
}
return builder.toString();
}
public static void main(String[] args) throws Exception {
System.out.println(fileType);
}
}