java.lang.Object
java.io.OutputStream
javax.servlet.ServletOutputStream
javax.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 int
Deprecated, 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 String
Deprecated, for removal: This API element is subject to removal in a future version.private static ResourceBundle
Deprecated, 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 TypeMethodDescriptionvoid
flush()
Deprecated, for removal: This API element is subject to removal in a future version.(package private) int
Deprecated, for removal: This API element is subject to removal in a future version.boolean
isReady()
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) void
reset()
Deprecated, for removal: This API element is subject to removal in a future version.void
setWriteListener
(WriteListener writeListener) Deprecated, for removal: This API element is subject to removal in a future version.Instructs theServletOutputStream
to invoke the providedWriteListener
when it is possible to writevoid
write
(byte[] buf, int offset, int len) Deprecated, for removal: This API element is subject to removal in a future version.void
write
(int b) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class javax.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, 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:
write
in classOutputStream
-
write
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
write
in classOutputStream
- Throws:
IOException
-
flush
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in 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:ServletOutputStream
Returns true if data can be written without blocking else returns false.If this method returns false and a
WriteListener
has 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:
isReady
in classServletOutputStream
- Returns:
true
if 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: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
-