org.apache.maven.wagon
Class LazyFileOutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byorg.apache.maven.wagon.LazyFileOutputStream

public class LazyFileOutputStream
extends OutputStream

Variant of FileOutputStream which creates the file only when first portion of data is written.

Version:
$Id: LazyFileOutputStream.java 162476 2005-04-19 02:49:45Z brett $
Author:
Michal Maczka

Constructor Summary
LazyFileOutputStream(File file)
           
LazyFileOutputStream(String filename)
           
 
Method Summary
 void close()
           
 boolean equals(Object obj)
           
 void flush()
           
 FileChannel getChannel()
           
 FileDescriptor getFD()
           
 int hashCode()
           
 String toString()
           
 void write(byte[] b)
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LazyFileOutputStream

public LazyFileOutputStream(String filename)

LazyFileOutputStream

public LazyFileOutputStream(File file)
Method Detail

close

public void close()
           throws IOException
Throws:
IOException

equals

public boolean equals(Object obj)

flush

public void flush()
           throws IOException
Throws:
IOException

getChannel

public FileChannel getChannel()

getFD

public FileDescriptor getFD()
                     throws IOException
Throws:
IOException

hashCode

public int hashCode()

toString

public String toString()

write

public void write(byte[] b)
           throws IOException
Throws:
IOException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws IOException
Throws:
IOException
See Also:
OutputStream.write(byte[], int, int)

write

public void write(int b)
           throws IOException
Parameters:
b -
Throws:
IOException


Copyright © 2003-2006 Apache Software Foundation. All Rights Reserved.