Closeable, AutoCloseable, Readablepublic class NonBlockingPumpReader extends NonBlockingReader
EOF, READ_EXPIRED| Constructor | Description |
|---|---|
NonBlockingPumpReader() |
|
NonBlockingPumpReader(int bufferSize) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
available() |
|
void |
close() |
|
Writer |
getWriter() |
|
protected int |
read(long timeout,
boolean isPeek) |
Attempts to read a character from the input stream for a specific
period of time.
|
int |
readBuffered(char[] b) |
|
boolean |
ready() |
mark, markSupported, nullReader, read, read, reset, skip, transferTopublic NonBlockingPumpReader()
public NonBlockingPumpReader(int bufferSize)
public Writer getWriter()
public int available()
available in class NonBlockingReaderprotected int read(long timeout,
boolean isPeek)
throws IOException
NonBlockingReaderread in class NonBlockingReadertimeout - The amount of time to wait for the characterisPeek - trueif the character read must not be consumedIOException - if anything wrong happenspublic int readBuffered(char[] b)
throws IOException
readBuffered in class NonBlockingReaderIOExceptionpublic void close()
throws IOException
close in interface AutoCloseableclose in interface Closeableclose in class ReaderIOExceptionCopyright © 2020. All rights reserved.