Package com.netcracker.profiler.io
Class DefaultServletOutputStream
java.lang.Object
java.io.OutputStream
jakarta.servlet.ServletOutputStream
com.netcracker.profiler.io.DefaultServletOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class DefaultServletOutputStream
extends jakarta.servlet.ServletOutputStream
A default implementation of abstract servlet output stream.
- Since:
- 2.6
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a default servlet output stream which delegates to given output stream. -
Method Summary
Methods inherited from class jakarta.servlet.ServletOutputStream
print, print, print, print, print, print, print, println, println, println, println, println, println, println, println, writeMethods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
DefaultServletOutputStream
Constructs a default servlet output stream which delegates to given output stream.- Parameters:
output- The output stream to let this servlet output stream delegate to.
-
-
Method Details
-
setWriteListener
public void setWriteListener(jakarta.servlet.WriteListener listener) - Specified by:
setWriteListenerin classjakarta.servlet.ServletOutputStream
-
isReady
public boolean isReady()- Specified by:
isReadyin classjakarta.servlet.ServletOutputStream
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classjakarta.servlet.ServletOutputStream- Throws:
IOException
-