org.directwebremoting.util
Class DelegatingServletInputStream

java.lang.Object
  extended by ServletInputStream
      extended by org.directwebremoting.util.DelegatingServletInputStream

public class DelegatingServletInputStream
extends ServletInputStream

Delegating implementation of ServletInputStream.

Author:
Joe Walker [joe at getahead dot ltd dot uk]

Constructor Summary
DelegatingServletInputStream(java.io.InputStream proxy)
          Create a new DelegatingServletInputStream.
 
Method Summary
 void close()
           
 java.io.InputStream getSourceStream()
           
 java.io.InputStream getTargetStream()
          Accessor for the stream that we are proxying to
 int read()
           
 
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 proxy)
Create a new DelegatingServletInputStream.

Parameters:
proxy - the sourceStream InputStream
Method Detail

getTargetStream

public java.io.InputStream getTargetStream()
Accessor for the stream that we are proxying to

Returns:
The stream we proxy to

getSourceStream

public java.io.InputStream getSourceStream()
Returns:
The stream that we proxy to

read

public int read()
         throws java.io.IOException
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException