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 into an array of bytes until all requested bytes have been
read or a '\n' is encountered, in which case the '\n' is read into
the array as well.
ServletInputStream
public ServletInputStream()
readLine
public int readLine(byte b[],
int off,
int len) throws IOException
- Reads into an array of bytes until all requested bytes have been
read or a '\n' is encountered, in which case the '\n' is read into
the array as well.
- 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 is reached
- Throws: IOException
- if an I/O error has occurred
All Packages Class Hierarchy This Package Previous Next Index