com.ibm.wsspi.http

Class HttpInputStream

  1. java.lang.Object
  2. extended byjava.io.InputStream
  3. extended bycom.ibm.wsspi.http.HttpInputStream
All implemented interfaces:
java.io.Closeable

  1. public class HttpInputStream
  2. extends java.io.InputStream
Wrapper for an incoming HTTP request message body that provides the input stream interface.

Constructor Summary

Constructor and Description
HttpInputStream(com.ibm.wsspi.http.channel.inbound.HttpInboundServiceContext context)
Constructor.

Method Summary

Modifier and Type Method and Description
  1. int
available()
  1. void
close()
  1. boolean
isClosed()
Query whether this stream has been closed already or not.
  1. void
mark(int readlimit)
  1. boolean
markSupported()
  1. int
read()
  1. int
read(byte[] output)
  1. int
read(byte[] output,int offset,int length)
  1. void
reset()
  1. long
skip(long target)
  1. java.lang.String
toString()
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

HttpInputStream

  1. public HttpInputStream(com.ibm.wsspi.http.channel.inbound.HttpInboundServiceContext context)
Constructor.
Parameters:
context -

Method Detail

toString

  1. public java.lang.String toString( )
Overrides:
toString in class java.lang.Object

available

  1. public int available()
  2. throws java.io.IOException
Overrides:
available in class java.io.InputStream
Throws:
java.io.IOException

close

  1. public void close()
  2. throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.InputStream
Throws:
java.io.IOException

isClosed

  1. public final boolean isClosed()
Query whether this stream has been closed already or not.
Returns:
boolean

mark

  1. public void mark(int readlimit)
Overrides:
mark in class java.io.InputStream

markSupported

  1. public boolean markSupported()
Overrides:
markSupported in class java.io.InputStream

read

  1. public int read()
  2. throws java.io.IOException
Specified by:
read in class java.io.InputStream
Throws:
java.io.IOException

read

  1. public int read(byte[] output,
  2. int offset,
  3. int length)
  4. throws java.io.IOException
Overrides:
read in class java.io.InputStream
Throws:
java.io.IOException

read

  1. public int read(byte[] output)
  2. throws java.io.IOException
Overrides:
read in class java.io.InputStream
Throws:
java.io.IOException

reset

  1. public void reset()
  2. throws java.io.IOException
Overrides:
reset in class java.io.InputStream
Throws:
java.io.IOException

skip

  1. public long skip(long target)
  2. throws java.io.IOException
Overrides:
skip in class java.io.InputStream
Throws:
java.io.IOException