|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object frysk.expunit.Child
class Child
The child being waited on.
Field Summary | |
---|---|
private PseudoTerminal |
child
|
private boolean |
eof
Detected end-of-file, or hang-up. |
protected static Log |
fine
|
private static Log |
finest
|
private String |
output
Buffer containing all the unmatched output from the child. |
private ProcessIdentifier |
pid
|
Constructor Summary | |
---|---|
Child(String[] args)
Create an expect instance running the specified program args[0] and args. |
Method Summary | |
---|---|
void |
close()
Clean up. |
(package private) void |
expectMilliseconds(long timeoutMilliseconds,
Match[] matches)
Expect one of the specified patterns; throw TimeoutException if timeoutSecond expires; throw EofException if end-of-file is encountered. |
void |
finalize()
Finalizer, also tries to clean up. |
(package private) ProcessIdentifier |
getPid()
Return the Process ID of the child. |
(package private) void |
send(String string)
Send "string" to the child process. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static Log fine
private static Log finest
private final PseudoTerminal child
private final ProcessIdentifier pid
private String output
private boolean eof
Constructor Detail |
---|
Child(String[] args)
Method Detail |
---|
public String toString()
toString
in class Object
public void close()
public void finalize()
finalize
in class Object
ProcessIdentifier getPid()
void send(String string)
void expectMilliseconds(long timeoutMilliseconds, Match[] matches)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |