public class ListenableStream extends OutputStream
| Constructor and Description |
|---|
ListenableStream(OutputStream out,
String type)
Create a new stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLineListener(IChangeListener listener)
Add a line listener.
|
void |
close()
Close the streams.
|
void |
flush()
Flush the streams.
|
void |
removeLineListener(IChangeListener listener)
Remove a line listener.
|
void |
write(int b)
Write a byte to the stream.
|
write, writepublic ListenableStream(OutputStream out, String type)
out - The output stream.public void write(int b)
throws IOException
write in class OutputStreamb - The byte.IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void addLineListener(IChangeListener listener)
public void removeLineListener(IChangeListener listener)
Copyright © 2012. All Rights Reserved.