WatchableOutputStream
Date: 2016-03-08

com.mysql.jdbc

## Class WatchableOutputStream

- java.lang.Object
- - java.io.OutputStream
  - - java.io.ByteArrayOutputStream
    - - com.mysql.jdbc.WatchableOutputStream

- All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable

       class WatchableOutputStream
      extends java.io.ByteArrayOutputStream

  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 and Description
    `WatchableOutputStream()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `close()`
    `void` | `setWatcher(OutputStreamWatcher watcher)`

    - ### Methods inherited from class java.io.ByteArrayOutputStream

      `reset, size, toByteArray, toString, toString, toString, write, write, writeTo`

    - ### Methods inherited from class java.io.OutputStream

      `flush, write`

    - ### Methods inherited from class java.lang.Object

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

- - ### Constructor Detail

    - #### WatchableOutputStream

          WatchableOutputStream()

  - ### Method Detail

    - #### close

          public void close()
                     throws java.io.IOException

      Specified by:
        `close` in interface `java.io.Closeable`
      Specified by:
        `close` in interface `java.lang.AutoCloseable`
      Overrides:
        `close` in class `java.io.ByteArrayOutputStream`
      Throws:
        `java.io.IOException`
      See Also:
        `OutputStream.close()`

    - #### setWatcher

          public void setWatcher(OutputStreamWatcher watcher)

      Parameters:
        `watcher` -