| 23 | } |
| 24 | |
| 25 | public static abstract class EventReceiver { |
| 26 | /** |
| 27 | * callback function called whence a child has been successfully started |
| 28 | * |
| 29 | * this method is called before any other in this class, |
| 30 | * and before receiving any event from the associated child. |
| 31 | * @param cmd the command that this child is executing |
| 32 | */ |
| 33 | public void onStart(String cmd) { } |
| 34 | |
| 35 | /** |
| 36 | * callback function called whence the child exit |
| 37 | * @param exitValue the child exit value |
| 38 | */ |
| 39 | public void onEnd(int exitValue) { } |
| 40 | |
| 41 | /** |
| 42 | * callback function called whence the child get terminated by a signal |
| 43 | * @param signal the signal that killed the child |
| 44 | */ |
| 45 | public void onDeath(int signal) { } |
| 46 | |
| 47 | /** |
| 48 | * callback function called whence the child print something on the stderr |
| 49 | * @param line the printed line |
| 50 | */ |
| 51 | public void onStderr(String line) { } |
| 52 | |
| 53 | /** |
| 54 | * callback function called whence the child generate an evant |
| 55 | * @param e the generated {@link org.csploit.android.events.Event} |
| 56 | */ |
| 57 | public abstract void onEvent(Event e); |
| 58 | } |
| 59 | |
| 60 | /** |
| 61 | * send bytes to this child's stdin |
nothing calls this directly
no outgoing calls
no test coverage detected