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.OutputStreampublic void write(byte[] buf,
int offset,
int len)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic boolean isReady()
ServletOutputStreamisReady in class ServletOutputStreamtrue if a write to this ServletOutputStream will succeed, otherwise returns
false.public void setWriteListener(WriteListener writeListener)
ServletOutputStreamServletOutputStream to invoke the provided WriteListener when it is possible to
writesetWriteListener in class ServletOutputStreamwriteListener - the WriteListener that should be notified when it's possible to write