|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.io.OutputStream
org.apache.cocoon.ant.DelayedFileOutputStream
A output stream writing to a ByteArrayOutputStream, until FilOutputStream target is defined.
| Constructor Summary | |
DelayedFileOutputStream()
Constructor for the DelayedFileOutputStream object, create a ByteArrayOutputStream only |
|
| Method Summary | |
void |
close()
Close ByteArrayOutputStrem, and FileOutputStream, depending on inner state of this stream |
void |
flush()
Flush ByteArrayOutputStrem, writing content to FileOutputStream, flush FileOutputStream |
void |
setFileOutputStream(File file)
Creates a file output stream to write to the file represented by the specified File object. |
void |
setFileOutputStream(File file,
boolean append)
Creates a file output stream to write to the file represented by the specified File object. |
void |
setFileOutputStream(FileDescriptor fdObj)
Creates an output file stream to write to the specified file descriptor, which represents an existing connection to an actual file in the file system. |
void |
setFileOutputStream(String name)
Creates an output file stream to write to the file with the specified name. |
void |
setFileOutputStream(String name,
boolean append)
Creates an output file stream to write to the file with the specified name. |
void |
write(byte[] b)
Write into ByteArrayOutputStrem, or FileOutputStream, depending on inner state of this stream |
void |
write(byte[] b,
int off,
int len)
Write into ByteArrayOutputStrem, or FileOutputStream, depending on inner state of this stream |
void |
write(int b)
Write into ByteArrayOutputStrem, or FileOutputStream, depending on inner state of this stream |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DelayedFileOutputStream()
| Method Detail |
public void setFileOutputStream(File file)
throws FileNotFoundException
file - The new fileOutputStream value
FileNotFoundException - thrown if creating of FileOutputStream fails
public void setFileOutputStream(File file,
boolean append)
throws IOException
file - The new fileOutputStream valueappend - The new fileOutputStream value
IOException - thrown if creating of FileOutputStream failspublic void setFileOutputStream(FileDescriptor fdObj)
fdObj - The new fileOutputStream value
public void setFileOutputStream(String name)
throws FileNotFoundException
name - The new fileOutputStream value
FileNotFoundException - thrown if creating of FileOutputStream fails
public void setFileOutputStream(String name,
boolean append)
throws FileNotFoundException
name - The new fileOutputStream valueappend - The new fileOutputStream value
FileNotFoundException - thrown if creating of FileOutputStream fails
public void write(int b)
throws IOException
b - Description of Parameter
IOException - thrown iff implicitly flush of baos to fos fails, or writing
of baos, or fos fails
public void write(byte[] b)
throws IOException
b - Description of Parameter
IOException - thrown iff implicitly flush of baos to fos fails, or writing
of baos, or fos fails
public void write(byte[] b,
int off,
int len)
throws IOException
b - Description of Parameteroff - Description of Parameterlen - Description of Parameter
IOException - thrown iff implicitly flush of baos to fos fails, or writing
of baos, or fos fails
public void close()
throws IOException
IOException - thrown iff implicitly flush of baos to fos fails, or closing
of baos, or fos fails
public void flush()
throws IOException
IOException - thrown iff implicitly flush of baos to fos fails, or flushing
of baos, or fos fails
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||