public class ByteArrayServletOutputStream extends ServletOutputStream
SsiInclude
and ByteArrayOutputStream
Modifier and Type | Field and Description |
---|---|
protected java.io.ByteArrayOutputStream |
buf
Our buffer to hold the stream.
|
Constructor and Description |
---|
ByteArrayServletOutputStream()
Construct a new ServletOutputStream.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isReady()
TODO SERVLET 3.1
|
void |
setWriteListener(WriteListener listener)
TODO SERVLET 3.1
|
byte[] |
toByteArray() |
void |
write(int b)
Write to our buffer.
|
public ByteArrayServletOutputStream()
public byte[] toByteArray()
public void write(int b)
write
in class java.io.OutputStream
b
- The parameter to writepublic boolean isReady()
isReady
in class ServletOutputStream
true
if data can be written, else false
public void setWriteListener(WriteListener listener)
setWriteListener
in class ServletOutputStream
listener
- The non-blocking IO write listenerCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.