Komplettes G-Earth Paket inkl. JRE, Extensions und Tools. Extensions: - G-BuildTools, G-Click Ultimate, G-Loader, G-Manipulate - G-Presets, G-Translator, G-Trigger, G-itemViewer - Market Utils, Packet Info Explorer, Plants - RandomRoomVisitor, RoomLogger, Sanbovir Photo Inspector - SpyFriends, WallAligner, XabboScripter, xabbo
31 lines
858 B
Java
31 lines
858 B
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*/
|
|
package gearth.misc;
|
|
|
|
import java.io.BufferedReader;
|
|
import java.io.IOException;
|
|
import java.io.InputStreamReader;
|
|
|
|
public final class RuntimeUtil {
|
|
public static String getCommandOutput(String[] command) throws IOException {
|
|
try {
|
|
String line;
|
|
Runtime rt = Runtime.getRuntime();
|
|
Process proc = rt.exec(command);
|
|
BufferedReader stdInput = new BufferedReader(new InputStreamReader(proc.getInputStream()));
|
|
StringBuilder result = new StringBuilder();
|
|
while ((line = stdInput.readLine()) != null) {
|
|
result.append(line);
|
|
result.append("\n");
|
|
}
|
|
return result.toString();
|
|
}
|
|
catch (IOException e) {
|
|
e.printStackTrace();
|
|
throw e;
|
|
}
|
|
}
|
|
}
|
|
|