Class WrappedServletOutputStream

java.lang.Object
java.io.OutputStream
jakarta.servlet.ServletOutputStream
nl.vpro.web.support.WrappedServletOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class WrappedServletOutputStream extends jakarta.servlet.ServletOutputStream
To wrap the output stream we need an implementation of a ServletOutputStream
  • Constructor Details

    • WrappedServletOutputStream

      public WrappedServletOutputStream(OutputStream stream)
  • Method Details

    • write

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

      public void write(@org.checkerframework.checker.nullness.qual.NonNull byte[] b) throws IOException
      Overrides:
      write in class OutputStream
      Throws:
      IOException
    • write

      public void write(@org.checkerframework.checker.nullness.qual.NonNull byte[] b, int off, int len) throws IOException
      Overrides:
      write in class OutputStream
      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