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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
equals
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
getChannel
-
getFD
- Throws:
IOException
-
hashCode
public int hashCode() -
toString
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
- See Also:
-
write
- Specified by:
write
in classOutputStream
- Parameters:
b
-- Throws:
IOException
-