public class ToEclipseQueue
extends java.io.OutputStream
EXDROutputStream
for a class which can do this).
In addition to the standard methods inherited from its superclass, this class
also provides the ability to attach a QueueListener object to the
ToEclipseQueue, as a handler for data requests from ECLiPSe.
There is no public constructor; to access an ToEclipseQueue use the
createToEclipseQueue() of an object implementing the EclipseConnection interface or the getEclipseStdin() method of
an object implementing the EclipseEngine interface.
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the queue (both eclipse and Java sides), removing any listener.
|
void |
flush()
Calls the superclass'
flush method |
void |
removeListener()
Detach any QueueListener from this ToEclipseQueue.
|
void |
setListener(QueueListener l)
Attach a QueueListener to this ToEclipseQueue for handling
requests for data.
|
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
public void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void setListener(QueueListener l) throws java.io.IOException
dataAvailable() method of the
QueueListener is invoked.java.io.IOExceptionpublic void removeListener()
throws java.io.IOException
java.io.IOExceptionpublic void flush()
throws java.io.IOException
flush methodflush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOException