Back to project page turbo-editor.
The source code is released under:
GNU General Public License
If you think the Android project turbo-editor listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.sufficientlysecure.rootcommands.command; /* ww w . j a v a 2 s . co m*/ public class SimpleCommand extends Command { private StringBuilder sb = new StringBuilder(); public SimpleCommand(String... command) { super(command); } @Override public void output(int id, String line) { sb.append(line).append('\n'); } @Override public void afterExecution(int id, int exitCode) { } public String getOutput() { return sb.toString(); } public int getExitCode() { return exitCode; } }