Executes a Command and returns the result as string or serializes it to the specified output stream. @param command command to be executed @return result or null reference @throws IOException I/O exception
(final Command command)
| 32 | * @throws IOException I/O exception |
| 33 | */ |
| 34 | public final String execute(final Command command) throws IOException { |
| 35 | final ArrayOutput ao = out == null ? new ArrayOutput() : null; |
| 36 | execute(command, ao != null ? ao : out); |
| 37 | return ao != null ? ao.toString() : null; |
| 38 | } |
| 39 | |
| 40 | /** |
| 41 | * Executes a command and returns the result as string or serializes |