java.lang.Object
java.io.OutputStream
jakarta.servlet.ServletOutputStream
jakarta.servlet.http.NoBodyOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
@Deprecated(forRemoval=true,
since="Servlet 6.0")
class NoBodyOutputStream
extends ServletOutputStream
Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intDeprecated, for removal: This API element is subject to removal in a future version.(package private) static ThreadLocal<Boolean>Deprecated, for removal: This API element is subject to removal in a future version.private static final StringDeprecated, for removal: This API element is subject to removal in a future version.private static ResourceBundleDeprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoidflush()Deprecated, for removal: This API element is subject to removal in a future version.(package private) intDeprecated, for removal: This API element is subject to removal in a future version.booleanisReady()Deprecated, for removal: This API element is subject to removal in a future version.Returns true if data can be written without blocking else returns false.(package private) voidreset()Deprecated, for removal: This API element is subject to removal in a future version.voidsetWriteListener(WriteListener writeListener) Deprecated, for removal: This API element is subject to removal in a future version.Instructs theServletOutputStreamto invoke the providedWriteListenerwhen it is possible to writevoidwrite(byte[] buf, int offset, int len) Deprecated, for removal: This API element is subject to removal in a future version.voidwrite(int b) Deprecated, for removal: This API element is subject to removal in a future version.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, nullOutputStream, write
-
Field Details
-
LSTRING_FILE
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
lStrings
Deprecated, for removal: This API element is subject to removal in a future version. -
disableFlush
Deprecated, for removal: This API element is subject to removal in a future version. -
contentLength
private int contentLengthDeprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Details
-
NoBodyOutputStream
NoBodyOutputStream()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
reset
void reset()Deprecated, for removal: This API element is subject to removal in a future version. -
getContentLength
int getContentLength()Deprecated, for removal: This API element is subject to removal in a future version. -
write
public void write(int b) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
writein classOutputStream
-
write
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
writein classOutputStream- Throws:
IOException
-
flush
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
isReady
public boolean isReady()Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:ServletOutputStreamReturns true if data can be written without blocking else returns false.If this method returns false and a
WriteListenerhas been set withServletOutputStream.setWriteListener(WriteListener), then container will subsequently invokeWriteListener.onWritePossible()once a write operation becomes possible without blocking. Other than the initial call,WriteListener.onWritePossible()will only be called if and only if this method is called and returns false.- Specified by:
isReadyin classServletOutputStream- Returns:
trueif data can be written without blocking, otherwise returnsfalse.- See Also:
-
setWriteListener
Deprecated, for removal: This API element is subject to removal in a future version.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
-