org.springframework.mock.web
Class DelegatingServletInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended byjavax.servlet.ServletInputStream
          extended byorg.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

Constructor Summary
DelegatingServletInputStream(java.io.InputStream sourceStream)
          Create a new DelegatingServletInputStream.
 
Method Summary
 void close()
           
 java.io.InputStream getSourceStream()
           
 int read()
           
 
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
 

Constructor Detail

DelegatingServletInputStream

public DelegatingServletInputStream(java.io.InputStream sourceStream)
Create a new DelegatingServletInputStream.

Parameters:
sourceStream - the sourceStream InputStream
Method Detail

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.