| java.lang.Object java.io.OutputStream org.apache.cocoon.bean.helpers.DelayedOutputStream
DelayedOutputStream | public class DelayedOutputStream extends OutputStream (Code) | | A output stream writing to a ByteArrayOutputStream, until an OutputStream target is defined.
author: huber@apache.org author: uv@upaya.co.uk version: CVS $Id: DelayedOutputStream.java 433543 2006-08-22 06:22:54Z crossley $ |
DelayedOutputStream | public DelayedOutputStream()(Code) | | Constructor for the DelayedFileOutputStream object,
create a ByteArrayOutputStream only
|
close | public void close() throws IOException(Code) | | Close ByteArrayOutputStrem, and FileOutputStream, depending on inner
state of this stream
exception: IOException - thrown iff implicitly flush of baos to fos fails, or closingof baos, or fos fails |
flush | public void flush() throws IOException(Code) | | Flush ByteArrayOutputStrem, writing content to FileOutputStream,
flush FileOutputStream
exception: IOException - thrown iff implicitly flush of baos to fos fails, or flushingof baos, or fos fails |
getContent | public byte[] getContent()(Code) | | Return the contents of the stream as a byte array
|
setFileOutputStream | public void setFileOutputStream(OutputStream outputStream) throws FileNotFoundException(Code) | | Creates a file output stream to write to the file represented by the specified File object.
Parameters: outputStream - The new fileOutputStream value exception: FileNotFoundException - thrown if creating of FileOutputStream fails |
size | public int size()(Code) | | Gets the size of the content of the current output stream
|
write | public void write(int b) throws IOException(Code) | | Write into ByteArrayOutputStrem, or FileOutputStream, depending on inner
state of this stream
Parameters: b - Description of Parameter exception: IOException - thrown iff implicitly flush of baos to fos fails, or writingof baos, or fos fails |
write | public void write(byte b) throws IOException(Code) | | Write into ByteArrayOutputStrem, or FileOutputStream, depending on inner
state of this stream
Parameters: b - Description of Parameter exception: IOException - thrown iff implicitly flush of baos to fos fails, or writingof baos, or fos fails |
write | public void write(byte b, int off, int len) throws IOException(Code) | | Write into ByteArrayOutputStrem, or FileOutputStream, depending on inner
state of this stream
Parameters: b - Description of Parameter Parameters: off - Description of Parameter Parameters: len - Description of Parameter exception: IOException - thrown iff implicitly flush of baos to fos fails, or writingof baos, or fos fails |
|
|