|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Basic interface to classes implementing a console to a remote command or shell.
Method Summary | |
void |
changeStdOut(java.io.OutputStream out)
Changes the output stream where stdout is written to in the underlying session channel. |
void |
close()
Closes the session channel. |
void |
close(boolean waitforcloseconfirm)
Closes the session channel. |
boolean |
command(java.lang.String command)
Runs single command on server. |
java.io.OutputStream |
getStdIn()
Gets the stdin stream of the underlying session channel. |
java.io.InputStream |
getStdOut()
Gets the stdout stream of the underlying session channel. |
boolean |
shell()
Starts an interactive shell on the server, note that no PTY is allocated. |
Method Detail |
public boolean command(java.lang.String command)
command
- command line to run
public boolean shell()
public void close()
public void close(boolean waitforcloseconfirm)
public void changeStdOut(java.io.OutputStream out)
out
- new stdout streampublic java.io.OutputStream getStdIn()
public java.io.InputStream getStdOut()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |