public class NonBlockingPumpReader extends NonBlockingReader
EOF, READ_EXPIRED| Constructor and Description |
|---|
NonBlockingPumpReader() |
NonBlockingPumpReader(int bufferSize) |
| Modifier and Type | Method and 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.
|
boolean |
ready() |
public 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 void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class ReaderIOExceptionCopyright © 2018. All rights reserved.