nu.validator.servletfilter
Class DelegatingServletInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by javax.servlet.ServletInputStream
          extended by nu.validator.servletfilter.DelegatingServletInputStream
All Implemented Interfaces:
Closeable

public final class DelegatingServletInputStream
extends ServletInputStream


Field Summary
private  InputStream delegate
           
 
Constructor Summary
DelegatingServletInputStream(InputStream delegate)
           
 
Method Summary
 int available()
           
 void close()
           
 boolean equals(Object obj)
           
 int hashCode()
           
 void mark(int readlimit)
           
 boolean markSupported()
           
 int read()
           
 int read(byte[] b)
           
 int read(byte[] b, int off, int len)
           
 void reset()
           
 long skip(long n)
           
 String toString()
           
 
Methods inherited from class javax.servlet.ServletInputStream
readLine
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

delegate

private final InputStream delegate
Constructor Detail

DelegatingServletInputStream

public DelegatingServletInputStream(InputStream delegate)
Method Detail

available

public int available()
              throws IOException
Overrides:
available in class InputStream
Returns:
Throws:
IOException
See Also:
InputStream.available()

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class InputStream
Throws:
IOException
See Also:
InputStream.close()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object
Parameters:
obj -
Returns:
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Overrides:
hashCode in class Object
Returns:
See Also:
Object.hashCode()

mark

public void mark(int readlimit)
Overrides:
mark in class InputStream
Parameters:
readlimit -
See Also:
InputStream.mark(int)

markSupported

public boolean markSupported()
Overrides:
markSupported in class InputStream
Returns:
See Also:
InputStream.markSupported()

read

public int read()
         throws IOException
Specified by:
read in class InputStream
Returns:
Throws:
IOException
See Also:
InputStream.read()

read

public int read(byte[] b,
                int off,
                int len)
         throws IOException
Overrides:
read in class InputStream
Parameters:
b -
off -
len -
Returns:
Throws:
IOException
See Also:
InputStream.read(byte[], int, int)

read

public int read(byte[] b)
         throws IOException
Overrides:
read in class InputStream
Parameters:
b -
Returns:
Throws:
IOException
See Also:
InputStream.read(byte[])

reset

public void reset()
           throws IOException
Overrides:
reset in class InputStream
Throws:
IOException
See Also:
InputStream.reset()

skip

public long skip(long n)
          throws IOException
Overrides:
skip in class InputStream
Parameters:
n -
Returns:
Throws:
IOException
See Also:
InputStream.skip(long)

toString

public String toString()
Overrides:
toString in class Object
Returns:
See Also:
Object.toString()