com.infoengine.soap.util
Class IESOAPUtils.MaxInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended bycom.infoengine.soap.util.IESOAPUtils.MaxInputStream
Enclosing class:
IESOAPUtils

class IESOAPUtils.MaxInputStream
extends InputStream

InputStream class that will return eof when a specified number of bytes have been read This is necessary when connection pooling is used to avoid hangs when SAAJ classes attempt to read beyond Content-Length bytes.


Field Summary
private  InputStream is
           
private  int mark
           
private  int max
           
 
Fields inherited from class java.io.InputStream
 
Constructor Summary
IESOAPUtils.MaxInputStream(InputStream is, int max)
           
 
Method Summary
 int available()
           
 void close()
           
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

is

private InputStream is

max

private int max

mark

private int mark
Constructor Detail

IESOAPUtils.MaxInputStream

public IESOAPUtils.MaxInputStream(InputStream is,
                                  int max)
Method Detail

available

public int available()
              throws IOException
Throws:
IOException

close

public void close()
           throws IOException
Throws:
IOException

mark

public void mark(int readlimit)

markSupported

public boolean markSupported()

read

public int read()
         throws IOException
Throws:
IOException

read

public int read(byte[] b)
         throws IOException
Throws:
IOException

read

public int read(byte[] b,
                int off,
                int len)
         throws IOException
Throws:
IOException

reset

public void reset()

skip

public long skip(long n)
          throws IOException
Throws:
IOException