Commit d3ce847f authored by luzhuang's avatar luzhuang

修改

parent 69756a2e
......@@ -20,13 +20,14 @@ public class CheckFileHeaderUtil {
return stringBuilder.toString();
}
public String test(String url){
public String toCheck(String url){
String result = "";
try{
FileInputStream is = new FileInputStream(url);
byte[] b = new byte[3];
is.read(b, 0, b.length);
result = this.checkType(bytesToHexString(b).toUpperCase());
is.close();
}catch (Exception e){
log.debug(e.getMessage());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment