Class ServletInputStreamAdapter
java.lang.Object
java.io.InputStream
javax.servlet.ServletInputStream
com.ibm.websphere.servlet.request.ServletInputStreamAdapter
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class ServletInputStreamAdapter
extends javax.servlet.ServletInputStream
Adapter class creates a ServletInputStream from a java.io.InputStream.
This class will proxy all method calls to the underlying stream.
-
Constructor Summary
ConstructorDescriptionCreates a ServletInputStream from an InputStream. -
Method Summary
Methods inherited from class javax.servlet.ServletInputStream
readLine
-
Constructor Details
-
ServletInputStreamAdapter
Creates a ServletInputStream from an InputStream.
-
-
Method Details
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
available
- Overrides:
available
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
mark
public void mark(int readlimit) - Overrides:
mark
in classInputStream
-
skip
- Overrides:
skip
in classInputStream
- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupported
in classInputStream
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
reset
- Overrides:
reset
in classInputStream
- Throws:
IOException
-