public class DelegatingServletInputStream extends ServletInputStreamEE
ServletInputStream
EE の実装の委譲。MockHttpServletRequest
で使用されます。通常、アプリケーションコントローラーのテストには直接使用されません。
MockHttpServletRequest
コンストラクターと説明 |
---|
DelegatingServletInputStream(InputStreamSE sourceStream) 指定されたソースストリームの DelegatingServletInputStream を作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
int | available() |
void | close() |
InputStreamSE | getSourceStream() 基になるソースストリームを返します( null は決してしないでください)。 |
boolean | isFinished() |
boolean | isReady() |
int | read() |
void | setReadListener(ReadListenerEE readListener) |
readLineEE
markSE, markSupportedSE, readSE, readSE, resetSE, skipSE
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public DelegatingServletInputStream(InputStreamSE sourceStream)
sourceStream
- ソースストリーム (非 null
)public final InputStreamSE getSourceStream()
null
は決してしないでください)。public int read() throws IOExceptionSE
InputStreamSE
の readSE
IOExceptionSE
public int available() throws IOExceptionSE
InputStreamSE
の availableSE
IOExceptionSE
public void close() throws IOExceptionSE
CloseableSE
の closeSE
AutoCloseableSE
の closeSE
InputStreamSE
の closeSE
IOExceptionSE
public boolean isFinished()
ServletInputStreamEE
の isFinishedEE
public boolean isReady()
ServletInputStreamEE
の isReadyEE
public void setReadListener(ReadListenerEE readListener)
ServletInputStreamEE
の setReadListenerEE