Package jakarta.servlet.http
Class NoBodyOutputStream
java.lang.Object
java.io.OutputStream
jakarta.servlet.ServletOutputStream
jakarta.servlet.http.NoBodyOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private static final String
private static ResourceBundle
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) int
boolean
isReady()
This method can be used to determine if data can be written without blocking.void
setWriteListener
(WriteListener writeListener) Instructs theServletOutputStream
to invoke the providedWriteListener
when it is possible to writevoid
write
(byte[] buf, int offset, int len) void
write
(int b) Methods inherited from class jakarta.servlet.ServletOutputStream
print, print, print, print, print, print, print, println, println, println, println, println, println, println, println
Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream, write
-
Field Details
-
LSTRING_FILE
- See Also:
-
lStrings
-
contentLength
private int contentLength
-
-
Constructor Details
-
NoBodyOutputStream
NoBodyOutputStream()
-
-
Method Details
-
getContentLength
int getContentLength() -
write
public void write(int b) - Specified by:
write
in classOutputStream
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
isReady
public boolean isReady()Description copied from class:ServletOutputStream
This method can be used to determine if data can be written without blocking.- Specified by:
isReady
in classServletOutputStream
- Returns:
true
if a write to thisServletOutputStream
will succeed, otherwise returnsfalse
.
-
setWriteListener
Description copied from class:ServletOutputStream
Instructs theServletOutputStream
to invoke the providedWriteListener
when it is possible to write- Specified by:
setWriteListener
in classServletOutputStream
- Parameters:
writeListener
- theWriteListener
that should be notified when it's possible to write
-