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:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
public class ExtendedFileOutputStream extends org.apache.commons.io.output.ProxyOutputStream
-
-
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 voidclose()voidfsync()
-
-
-
Method Detail
-
fsync
public void fsync() throws java.io.IOException- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classorg.apache.commons.io.output.ProxyOutputStream- Throws:
java.io.IOException
-
-