class NoBodyOutputStream extends ServletOutputStream
Modifier and Type | Field and Description |
---|---|
private int |
contentLength |
private static java.lang.String |
LSTRING_FILE |
private static java.util.ResourceBundle |
lStrings |
Constructor and Description |
---|
NoBodyOutputStream() |
Modifier and Type | Method and Description |
---|---|
(package private) int |
getContentLength() |
boolean |
isReady()
This method can be used to determine if data can be written without blocking.
|
void |
setWriteListener(WriteListener writeListener)
Instructs the
ServletOutputStream to invoke the provided
WriteListener when it is possible to write |
void |
write(byte[] buf,
int offset,
int len) |
void |
write(int b) |
private static final java.lang.String LSTRING_FILE
private static java.util.ResourceBundle lStrings
private int contentLength
int getContentLength()
public void write(int b)
write
in class java.io.OutputStream
public void write(byte[] buf, int offset, int len) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public boolean isReady()
ServletOutputStream
isReady
in class ServletOutputStream
true
if a write to this ServletOutputStream
will succeed, otherwise returns false
.public void setWriteListener(WriteListener writeListener)
ServletOutputStream
ServletOutputStream
to invoke the provided
WriteListener
when it is possible to writesetWriteListener
in class ServletOutputStream
writeListener
- the WriteListener
that should be notified
when it's possible to write