Package com.mysql.cj.protocol
Class WatchableOutputStream
java.lang.Object
java.io.OutputStream
java.io.ByteArrayOutputStream
com.mysql.cj.protocol.WatchableOutputStream
- All Implemented Interfaces:
WatchableStream,java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
public class WatchableOutputStream extends java.io.ByteArrayOutputStream implements WatchableStream
A java.io.OutputStream used to write ASCII data into Blobs and Clobs
-
Field Summary
-
Constructor Summary
Constructors Constructor Description WatchableOutputStream() -
Method Summary
Modifier and Type Method Description voidclose()voidsetWatcher(OutputStreamWatcher watcher)Methods inherited from class java.io.ByteArrayOutputStream
reset, size, toByteArray, toString, toString, toString, toString, write, write, writeBytes, writeTo
-
Constructor Details
-
WatchableOutputStream
public WatchableOutputStream()
-
-
Method Details
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.ByteArrayOutputStream- Throws:
java.io.IOException- See Also:
OutputStream.close()
-
setWatcher
- Specified by:
setWatcherin interfaceWatchableStream
-