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

    Fields inherited from class java.io.ByteArrayOutputStream

    buf, count
  • 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

    Methods inherited from class java.io.OutputStream

    flush, nullOutputStream, write

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.mysql.cj.protocol.WatchableStream

    size, toByteArray, write
  • Constructor Details

  • Method Details

    • close

      public void close() throws java.io.IOException
      Specified by:
      close in interface java.lang.AutoCloseable
      Specified by:
      close in interface java.io.Closeable
      Overrides:
      close in class java.io.ByteArrayOutputStream
      Throws:
      java.io.IOException
      See Also:
      OutputStream.close()
    • setWatcher

      public void setWatcher​(OutputStreamWatcher watcher)
      Specified by:
      setWatcher in interface WatchableStream