public String queryInfoByVin(File file) {
if(file==null){
throw new BusinessException("file.not.fount");
}
String result = "";
try {
FileInputStream in = new FileInputStream(file);
byte[] b = null;
ByteArrayOutputStream out = new ByteArrayOutputStream();
while (in.available() != 0) {
out.write(in.read());
}
b = out.toByteArray();
if(b!=null){
result = new String(b);
}
in.close();
out.close();
} catch (Exception e) {
throw new BusinessException("file.not.fount");
}
return result;
}
txt解析_java
最新推荐文章于 2024-08-23 15:54:50 发布