Package org.jline.utils
Class NonBlockingPumpInputStream
java.lang.Object
java.io.InputStream
org.jline.utils.NonBlockingInputStream
org.jline.utils.NonBlockingPumpInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Field Summary
Fields inherited from class org.jline.utils.NonBlockingInputStream
EOF, READ_EXPIRED
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
protected void
void
close()
int
read
(long timeout, boolean isPeek) int
readBuffered
(byte[] b, int off, int len, long timeout) void
setIoException
(IOException exception) Methods inherited from class org.jline.utils.NonBlockingInputStream
peek, read, read, read, readBuffered, readBuffered, shutdown
Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
NonBlockingPumpInputStream
public NonBlockingPumpInputStream() -
NonBlockingPumpInputStream
public NonBlockingPumpInputStream(int bufferSize)
-
-
Method Details
-
getOutputStream
-
available
public int available()- Overrides:
available
in classInputStream
-
read
- Specified by:
read
in classNonBlockingInputStream
- Throws:
IOException
-
readBuffered
- Overrides:
readBuffered
in classNonBlockingInputStream
- Throws:
IOException
-
setIoException
-
checkIoException
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-