|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.core.Session
public abstract class Session
This class allows a generic process execution. It is implemented both by the local as well as the client/server model.
| Constructor Summary | |
|---|---|
Session()
|
|
| Method Summary | |
|---|---|
abstract void |
close()
Closes the session. |
boolean |
execute(Proc pr)
Executes a process. |
abstract boolean |
execute(Proc pr,
OutputStream out)
Executes a process and prints the result to the specified stream. |
boolean |
execute(String pr)
Executes a command. |
abstract boolean |
execute(String cmd,
OutputStream out)
Executes a command and prints the result to the specified stream. |
abstract String |
info()
Returns process info. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Session()
| Method Detail |
|---|
public abstract boolean execute(String cmd,
OutputStream out)
throws IOException
cmd - command to be executedout - output stream
IOException - I/O exception
public abstract boolean execute(Proc pr,
OutputStream out)
throws IOException
pr - process to be executedout - output stream
IOException - I/O exception
public final boolean execute(Proc pr)
throws IOException
execute(Proc, OutputStream) should be
called if textual results are expected.
pr - process to be executed
IOException - I/O exception
public final boolean execute(String pr)
throws IOException
execute(String, OutputStream) should be
called if textual results are expected.
pr - process to be executed
IOException - I/O exceptionpublic abstract String info()
public abstract void close()
throws IOException
IOException - I/O exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||