Package org.apache.struts.mock
Class MockServletInputStream
java.lang.Object
java.io.InputStream
jakarta.servlet.ServletInputStream
org.apache.struts.mock.MockServletInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
boolean
boolean
isReady()
int
read()
void
setReadListener
(ReadListener readListener) Methods inherited from class jakarta.servlet.ServletInputStream
readLine
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
MockServletInputStream
public MockServletInputStream(byte[] buf)
-
-
Method Details
-
isFinished
public boolean isFinished()- Specified by:
isFinished
in classServletInputStream
-
isReady
public boolean isReady()- Specified by:
isReady
in classServletInputStream
-
setReadListener
- Specified by:
setReadListener
in classServletInputStream
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-