java.lang.Objectcom.sshtools.j2ssh.session.SessionOutputReader
This class provides a utility to read and parse the output a session, providing methods to wait for specific strings such as the prompt or command input requests.
Lee - David Painter$ - Revision: 1.13 $0.2.1 - | Nested Class Summary: | ||
|---|---|---|
| class | SessionOutputReader.SessionOutputListener | The ChannelEventListener to receive event notifications |
| Field Summary | ||
|---|---|---|
| SessionChannelClient | session | |
| int | pos | |
| int | mark | |
| String | output | |
| Constructor: |
|---|
Contructs the session reader.
|
| Method from com.sshtools.j2ssh.session.SessionOutputReader Summary: |
|---|
| echoLineByLineToClose, getMarkedOutput, getOutput, getPosition, markCurrentPosition, markPosition, waitForString, waitForString, waitForString, waitForString |
| Methods from java.lang.Object: |
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from com.sshtools.j2ssh.session.SessionOutputReader Detail: |
|---|
|
Returns a string containing the session output from the current marked position to the end of the output. |
|
Returns the current position of the session input pointer. This pointer
is set to the position of the matched string everytime a match is found
during a call by |
|
|
Wait for a given String in the output buffer. This method will block until the string is found. |
Wait for a given String in the output buffer. |
Wait for a given String in the output buffer. |
Wait for a given String in the output buffer. When this method is called the method will block unitil either the String arrives in the input buffer or the timeout specified has elasped. |