com.ibm.websphere.http.data.streams
Interface HTTPInputStream
public interface HTTPInputStream
An interface for the HTTP Input Stream used in the input communication between HTTP protocol and data binding.
Field Summary |
static java.lang.String |
COPYRIGHT
|
Method Summary |
int |
read(byte[] inBuf,
int off,
int len)
Read bytes into a byte array. |
COPYRIGHT
static final java.lang.String COPYRIGHT
- See Also:
- Constant Field Values
read
int read(byte[] inBuf,
int off,
int len)
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 bufferoff
- offset to begin storing bytes in inBuflen
- 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