Package org.apache.maven.wagon
Class LazyFileOutputStream
java.lang.Object
java.io.OutputStream
org.apache.maven.wagon.LazyFileOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
Variant of FileOutputStream which creates the file only when first portion
of data is written.
- Author:
- Michal Maczka
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
LazyFileOutputStream
-
LazyFileOutputStream
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
equals
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
getChannel
-
getFD
- Throws:
IOException
-
hashCode
public int hashCode() -
toString
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException- See Also:
-
write
- Specified by:
writein classOutputStream- Parameters:
b-- Throws:
IOException
-