Changeset 2ee1a21 for launchers/macosx


Ignore:
Timestamp:
Jul 24, 2018 4:23:08 PM (2 years ago)
Author:
meeh <meeh@…>
Branches:
master
Children:
f9fbc76
Parents:
fe41dec
Message:

Added BufferedOutputStream? to BaseExtractor? for better performance.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • launchers/macosx/src/main/java/net/i2p/launchers/BaseExtractor.java

    rfe41dec r2ee1a21  
    33
    44import java.io.BufferedInputStream;
     5import java.io.BufferedOutputStream;
    56import java.io.FileOutputStream;
    67import java.io.IOException;
     
    4849                    Path uncompressedFilePath = fileSystem.getPath(uncompressedFileName);
    4950                    Files.createFile(uncompressedFilePath);
    50                     FileOutputStream fileOutput = new FileOutputStream(uncompressedFileName);
     51                    BufferedOutputStream fileOutput = new BufferedOutputStream(new FileOutputStream(uncompressedFileName));
    5152                    while (bis.available() > 0) fileOutput.write(bis.read());
    5253                    fileOutput.close();
Note: See TracChangeset for help on using the changeset viewer.