Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking, which may be 0, or 0 when end of stream is detected.
Closes this input stream and releases any system resources associated with the stream.
Marks the current position in this input stream.
Tests if this input stream supports the mark and reset methods.
Reads the next byte of data from the input stream.
Reads some number of bytes from the input stream and stores them into the buffer array b.
Reads up to len bytes of data from the input stream into an array of bytes.
Reads all remaining bytes from the input stream.
Repositions this stream to the position at the time the mark method was last called on this input stream.
Skips over and discards n bytes of data from this input stream.
Reads all bytes from this input stream and writes the bytes to the given output stream in the order that they are read.
Static
nullReturns a new InputStream that reads no bytes.
Provides an input stream for reading binary data from a client request, including an efficient readLine method for reading data one line at a time. With some protocols, such as HTTP POST and PUT, a ServletInputStream object can be used to read data sent from the client.
See jakarta.servlet.ServletInputStream for full documentation