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, write
public ListenableStream(OutputStream out, String type)
out
- The output stream.public void write(int b) throws IOException
write
in class OutputStream
b
- The byte.IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public void addLineListener(IChangeListener listener)
public void removeLineListener(IChangeListener listener)
Copyright © 2013. All Rights Reserved.