|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crsh.command.CommandInvoker<Void,Chunk>
org.crsh.command.pipeline.PipeLine
public class PipeLine
| Field Summary | |
|---|---|
private CommandContext<?> |
current
. |
private CommandInvoker[] |
invokers
. |
| Constructor Summary | |
|---|---|
PipeLine(CommandInvoker[] invokers)
|
|
| Method Summary | |
|---|---|
void |
close()
Close the producer. |
void |
flush()
|
Class<Void> |
getConsumedType()
Returns the class of the element generic type. |
Class<Chunk> |
getProducedType()
Returns the class of the produced type. |
void |
open(CommandContext<? super Chunk> consumer)
Open the producer with the specified consumer. |
private CommandContext |
open(int index,
CommandContext last)
|
void |
provide(Void element)
Provide an element. |
| Methods inherited from class org.crsh.command.CommandInvoker |
|---|
invoke |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final CommandInvoker[] invokers
private CommandContext<?> current
| Constructor Detail |
|---|
public PipeLine(CommandInvoker[] invokers)
| Method Detail |
|---|
public Class<Void> getConsumedType()
Consumer
public Class<Chunk> getProducedType()
Producer
public void open(CommandContext<? super Chunk> consumer)
Producer
consumer - the consumer
private CommandContext open(int index,
CommandContext last)
public void provide(Void element)
throws IOException
Consumer
element - the provided element
IOException
public void flush()
throws IOException
IOException
public void close()
throws IOException
Producer
IOException - any io exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||