org.apache.maven.wagon
Class LazyFileOutputStream
java.lang.Object
java.io.OutputStream
org.apache.maven.wagon.LazyFileOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public class LazyFileOutputStream
- extends OutputStream
Variant of FileOutputStream which creates the file only when first portion
of data is written.
- Version:
- $Id: LazyFileOutputStream.java 668181 2008-06-16 15:05:52Z brett $
- Author:
- Michal Maczka
LazyFileOutputStream
public LazyFileOutputStream(String filename)
LazyFileOutputStream
public LazyFileOutputStream(File file)
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Overrides:
close
in class OutputStream
- Throws:
IOException
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
flush
public void flush()
throws IOException
- Specified by:
flush
in interface Flushable
- Overrides:
flush
in class OutputStream
- Throws:
IOException
getChannel
public FileChannel getChannel()
getFD
public FileDescriptor getFD()
throws IOException
- Throws:
IOException
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
write
public void write(byte[] b)
throws IOException
- Overrides:
write
in class OutputStream
- Throws:
IOException
write
public void write(byte[] b,
int off,
int len)
throws IOException
- Overrides:
write
in class OutputStream
- Throws:
IOException
- See Also:
OutputStream.write(byte[], int, int)
write
public void write(int b)
throws IOException
- Specified by:
write
in class OutputStream
- Parameters:
b
-
- Throws:
IOException
Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.