高级算法

This commit is contained in:
2023-08-23 18:50:23 +08:00
parent ef0ab5eac4
commit 5001c1ecf0

View File

@@ -42,14 +42,14 @@ public class JnaCallDllOrSo {
boolean d = dockerFile.createNewFile();
System.out.println("文件夹创建:"+f);
System.out.println("文件创建:"+d);
}
try (InputStream inputStream = getClass().getClassLoader().getResourceAsStream(this.nameDll.concat(suffix))) {
try (FileOutputStream outputStream = new FileOutputStream(dockerFile)) {
byte[] buffer = new byte[1024];
int bytesRead;
while ((bytesRead = inputStream.read(buffer)) != -1) {
outputStream.write(buffer, 0, bytesRead);
try (InputStream inputStream = getClass().getClassLoader().getResourceAsStream(this.nameDll.concat(suffix))) {
try (FileOutputStream outputStream = new FileOutputStream(dockerFile)) {
byte[] buffer = new byte[1024];
int bytesRead;
while ((bytesRead = inputStream.read(buffer)) != -1) {
outputStream.write(buffer, 0, bytesRead);
}
}
}
}