Class ServletInputStreamAdapter
- java.lang.Object
- 
- java.io.InputStream
- 
- javax.servlet.ServletInputStream
- 
- com.ibm.websphere.servlet.request.ServletInputStreamAdapter
 
 
 
- 
- All Implemented Interfaces:
- java.io.Closeable,- java.lang.AutoCloseable
 
 public class ServletInputStreamAdapter extends javax.servlet.ServletInputStreamAdapter class creates a ServletInputStream from a java.io.InputStream. This class will proxy all method calls to the underlying stream.
- 
- 
Constructor SummaryConstructors Constructor Description ServletInputStreamAdapter(java.io.InputStream in)Creates a ServletInputStream from an InputStream.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()voidclose()voidmark(int readlimit)booleanmarkSupported()intread()intread(byte[] b)intread(byte[] b, int off, int len)voidreset()longskip(long n)
 
- 
- 
- 
Method Detail- 
readpublic int read() throws java.io.IOException- Specified by:
- readin class- java.io.InputStream
- Throws:
- java.io.IOException
 
 - 
availablepublic int available() throws java.io.IOException- Overrides:
- availablein class- java.io.InputStream
- Throws:
- java.io.IOException
 
 - 
readpublic int read(byte[] b) throws java.io.IOException- Overrides:
- readin class- java.io.InputStream
- Throws:
- java.io.IOException
 
 - 
readpublic int read(byte[] b, int off, int len) throws java.io.IOException- Overrides:
- readin class- java.io.InputStream
- Throws:
- java.io.IOException
 
 - 
markpublic void mark(int readlimit) - Overrides:
- markin class- java.io.InputStream
 
 - 
skippublic long skip(long n) throws java.io.IOException- Overrides:
- skipin class- java.io.InputStream
- Throws:
- java.io.IOException
 
 - 
markSupportedpublic boolean markSupported() - Overrides:
- markSupportedin class- java.io.InputStream
 
 - 
closepublic void close() throws java.io.IOException- Specified by:
- closein interface- java.lang.AutoCloseable
- Specified by:
- closein interface- java.io.Closeable
- Overrides:
- closein class- java.io.InputStream
- Throws:
- java.io.IOException
 
 - 
resetpublic void reset() throws java.io.IOException- Overrides:
- resetin class- java.io.InputStream
- Throws:
- java.io.IOException
 
 
- 
 
-