com.ibm.websphere.http.data.streams

Interface HTTPInputStream


  1. public interface HTTPInputStream
An interface for the HTTP Input Stream used in the input communication between HTTP protocol and data binding.

Field Summary

Modifier and Type Field and Description
  1. static
  2. java.lang.String
COPYRIGHT

Method Summary

Modifier and Type Method and Description
  1. int
read(byte[] inBuf,int off,int len)
Read bytes into a byte array.

Field Detail

  1. static final java.lang.String COPYRIGHT
See Also:

Method Detail

read

  1. int read(byte[] inBuf,
  2. int off,
  3. int len)
  4. throws java.io.IOException
Read bytes into a byte array.

This method reads bytes into the array until one of the following conditions is met:

  • The number of bytes indicated by len is read,
  • No more bytes are available to be ready
Parameters:
inBuf - byte array input buffer
off - offset to begin storing bytes in inBuf
len - maximum number of bytes to read
Returns:
The number of bytes actually read, or -1 if the end of the stream is reached
Throws:
java.io.IOException - Thrown if an I/O problem occurs