public class WatchableOutputStream extends java.io.ByteArrayOutputStream implements WatchableStream
Constructor and Description |
---|
WatchableOutputStream() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
setWatcher(OutputStreamWatcher watcher) |
reset, size, toByteArray, toString, toString, toString, write, write, writeTo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
size, toByteArray, write
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.ByteArrayOutputStream
java.io.IOException
OutputStream.close()
public void setWatcher(OutputStreamWatcher watcher)
setWatcher
in interface WatchableStream