jet.scratchboard
Class ServletInputStreamWrapper

java.lang.Object
  extended by java.io.InputStream
      extended by javax.servlet.ServletInputStream
          extended by jet.scratchboard.ServletInputStreamWrapper
All Implemented Interfaces:
java.io.Closeable

public class ServletInputStreamWrapper
extends javax.servlet.ServletInputStream

Author:
Markus.Meisters@web.de

Field Summary
private  java.io.InputStream in
          wrapped inputstream
 
Constructor Summary
ServletInputStreamWrapper(java.io.InputStream in)
          constructor
 
Method Summary
private  void init(java.io.InputStream in)
          method to initialize initialize
 int read()
          javax.servlet.ServletInputStream#read()
 int read(byte[] b)
          javax.servlet.ServletInputStream#read(byte[])
 
Methods inherited from class javax.servlet.ServletInputStream
readLine
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

in

private java.io.InputStream in
wrapped inputstream

Constructor Detail

ServletInputStreamWrapper

public ServletInputStreamWrapper(java.io.InputStream in)
constructor

Method Detail

init

private void init(java.io.InputStream in)
method to initialize initialize


read

public int read()
         throws java.io.IOException
javax.servlet.ServletInputStream#read()

Specified by:
read in class java.io.InputStream
Throws:
java.io.IOException

read

public int read(byte[] b)
         throws java.io.IOException
javax.servlet.ServletInputStream#read(byte[])

Overrides:
read in class java.io.InputStream
Throws:
java.io.IOException