Package fr.gouv.vitam.common.stream

# Class ExtendedFileOutputStream

java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
org.apache.commons.io.output.ProxyOutputStream
fr.gouv.vitam.common.stream.ExtendedFileOutputStream

All Implemented Interfaces:
  `Closeable`, `Flushable`, `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(Path filepath, boolean fsyncOnClose)`

- ## Method Summary

  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 Details

  - ### ExtendedFileOutputStream

    public ExtendedFileOutputStream(Path filepath, boolean fsyncOnClose) throws IOException
    Throws:
      `IOException`

- ## Method Details

  - ### fsync

    public void fsync() throws IOException
    Throws:
      `IOException`

  - ### close

    public void close() throws IOException
    Specified by:
      `close` in interface `AutoCloseable`
    Specified by:
      `close` in interface `Closeable`
    Overrides:
      `close` in class `org.apache.commons.io.output.ProxyOutputStream`
    Throws:
      `IOException`