org.apache.catalina.ssi

Class ByteArrayServletOutputStream


public class ByteArrayServletOutputStream
extends ServletOutputStream

Class that extends ServletOuputStream, used as a wrapper from within SsiInclude

Version:
$Revision: 1.3.2.1 $, $Date: 2004/09/01 16:31:01 $

Author:
Bip Thelin

See Also:
and ByteArrayOutputStream

Field Summary

protected ByteArrayOutputStream
_buf
Our buffer to hold the stream

Constructor Summary

ByteArrayServletOutputStream()
Construct a new ServletOutputStream

Method Summary

byte[]
toByteArray()
Write our stream to the OutputStream provided.
void
write(int b)
Write to our buffer

Field Details

_buf

protected ByteArrayOutputStream _buf
Our buffer to hold the stream

Constructor Details

ByteArrayServletOutputStream

public ByteArrayServletOutputStream()
Construct a new ServletOutputStream

Method Details

toByteArray

public byte[] toByteArray()
Write our stream to the OutputStream provided.

Parameters:


write

public void write(int b)
Write to our buffer

Parameters:
b - The parameter to write


Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.