com.ibm.wsspi.http
Class HttpInputStream
java.lang.Object
java.io.InputStream
com.ibm.wsspi.http.HttpInputStream
- All Implemented Interfaces:
- java.io.Closeable
public class HttpInputStream
- extends java.io.InputStream
Wrapper for an incoming HTTP request message body that provides the input
stream interface.
Constructor Summary |
HttpInputStream(com.ibm.wsspi.http.channel.inbound.HttpInboundServiceContext context)
Constructor. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
HttpInputStream
public HttpInputStream(com.ibm.wsspi.http.channel.inbound.HttpInboundServiceContext context)
- Constructor.
- Parameters:
context
-
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
available
public int available()
throws java.io.IOException
- Overrides:
available
in class java.io.InputStream
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Specified by:
close
in interface java.io.Closeable
- Overrides:
close
in class java.io.InputStream
- Throws:
java.io.IOException
isClosed
public final boolean isClosed()
- Query whether this stream has been closed already or not.
- Returns:
- boolean
mark
public void mark(int readlimit)
- Overrides:
mark
in class java.io.InputStream
markSupported
public boolean markSupported()
- Overrides:
markSupported
in class java.io.InputStream
read
public int read()
throws java.io.IOException
- Specified by:
read
in class java.io.InputStream
- Throws:
java.io.IOException
read
public int read(byte[] output,
int offset,
int length)
throws java.io.IOException
- Overrides:
read
in class java.io.InputStream
- Throws:
java.io.IOException
read
public int read(byte[] output)
throws java.io.IOException
- Overrides:
read
in class java.io.InputStream
- Throws:
java.io.IOException
reset
public void reset()
throws java.io.IOException
- Overrides:
reset
in class java.io.InputStream
- Throws:
java.io.IOException
skip
public long skip(long target)
throws java.io.IOException
- Overrides:
skip
in class java.io.InputStream
- Throws:
java.io.IOException