org.apache.tools.ant.taskdefs.optional.net
Class TelnetTask.AntTelnetClient
org.apache.tools.ant.taskdefs.optional.net.TelnetTask.AntTelnetClient
- Enclosing class:
- TelnetTask
- public class TelnetTask.AntTelnetClient
This class handles the abstraction of the telnet protocol.
Currently it is a wrapper around ORO's
NetComponents
Method Summary |
void |
sendString(java.lang.String s,
boolean echoString)
Write this string to the telnet session. |
void |
waitForString(java.lang.String s)
Read from the telnet session until the string we are
waiting for is found |
void |
waitForString(java.lang.String s,
java.lang.Integer timeout)
Read from the telnet session until the string we are
waiting for is found or the timeout has been reached |
TelnetTask.AntTelnetClient
public TelnetTask.AntTelnetClient()
waitForString
public void waitForString(java.lang.String s)
- Read from the telnet session until the string we are
waiting for is found
waitForString
public void waitForString(java.lang.String s,
java.lang.Integer timeout)
- Read from the telnet session until the string we are
waiting for is found or the timeout has been reached
sendString
public void sendString(java.lang.String s,
boolean echoString)
- Write this string to the telnet session.
Copyright ? 2000 Apache Software Foundation. All Rights Reserved.