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 void
close()
void
setWatcher(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:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.ByteArrayOutputStream
- Throws:
java.io.IOException
- See Also:
OutputStream.close()
-
setWatcher
- Specified by:
setWatcher
in interfaceWatchableStream
-