FileDocCategorySizeDatePackage
ByteArrayServletOutputStream.javaAPI DocGlassfish v2 API2962Fri May 04 22:32:20 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: 1.4 $, $Date: 2007/05/05 05:32:19 $
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);