mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-18 21:48:52 +00:00
#1170 Extract from Memory in Command Line
This commit is contained in:
@@ -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--) {
|
||||
|
||||
Reference in New Issue
Block a user