diff options
author | Vincent Breitmoser <valodim@mugenguild.com> | 2014-10-14 14:19:54 +0200 |
---|---|---|
committer | Vincent Breitmoser <valodim@mugenguild.com> | 2014-10-14 14:19:54 +0200 |
commit | e58ba0f4bb5e71b4a27566bbb1b7e66b45e37bf3 (patch) | |
tree | 63c4493ea356f9c90fa323a8e0956621d3d89514 /OpenKeychain/src/main/java | |
parent | 40850b933b1b1ae67aac4ee729489aaf8b9c1211 (diff) | |
download | open-keychain-e58ba0f4bb5e71b4a27566bbb1b7e66b45e37bf3.tar.gz open-keychain-e58ba0f4bb5e71b4a27566bbb1b7e66b45e37bf3.tar.bz2 open-keychain-e58ba0f4bb5e71b4a27566bbb1b7e66b45e37bf3.zip |
fix export performance problems
Diffstat (limited to 'OpenKeychain/src/main/java')
-rw-r--r-- | OpenKeychain/src/main/java/org/sufficientlysecure/keychain/operations/ImportExportOperation.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/operations/ImportExportOperation.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/operations/ImportExportOperation.java index 0bd8ada5a..f42053bad 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/operations/ImportExportOperation.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/operations/ImportExportOperation.java @@ -46,6 +46,7 @@ import org.sufficientlysecure.keychain.util.FileHelper; import org.sufficientlysecure.keychain.util.Log; import org.sufficientlysecure.keychain.util.ProgressScaler; +import java.io.BufferedOutputStream; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileNotFoundException; @@ -289,6 +290,10 @@ public class ImportExportOperation extends BaseOperation { } */ + if ( ! BufferedOutputStream.class.isInstance(outStream)) { + outStream = new BufferedOutputStream(outStream); + } + int okSecret = 0, okPublic = 0, progress = 0; try { |