Package org.jline.utils
Class NonBlockingPumpInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.jline.utils.NonBlockingInputStream
-
- org.jline.utils.NonBlockingPumpInputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class NonBlockingPumpInputStream extends NonBlockingInputStream
-
-
Field Summary
-
Fields inherited from class org.jline.utils.NonBlockingInputStream
EOF, READ_EXPIRED
-
-
Constructor Summary
Constructors Constructor Description NonBlockingPumpInputStream()
NonBlockingPumpInputStream(int bufferSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
available()
protected void
checkIoException()
void
close()
java.io.OutputStream
getOutputStream()
int
read(long timeout, boolean isPeek)
int
readBuffered(byte[] b, int off, int len, long timeout)
void
setIoException(java.io.IOException exception)
-
Methods inherited from class org.jline.utils.NonBlockingInputStream
peek, read, read, read, readBuffered, readBuffered, shutdown
-
-
-
-
Method Detail
-
getOutputStream
public java.io.OutputStream getOutputStream()
-
available
public int available()
- Overrides:
available
in classjava.io.InputStream
-
read
public int read(long timeout, boolean isPeek) throws java.io.IOException
- Specified by:
read
in classNonBlockingInputStream
- Throws:
java.io.IOException
-
readBuffered
public int readBuffered(byte[] b, int off, int len, long timeout) throws java.io.IOException
- Overrides:
readBuffered
in classNonBlockingInputStream
- Throws:
java.io.IOException
-
setIoException
public void setIoException(java.io.IOException exception)
-
checkIoException
protected void checkIoException() throws java.io.IOException
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.InputStream
- Throws:
java.io.IOException
-
-