public class LibsshShell extends AbstractLifecycleComponentWithEvents implements SshShell
| Constructor and Description |
|---|
LibsshShell(SshLibrary.ssh_session libSshSession,
SshLibrary library,
java.lang.String termType,
int cols,
int rows,
boolean useExtendedStream) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDataListener(SshDataListener listener)
Add a listener to those informed when a component produces data.
|
int |
exitCode()
Get the exit code of this command or shell (when known).
|
java.io.InputStream |
getExtendedInputStream()
Get the extended input stream.
|
java.io.InputStream |
getInputStream()
Get the input stream for this channel.
|
java.io.OutputStream |
getOutputStream()
Get the output stream for this channel.
|
void |
onClose() |
void |
onOpen() |
void |
removeDataListener(SshDataListener listener)
Remove a listener from those informed when a component produces data.
|
void |
requestPseudoTerminalChange(int width,
int height,
int pixw,
int pixh)
Request that the pseudo terminal attributes are changed.
|
checkOpen, close, isOpen, openaddListener, fireClosed, fireClosing, fireOpened, getListeners, removeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddListener, close, isOpen, open, removeListenerpublic LibsshShell(SshLibrary.ssh_session libSshSession, SshLibrary library, java.lang.String termType, int cols, int rows, boolean useExtendedStream)
public java.io.InputStream getInputStream()
throws java.io.IOException
SshStreamChannelgetInputStream in interface SshStreamChanneljava.io.IOExceptionpublic java.io.OutputStream getOutputStream()
throws java.io.IOException
SshStreamChannelgetOutputStream in interface SshStreamChanneljava.io.IOExceptionpublic void addDataListener(SshDataListener listener)
SshDataProducingComponentaddDataListener in interface SshDataProducingComponentlistener - listenerpublic void removeDataListener(SshDataListener listener)
SshDataProducingComponentremoveDataListener in interface SshDataProducingComponentlistener - listenerpublic void onOpen()
throws SshException
onOpen in class AbstractLifecycleComponentWithEventsSshExceptionpublic void onClose()
throws SshException
onClose in class AbstractLifecycleComponentWithEventsSshExceptionpublic java.io.InputStream getExtendedInputStream()
throws java.io.IOException
SshExtendedStreamChannelgetExtendedInputStream in interface SshExtendedStreamChanneljava.io.IOExceptionpublic void requestPseudoTerminalChange(int width,
int height,
int pixw,
int pixh)
throws SshException
SshShellrequestPseudoTerminalChange in interface SshShellwidth - new terminal widthheight - new terminal heightpixw - new pixel widthpixh - new pixel heightSshExceptionpublic int exitCode()
throws java.io.IOException
SshExtendedStreamChannelexitCode in interface SshExtendedStreamChanneljava.io.IOExceptionCopyright © 2018. All rights reserved.