MCPcopy Create free account
hub / github.com/BaseXdb/basex / execute

Method execute

basex-core/src/main/java/org/basex/api/client/Session.java:34–38  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 1

executeMethod · 0.95

Calls 1

toStringMethod · 0.95

Tested by

no test coverage detected