mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-15 07:39:00 -04:00
Use Apache IOUtils to copy extracted file data
This commit is contained in:
parent
27c2cbc2b1
commit
71bbd17a53
@ -454,7 +454,10 @@ public class PojavLoginActivity extends AppCompatActivity
|
|||||||
destPath.getParentFile().mkdirs();
|
destPath.getParentFile().mkdirs();
|
||||||
destPath.createNewFile();
|
destPath.createNewFile();
|
||||||
// destPath.setExecutable(true);
|
// destPath.setExecutable(true);
|
||||||
|
|
||||||
|
IOUtils.copy(tarIn, new FileOutputStream(destPath));
|
||||||
|
|
||||||
|
/*
|
||||||
byte[] btoRead = new byte[2048];
|
byte[] btoRead = new byte[2048];
|
||||||
BufferedOutputStream bout =
|
BufferedOutputStream bout =
|
||||||
new BufferedOutputStream(new FileOutputStream(destPath));
|
new BufferedOutputStream(new FileOutputStream(destPath));
|
||||||
@ -466,7 +469,7 @@ public class PojavLoginActivity extends AppCompatActivity
|
|||||||
|
|
||||||
bout.close();
|
bout.close();
|
||||||
btoRead = null;
|
btoRead = null;
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
tarEntry = tarIn.getNextTarEntry();
|
tarEntry = tarIn.getNextTarEntry();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user