com.infoengine.soap.util
Class IESOAPUtils.MaxInputStream
java.lang.Object
java.io.InputStream
com.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
is
private InputStream is
max
private int max
mark
private int mark
IESOAPUtils.MaxInputStream
public IESOAPUtils.MaxInputStream(InputStream is,
int max)
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