Class ValveInputStream
java.lang.Object
java.io.InputStream
org.keycloak.client.registration.cli.aesh.ValveInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
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 -
Method Summary
Modifier and TypeMethodDescriptionbooleanintread()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) voidMethods inherited from class java.io.InputStream
available, close, mark, markSupported, read, reset, skip
-
Constructor Details
-
ValveInputStream
public ValveInputStream()
-
-
Method Details
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
For some reason AeshInputStream wants to do blocking read of whole buffers, which for stdin results in blocked input.- Overrides:
readin classInputStream- Throws:
IOException
-
setInputStream
-
setConsole
public void setConsole(org.jboss.aesh.console.AeshConsoleImpl console) -
isStdinAvailable
public boolean isStdinAvailable()
-