public class MockServletInputStream extends AbstractServletInputStream
ServletInputStream for testing based on a predefined byte array or
an existing InputStream.| Constructor and Description |
|---|
MockServletInputStream(byte[] aContent) |
MockServletInputStream(InputStream aBaseIS) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
read() |
isFinished, isReady, setReadListeneravailable, mark, markSupported, read, read, reset, skippublic MockServletInputStream(@Nonnull byte[] aContent)
public MockServletInputStream(@Nonnull InputStream aBaseIS)
public int read()
throws IOException
read in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionCopyright © 2016–2019 Philip Helger. All rights reserved.