ByteArrayServletOutputStreampublic class ByteArrayServletOutputStream extends ServletOutputStream Class that extends ServletOuputStream, used as a wrapper from within
SsiInclude |
Fields Summary |
---|
protected ByteArrayOutputStream | bufOur buffer to hold the stream. |
Constructors Summary |
---|
public ByteArrayServletOutputStream()Construct a new ServletOutputStream.
buf = new ByteArrayOutputStream();
|
Methods Summary |
---|
public byte[] | toByteArray()
return buf.toByteArray();
| public void | write(int b)Write to our buffer.
buf.write(b);
|
|