|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crsh.shell.impl.command.Pipe<C,P>
org.crsh.shell.impl.command.Pipe.Invoker<C,P>
static class Pipe.Invoker<C,P>
A pipe filter that invokes a command through a CommandInvoker
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.crsh.shell.impl.command.Pipe |
---|
Pipe.Chunkizer, Pipe.Invoker<C,P>, Pipe.Sink<P> |
Field Summary | |
---|---|
(package private) Filter<C,P,InteractionContext<P>> |
command
. |
Fields inherited from class org.crsh.shell.impl.command.Pipe |
---|
context |
Constructor Summary | |
---|---|
Pipe.Invoker(Filter<C,P,InteractionContext<P>> command)
|
Method Summary | |
---|---|
void |
close()
Close the producer. |
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(InteractionContext<P> consumer)
Open the producer with the specified consumer. |
void |
provide(C element)
Provide an element. |
void |
setPiped(boolean piped)
Set the pipe status. |
Methods inherited from class org.crsh.shell.impl.command.Pipe |
---|
getHeight, getProperty, getWidth, readLine, releaseAlternateBuffer, takeAlternateBuffer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
final Filter<C,P,InteractionContext<P>> command
Constructor Detail |
---|
Pipe.Invoker(Filter<C,P,InteractionContext<P>> command)
Method Detail |
---|
public void setPiped(boolean piped)
Producer
piped
- the piped statuspublic Class<P> getProducedType()
Producer
public Class<C> getConsumedType()
Consumer
public void open(InteractionContext<P> consumer)
Producer
consumer
- the consumerpublic void provide(C element) throws IOException
Consumer
element
- the provided element
IOException
public void flush() throws IOException
IOException
public void close() throws ScriptException
Producer
ScriptException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |