org.springframework.mock.web
Class DelegatingServletInputStream
java.lang.Object
java.io.InputStream
javax.servlet.ServletInputStream
org.springframework.mock.web.DelegatingServletInputStream
- public class DelegatingServletInputStream
- extends javax.servlet.ServletInputStream
Delegating implementation of ServletInputStream.
Used by MockHttpServletRequest; typically not
necessary for testing application controllers.
- Since:
- 27.04.2004
- Author:
- Juergen Hoeller
- See Also:
MockHttpServletRequest
Methods inherited from class javax.servlet.ServletInputStream |
readLine |
Methods inherited from class java.io.InputStream |
available, mark, markSupported, read, read, reset, skip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DelegatingServletInputStream
public DelegatingServletInputStream(java.io.InputStream sourceStream)
- Create a new DelegatingServletInputStream.
- Parameters:
sourceStream
- the sourceStream InputStream
getSourceStream
public java.io.InputStream getSourceStream()
read
public int read()
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException
Copyright (C) 2003-2004 The Spring Framework Project.