Class ContinuousOutputStream

java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
com.mysql.cj.protocol.x.ContinuousOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable

public class ContinuousOutputStream
extends java.io.FilterOutputStream
An OutputStream wrapper that can't be closed and flushes data instead when close() is called.
  • Field Summary

    Fields inherited from class java.io.FilterOutputStream

    out
  • Constructor Summary

    Constructors 
    Modifier Constructor Description
    protected ContinuousOutputStream​(java.io.OutputStream out)  
  • Method Summary

    Modifier and Type Method Description
    void close()
    Instead of closing the OutputStream flushes its data.

    Methods inherited from class java.io.FilterOutputStream

    flush, write, write, write

    Methods inherited from class java.io.OutputStream

    nullOutputStream

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • close

      public void close() throws java.io.IOException
      Instead of closing the OutputStream flushes its data.
      Specified by:
      close in interface java.lang.AutoCloseable
      Specified by:
      close in interface java.io.Closeable
      Overrides:
      close in class java.io.FilterOutputStream
      Throws:
      java.io.IOException