Class java.servlet.ServletInputStream
All Packages Class Hierarchy This Package Previous Next Index
Class java.servlet.ServletInputStream
java.lang.Object
|
+----java.io.InputStream
|
+----java.servlet.ServletInputStream
- public class ServletInputStream
- extends InputStream
An input stream for reading servlet requests.
-
ServletInputStream()
-
-
readLine(byte[], int, int)
- Reads bytes into the specified byte array until the array is
filled or a newline character is read.
ServletInputStream
public ServletInputStream()
readLine
public abstract int readLine(byte b[],
int off,
int len) throws IOException
- Reads bytes into the specified byte array until the array is
filled or a newline character is read.
- Parameters:
- b - the buffer where data is stored
- off - the start offset of the data
- len - the length of the data
- Returns:
- the actual number of bytes read, or -1 if the end of the
stream has been reached
- Throws: IOException
- if an I/O error has occurred
All Packages Class Hierarchy This Package Previous Next Index