public class ServletByteArrayOutputStream extends ServletOutputStream
Constructor and Description |
---|
ServletByteArrayOutputStream() |
Modifier and Type | Method and Description |
---|---|
java.io.ByteArrayOutputStream |
getOutputStream() |
boolean |
isReady()
This method can be used to determine if data can be written without blocking.
|
void |
setWriteListener(WriteListener listener)
Instructs the
ServletOutputStream to invoke the provided
WriteListener when it is possible to write |
void |
write(int b) |
public boolean isReady()
ServletOutputStream
isReady
in class ServletOutputStream
true
if a write to this ServletOutputStream
will succeed, otherwise returns false
.public void setWriteListener(WriteListener listener)
ServletOutputStream
ServletOutputStream
to invoke the provided
WriteListener
when it is possible to writesetWriteListener
in class ServletOutputStream
listener
- the WriteListener
that should be notified
when it's possible to writepublic void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public java.io.ByteArrayOutputStream getOutputStream()