|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crsh.shell.impl.command.PipeLine
class PipeLine
| Field Summary | |
|---|---|
private Pipe |
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<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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final CommandInvoker[] invokers
private Pipe current
| Constructor Detail |
|---|
PipeLine(CommandInvoker[] invokers)
| Method Detail |
|---|
public Class<Void> getConsumedType()
Consumer
getConsumedType in interface Consumer<Void>public Class<Chunk> getProducedType()
Producer
getProducedType in interface Producer<Chunk,CommandContext<Chunk>>public void open(CommandContext<Chunk> consumer)
Producer
open in interface Producer<Chunk,CommandContext<Chunk>>consumer - the consumer
private CommandContext open(int index,
CommandContext last)
public void provide(Void element)
throws IOException
Consumer
provide in interface Consumer<Void>element - the provided element
IOException
public void flush()
throws IOException
flush in interface FlushableIOException
public void close()
throws IOException
Producer
close in interface Closeableclose in interface Producer<Chunk,CommandContext<Chunk>>IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||