|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.core.Session
org.basex.core.LocalSession
public class LocalSession
This wrapper executes commands locally.
Constructor Summary | |
---|---|
LocalSession(Context context)
Constructor. |
Method Summary | |
---|---|
void |
close()
Closes the session. |
boolean |
execute(Proc pr,
OutputStream out)
Executes a process and prints the result to the specified stream. |
boolean |
execute(String str,
OutputStream out)
Executes a command and prints the result to the specified stream. |
String |
info()
Returns process info. |
Methods inherited from class org.basex.core.Session |
---|
execute, execute |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocalSession(Context context)
context
- contextMethod Detail |
---|
public boolean execute(String str, OutputStream out) throws IOException
Session
execute
in class Session
str
- command to be executedout
- output stream
IOException
- I/O exceptionpublic boolean execute(Proc pr, OutputStream out)
Session
execute
in class Session
pr
- process to be executedout
- output stream
public String info()
Session
info
in class Session
public void close()
Session
close
in class Session
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |