|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crsh.command.PipeCommandProxy<C,P>
public class PipeCommandProxy<C,P>
| Field Summary | |
|---|---|
private CommandInvoker<C,P> |
delegate
. |
private CommandContext<P> |
innerContext
. |
private Consumer<C> |
next
. |
| Constructor Summary | |
|---|---|
PipeCommandProxy(CommandContext<P> innerContext,
CommandInvoker<C,P> delegate,
Consumer<C> next)
|
|
| Method Summary | |
|---|---|
void |
close()
Close the producer. |
void |
fire()
|
void |
flush()
|
Class<C> |
getConsumedType()
Returns the class of the element generic type. |
Class<P> |
getProducedType()
Returns the class of the produced type. |
void |
open(CommandContext<P> consumer)
Open the producer with the specified consumer. |
void |
provide(C 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 CommandContext<P> innerContext
private final CommandInvoker<C,P> delegate
private final Consumer<C> next
| Constructor Detail |
|---|
public PipeCommandProxy(CommandContext<P> innerContext,
CommandInvoker<C,P> delegate,
Consumer<C> next)
| Method Detail |
|---|
public void fire()
public Class<P> getProducedType()
Producer
getProducedType in interface Producer<P,CommandContext<P>>public Class<C> getConsumedType()
Consumer
getConsumedType in interface Consumer<C>public void open(CommandContext<P> consumer)
Producer
open in interface Producer<P,CommandContext<P>>consumer - the consumer
public void provide(C element)
throws ScriptException,
IOException
Consumer
provide in interface Consumer<C>element - the provided element
ScriptException
IOException
public void flush()
throws ScriptException,
IOException
flush in interface FlushableScriptException
IOException
public void close()
throws ScriptException,
IOException
Producer
close in interface Closeableclose in interface Producer<P,CommandContext<P>>ScriptException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||