|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ijsberg.iglu.util.io.StdIODialog
public class StdIODialog
Takes a configured In- and OutputStream such as System.in and System.out which are used as standard in- and output for an underlying process such as a command shell.
| Constructor Summary | |
|---|---|
StdIODialog(InputStream in,
OutputStream out,
Transceiver transceiver)
Constructs dialog for an object transceiver. |
|
| Method Summary | |
|---|---|
void |
close()
Closes dialog and (transceiver) process. |
void |
onReceive(Object o)
Writes received object to an output stream. |
void |
onTransmissionClose()
Enters closed state. |
void |
open()
Starts communicating. |
void |
openAsync()
Starts communicating in a separate thread. |
void |
run()
Starts communicating. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StdIODialog(InputStream in,
OutputStream out,
Transceiver transceiver)
in - out - transceiver - | Method Detail |
|---|
public void openAsync()
throws IOException
IOException
public void open()
throws IOException
IOExceptionpublic void close()
public void run()
run in interface Runnablepublic void onReceive(Object o)
onReceive in interface Receivero - public void onTransmissionClose()
onTransmissionClose in interface Receiver
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||