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 intprivate static final Stringprivate static ResourceBundle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) intbooleanisReady()This method can be used to determine if data can be written without blocking.voidsetWriteListener(WriteListener writeListener) Instructs theServletOutputStreamto invoke the providedWriteListenerwhen it is possible to writevoidwrite(byte[] buf, int offset, int len) voidwrite(int b) Methods inherited from class jakarta.servlet.ServletOutputStream
print, print, print, print, print, print, print, println, println, println, println, println, println, println, printlnMethods 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:
writein classOutputStream
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
isReady
public boolean isReady()Description copied from class:ServletOutputStreamThis method can be used to determine if data can be written without blocking.- Specified by:
isReadyin classServletOutputStream- Returns:
trueif a write to thisServletOutputStreamwill succeed, otherwise returnsfalse.
-
setWriteListener
Description copied from class:ServletOutputStreamInstructs theServletOutputStreamto invoke the providedWriteListenerwhen it is possible to write- Specified by:
setWriteListenerin classServletOutputStream- Parameters:
writeListener- theWriteListenerthat should be notified when it's possible to write
-