I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 2ee1a212 authored by meeh's avatar meeh
Browse files

Added BufferedOutputStream to BaseExtractor for better performance.

parent fe41dec6
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,7 @@ package net.i2p.launchers;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
......@@ -47,7 +48,7 @@ public class BaseExtractor extends EnvCheck {
String uncompressedFileName = destinationPath + "/" + entry.getName();
Path uncompressedFilePath = fileSystem.getPath(uncompressedFileName);
Files.createFile(uncompressedFilePath);
FileOutputStream fileOutput = new FileOutputStream(uncompressedFileName);
BufferedOutputStream fileOutput = new BufferedOutputStream(new FileOutputStream(uncompressedFileName));
while (bis.available() > 0) fileOutput.write(bis.read());
fileOutput.close();
if (printDebug) System.out.println("Written :" + entry.getName());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment