Class ExtendedFileOutputStream

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

    public class ExtendedFileOutputStream
    extends org.apache.commons.io.output.ProxyOutputStream
    • Field Summary

      • Fields inherited from class java.io.FilterOutputStream

        out
    • Constructor Summary

      Constructors 
      Constructor Description
      ExtendedFileOutputStream​(java.nio.file.Path filepath, boolean fsyncOnClose)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void fsync()  
      • Methods inherited from class org.apache.commons.io.output.ProxyOutputStream

        afterWrite, beforeWrite, flush, handleIOException, 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 Detail

      • ExtendedFileOutputStream

        public ExtendedFileOutputStream​(java.nio.file.Path filepath,
                                        boolean fsyncOnClose)
                                 throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • fsync

        public void fsync()
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • 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 org.apache.commons.io.output.ProxyOutputStream
        Throws:
        java.io.IOException