FileDocCategorySizeDatePackage
ByteArrayServletOutputStream.javaAPI DocApache Tomcat 6.0.141865Fri Jul 20 04:20:36 BST 2007org.apache.catalina.ssi

ByteArrayServletOutputStream

public class ByteArrayServletOutputStream extends ServletOutputStream
Class that extends ServletOuputStream, used as a wrapper from within SsiInclude
author
Bip Thelin
version
$Revision: 467222 $, $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $
see
ServletOutputStream and ByteArrayOutputStream

Fields Summary
protected ByteArrayOutputStream
buf
Our buffer to hold the stream.
Constructors Summary
public ByteArrayServletOutputStream()
Construct a new ServletOutputStream.



             
      
        buf = new ByteArrayOutputStream();
    
Methods Summary
public byte[]toByteArray()

return
the byte array.

        return buf.toByteArray();
    
public voidwrite(int b)
Write to our buffer.

param
b The parameter to write

        buf.write(b);