更新打包流程

This commit is contained in:
2020-03-27 16:26:09 +08:00
parent d452d95576
commit 256d724150
4 changed files with 27 additions and 25 deletions

View File

@@ -89,12 +89,14 @@ public class Tools {
fileName=srcFile.getName();
}
in = new FileInputStream(srcFile);
out = new FileOutputStream(destFile + "/" +fileName );
out = new FileOutputStream(destFile + File.separator +fileName );
byte[] buffer = new byte[1024];
while ((byteread = in.read(buffer)) != -1) {
out.write(buffer, 0, byteread);
}
out.close();
in.close();
return true;
} catch (FileNotFoundException e) {
e.printStackTrace();
@@ -102,15 +104,6 @@ public class Tools {
} catch (IOException e) {
e.printStackTrace();
return false;
} finally {
try {
if (out != null)
out.close();
if (in != null)
in.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
/**