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 void
close()
void
fsync()
-
-
-
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 interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classorg.apache.commons.io.output.ProxyOutputStream
- Throws:
java.io.IOException
-
-