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 Details

    • ServletOutputStreamWrapper

      public ServletOutputStreamWrapper(OutputStream outputStream)
  • Method Details

    • write

      public void write(int b) throws IOException
      Specified by:
      write in class OutputStream
      Throws:
      IOException
    • flush

      public void flush() throws IOException
      Specified by:
      flush in interface Flushable
      Overrides:
      flush in class OutputStream
      Throws:
      IOException
    • flushInternalBuffer

      protected void flushInternalBuffer() throws IOException
      Throws:
      IOException
    • isReady

      public boolean isReady()
      Specified by:
      isReady in class jakarta.servlet.ServletOutputStream
    • setWriteListener

      public void setWriteListener(jakarta.servlet.WriteListener writeListener)
      Specified by:
      setWriteListener in class jakarta.servlet.ServletOutputStream