ServletInputStream Class

Provides an input stream for reading the body of an http request. Reads raw bytes from a socket connection. Automatically decrypts the data if the data is SSL/TLS encrypted.

Constructors

There are no public constructors.

Public Methods

available( ) returns int
Returns an estimate of the number of bytes that can be read.
markSupported( ) returns boolean
Returns false. This stream does not support the mark and reset methods.
read( ) returns int
Reads the next byte of data from the socket. The byte is returned as a positive integer. If the end of the stream has been reached, a value of -1 is returned.
readLine( ) returns byte[]
Returns a sequence of bytes from the socket. Stops when it reaches a carriage return + line feed (CRLF) or the end of stream, whichever comes first. If a CRLF is reached, the CRLF will be added to the array.