Closeable
, AutoCloseable
, Readable
public 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, transferTo
public NonBlockingPumpReader()
public NonBlockingPumpReader(int bufferSize)
public Writer getWriter()
public int available()
available
in class NonBlockingReader
protected int read(long timeout, boolean isPeek) throws IOException
NonBlockingReader
read
in class NonBlockingReader
timeout
- The amount of time to wait for the characterisPeek
- true
if the character read must not be consumedIOException
- if anything wrong happenspublic int readBuffered(char[] b) throws IOException
readBuffered
in class NonBlockingReader
IOException
public void close() throws IOException
close
in interface AutoCloseable
close
in interface Closeable
close
in class Reader
IOException
Copyright © 2020. All rights reserved.