Definition at line 38 of file ServeInputStream.java.
Public Member Functions | ||||
ServeInputStream (InputStream in) | ||||
Constructor. | ||||
void | chunking (boolean chunking) | |||
| ||||
String | readLine () throws IOException | |||
Read a line ended by CR or CRLF or LF. | ||||
int | read () throws IOException | |||
int | read (byte b[]) throws IOException | |||
int | read (byte b[], int off, int len) throws IOException | |||
long | skip (long len) throws IOException | |||
int | available () throws IOException | |||
Available bytes to read without blocking. | ||||
void | close () throws IOException | |||
boolean | markSupported () | |||
Mark is not supported. | ||||
void | reset () | |||
Not Implemented. | ||||
void | mark (int readlimit) | |||
Not Implemented. | ||||
Package Functions | ||||
boolean | isReturnedAsStream () | |||
void | setReturnedAsStream (boolean _on) | |||
boolean | isReturnedAsReader () | |||
void | setReturnedAsReader (boolean _on) |
String org.openmobileis.embedded.webserver.ServeInputStream.readLine | ( | ) | throws IOException |
Read a line ended by CR or CRLF or LF.
More forgiving of line termination than ServletInputStream.readLine(). This method only read raw data, that may be chunked. Calling ServletInputStream.readLine() will always return unchunked data.
Definition at line 67 of file ServeInputStream.java.
References org.openmobileis.embedded.webserver.ServeInputStream.read().
int org.openmobileis.embedded.webserver.ServeInputStream.available | ( | ) | throws IOException |
Available bytes to read without blocking.
If you are unlucky may return 0 when there are more
Definition at line 156 of file ServeInputStream.java.
boolean org.openmobileis.embedded.webserver.ServeInputStream.markSupported | ( | ) |
void org.openmobileis.embedded.webserver.ServeInputStream.mark | ( | int | readlimit | ) |