|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crsh.shell.impl.command.spi.CommandInvoker<Void,Object>
org.crsh.shell.impl.command.pipeline.PipeLine
public class PipeLine
| Constructor Summary | |
|---|---|
PipeLine(CommandInvoker[] invokers)
|
|
| Method Summary | |
|---|---|
void |
close()
Close the producer. |
void |
flush()
Flush the stream. |
Class<Void> |
getConsumedType()
Returns the class of the element generic type. |
KeyHandler |
getKeyHandler()
Return the key handler or null if the invoker cannot handler key events. |
Class<Object> |
getProducedType()
Returns the class of the produced type. |
void |
open(CommandContext<? super Object> consumer)
Open the producer with the specified consumer. |
void |
provide(Void element)
Provide an element. |
| Methods inherited from class org.crsh.shell.impl.command.spi.CommandInvoker |
|---|
getScreenContext, invoke |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PipeLine(CommandInvoker[] invokers)
| Method Detail |
|---|
public Class<Void> getConsumedType()
Consumer
public Class<Object> getProducedType()
Producer
public void open(CommandContext<? super Object> consumer)
throws IOException,
CommandException
Producer
open in interface Producer<Object,CommandContext<? super Object>>open in class CommandInvoker<Void,Object>consumer - the consumer
IOException
CommandExceptionpublic KeyHandler getKeyHandler()
CommandInvoker
getKeyHandler in class CommandInvoker<Void,Object>
public void provide(Void element)
throws IOException
Consumer
provide in interface Consumer<Void>provide in class CommandInvoker<Void,Object>element - the provided element
IOException
public void flush()
throws IOException
Consumer
flush in interface Consumer<Void>flush in class CommandInvoker<Void,Object>IOException - any io exception
public void close()
throws IOException,
CommandException
Producer
close in interface Producer<Object,CommandContext<? super Object>>close in class CommandInvoker<Void,Object>IOException
CommandException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||