public class DelegatingServletInputStream
extends javax.servlet.ServletInputStream
ServletInputStream
.
Used by MockHttpServletRequest
; typically not directly
used for testing application controllers.
MockHttpServletRequest
Constructor and Description |
---|
DelegatingServletInputStream(InputStream sourceStream)
Create a DelegatingServletInputStream for the given source stream.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
InputStream |
getSourceStream()
Return the underlying source stream (never
null ). |
boolean |
isFinished() |
boolean |
isReady() |
int |
read() |
void |
setReadListener(javax.servlet.ReadListener arg0) |
available, mark, markSupported, read, read, reset, skip
public DelegatingServletInputStream(InputStream sourceStream)
sourceStream
- the source stream (never null
)public final InputStream getSourceStream()
null
).public int read() throws IOException
read
in class InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
public boolean isFinished()
isFinished
in class javax.servlet.ServletInputStream
public boolean isReady()
isReady
in class javax.servlet.ServletInputStream
public void setReadListener(javax.servlet.ReadListener arg0)
setReadListener
in class javax.servlet.ServletInputStream
Copyright © 2015. All rights reserved.