Class WebApplicationOutputStream

java.lang.Object
java.io.OutputStream
jakarta.servlet.ServletOutputStream
cloud.piranha.core.api.WebApplicationOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable
Direct Known Subclasses:
DefaultWebApplicationOutputStream

public abstract class WebApplicationOutputStream extends jakarta.servlet.ServletOutputStream
The WebApplicationOutputStream API.
Author:
Manfred Riem ([email protected])
  • Constructor Details

    • WebApplicationOutputStream

      public WebApplicationOutputStream()
  • Method Details

    • flushBuffer

      public abstract void flushBuffer() throws IOException
      Flush the buffer.
      Throws:
      IOException - when an I/O error occurs.
    • getBufferSize

      public abstract int getBufferSize()
      Get the buffer size.
      Returns:
      the buffer size.
    • getOutputStream

      public abstract OutputStream getOutputStream()
      Get the output stream.
      Returns:
      the output stream.
    • getResponse

      public abstract WebApplicationResponse getResponse()
      Get the web application response.
      Returns:
      the web application response.
    • resetBuffer

      public abstract void resetBuffer()
      Reset the buffer.
    • setBufferSize

      public abstract void setBufferSize(int bufferSize)
      Set the buffer size.
      Parameters:
      bufferSize - the buffer size.
    • setOutputStream

      public abstract void setOutputStream(OutputStream outputStream)
      Set the output stream.
      Parameters:
      outputStream - the output stream.
    • setResponse

      public abstract void setResponse(WebApplicationResponse response)
      Set the web application response.
      Parameters:
      response - the web application response.