Package org.codehaus.plexus.util.io
Class CachingOutputStream
java.lang.Object
java.io.OutputStream
org.codehaus.plexus.util.io.CachingOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
Caching OutputStream to avoid overwriting a file with
the same content.
-
Constructor Summary
ConstructorDescriptionCachingOutputStream
(File path) CachingOutputStream
(Path path) CachingOutputStream
(Path path, int bufferSize) -
Method Summary
-
Constructor Details
-
CachingOutputStream
- Throws:
IOException
-
CachingOutputStream
- Throws:
IOException
-
CachingOutputStream
- Throws:
IOException
-
-
Method Details
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
isModified
public boolean isModified()
-