#1170 Extract from Memory in Command Line

This commit is contained in:
honfika@gmail.com
2016-03-13 09:40:16 +01:00
parent 12c8ee3da5
commit d2432eb6b6
17 changed files with 223 additions and 90 deletions

View File

@@ -707,6 +707,14 @@ public class Helper {
}
}
public static void writeFile(String file, InputStream stream) {
try (FileOutputStream fos = new FileOutputStream(file)) {
copyStream(stream, fos);
} catch (IOException ex) {
// ignore
}
}
public static String stackToString(TranslateStack stack, LocalData localData) throws InterruptedException {
String ret = "[";
for (int i = stack.size() - 1; i >= 0; i--) {