Class ServletOutputStreamWrapper
java.lang.Object
java.io.OutputStream
jakarta.servlet.ServletOutputStream
org.broadleafcommerce.common.web.util.ServletOutputStreamWrapper
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class ServletOutputStreamWrapper
extends jakarta.servlet.ServletOutputStream
Delegate standard
ServletOutputStream write calls to standard buffered IO.- Author:
- Jeff Fischer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidflush()protected voidbooleanisReady()voidsetWriteListener(jakarta.servlet.WriteListener writeListener) 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, nullOutputStream, write, write
-
Constructor Details
-
ServletOutputStreamWrapper
-
-
Method Details
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
flushInternalBuffer
- Throws:
IOException
-
isReady
public boolean isReady()- Specified by:
isReadyin classjakarta.servlet.ServletOutputStream
-
setWriteListener
public void setWriteListener(jakarta.servlet.WriteListener writeListener) - Specified by:
setWriteListenerin classjakarta.servlet.ServletOutputStream
-