Class MockServletInputStream

java.lang.Object
java.io.InputStream
jakarta.servlet.ServletInputStream
io.github.cdiunit.internal.servlet6.MockServletInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class MockServletInputStream extends jakarta.servlet.ServletInputStream
Mock implementation of ServletInputStream.
  • Constructor Details

    • MockServletInputStream

      public MockServletInputStream(byte[] data)
  • Method Details

    • read

      public int read() throws IOException
      Specified by:
      read in class InputStream
      Throws:
      IOException
    • isFinished

      public boolean isFinished()
      Specified by:
      isFinished in class jakarta.servlet.ServletInputStream
    • isReady

      public boolean isReady()
      Specified by:
      isReady in class jakarta.servlet.ServletInputStream
    • setReadListener

      public void setReadListener(jakarta.servlet.ReadListener readListener)
      Specified by:
      setReadListener in class jakarta.servlet.ServletInputStream