public class ByteArrayServletOutputStream extends ServletOutputStream
SsiInclude
and ByteArrayOutputStream
Modifier and Type | Field and Description |
---|---|
protected 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.
|
print, print, print, print, print, print, print, println, println, println, println, println, println, println, println
close, flush, write, write
protected final ByteArrayOutputStream buf
public ByteArrayServletOutputStream()
public byte[] toByteArray()
public void write(int b)
write
in class 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-2014 Apache Software Foundation. All Rights Reserved.