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; //from w w w.j a va 2 s. c o m import android.content.Context; public class SimpleExecutableCommand extends ExecutableCommand { private StringBuilder sb = new StringBuilder(); public SimpleExecutableCommand(Context context, String executableName, String parameters) { super(context, executableName, parameters); } @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; } }