Class ValveInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.keycloak.client.registration.cli.aesh.ValveInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class ValveInputStream extends InputStream
This stream blocks and waits, until there is some stream in the queue. It reads all streams from the queue, and then blocks until it receives more.
-
-
Constructor Summary
Constructors Constructor Description ValveInputStream()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisStdinAvailable()intread()intread(byte[] b, int off, int len)For some reason AeshInputStream wants to do blocking read of whole buffers, which for stdin results in blocked input.voidsetConsole(org.jboss.aesh.console.AeshConsoleImpl console)voidsetInputStream(InputStream is)-
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Method Detail
-
read
public int read() throws IOException- Specified by:
readin classInputStream- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOExceptionFor some reason AeshInputStream wants to do blocking read of whole buffers, which for stdin results in blocked input.- Overrides:
readin classInputStream- Throws:
IOException
-
setInputStream
public void setInputStream(InputStream is)
-
setConsole
public void setConsole(org.jboss.aesh.console.AeshConsoleImpl console)
-
isStdinAvailable
public boolean isStdinAvailable()
-
-