Closeable
, AutoCloseable
DefaultWebApplicationRequest
public abstract class ServletInputStream extends InputStream
Modifier | Constructor | Description |
---|---|---|
protected |
ServletInputStream() |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
abstract boolean |
isFinished() |
Is the stream at the end.
|
abstract boolean |
isReady() |
Is the stream ready for reading.
|
int |
readLine(byte[] buffer,
int offset,
int length) |
Read a line.
|
abstract void |
setReadListener(ReadListener readListener) |
Set the read listener.
|
available, close, mark, markSupported, read, read, read, readAllBytes, readNBytes, reset, skip, transferTo
public abstract boolean isFinished()
public abstract boolean isReady()
public int readLine(byte[] buffer, int offset, int length) throws IOException
buffer
- the buffer.offset
- the offset.length
- the length.IOException
- when an I/O error occurs.public abstract void setReadListener(ReadListener readListener)
readListener
- the read listener.Copyright © 2020 Piranha Cloud. All rights reserved.