Java javax.servlet ServletInputStream fields, constructors, methods, implement or subclass

Example usage for Java javax.servlet ServletInputStream fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.servlet ServletInputStream.

The text is from its open source code.

Subclass

javax.servlet.ServletInputStream has subclasses.
Click this link to see all its subclasses.

Constructor

ServletInputStream()
Does nothing, because this is an abstract class.

Method

intavailable()
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.
voidclose()
Closes this input stream and releases any system resources associated with the stream.
booleanisFinished()
Returns true when all the data from the stream has been read else it returns false.
booleanisReady()
Returns true if data can be read without blocking else returns false.
voidmark(int readlimit)
Marks the current position in this input stream.
booleanmarkSupported()
Tests if this input stream supports the mark and reset methods.
intread(byte b[])
Reads some number of bytes from the input stream and stores them into the buffer array b.
intread(byte b[], int off, int len)
Reads up to len bytes of data from the input stream into an array of bytes.
intread()
Reads the next byte of data from the input stream.
intreadLine(byte[] b, int off, int len)
Reads the input stream, one line at a time.
voidreset()
Repositions this stream to the position at the time the mark method was last called on this input stream.
voidsetReadListener(ReadListener readListener)
Instructs the ServletInputStream to invoke the provided ReadListener when it is possible to read