6405891: MLet: could be improved to load a native lib
Reviewed-by: emcmanus
This commit is contained in:
parent
e936f852bf
commit
34982c7509
@ -1165,9 +1165,10 @@ public class MLet extends java.net.URLClassLoader
|
|||||||
file.deleteOnExit();
|
file.deleteOnExit();
|
||||||
FileOutputStream fileOutput = new FileOutputStream(file);
|
FileOutputStream fileOutput = new FileOutputStream(file);
|
||||||
try {
|
try {
|
||||||
int c;
|
byte[] buf = new byte[4096];
|
||||||
while ((c = is.read()) != -1) {
|
int n;
|
||||||
fileOutput.write(c);
|
while ((n = is.read(buf)) >= 0) {
|
||||||
|
fileOutput.write(buf, 0, n);
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
fileOutput.close();
|
fileOutput.close();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user