org.apache.catalina.ssi

Class ByteArrayServletOutputStream

public class ByteArrayServletOutputStream extends ServletOutputStream

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

Version: $Revision: 467222 $, $Date: 2006-10-24 05:17:11 +0200 (Tue, 24 Oct 2006) $

Author: Bip Thelin

See Also: ServletOutputStream and ByteArrayOutputStream

Field Summary
protected ByteArrayOutputStreambuf
Our buffer to hold the stream.
Constructor Summary
ByteArrayServletOutputStream()
Construct a new ServletOutputStream.
Method Summary
byte[]toByteArray()
voidwrite(int b)
Write to our buffer.

Field Detail

buf

protected ByteArrayOutputStream buf
Our buffer to hold the stream.

Constructor Detail

ByteArrayServletOutputStream

public ByteArrayServletOutputStream()
Construct a new ServletOutputStream.

Method Detail

toByteArray

public byte[] toByteArray()

Returns: the byte array.

write

public void write(int b)
Write to our buffer.

Parameters: b The parameter to write

Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.