|
||||||||||
| 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 Filter[] |
pipes
. |
private CRaSHSession |
session
. |
| Constructor Summary | |
|---|---|
PipeLine(CRaSHSession session,
Filter[] pipes)
|
|
| Method Summary | |
|---|---|
void |
close()
Close the producer. |
void |
flush()
|
Class |
getConsumedType()
Returns the class of the consumed type. |
Class |
getProducedType()
Returns the class of the produced type. |
void |
invoke(ProducerContext<?> context)
|
void |
open(ProducerContext context)
Open the producer with the specified context. |
void |
provide(Object element)
Provide an element. |
void |
setPiped(boolean piped)
Set the pipe status. |
void |
setSession(CommandContext session)
Associate the command invoker with a session, the association should be done before the command is invoked. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final CRaSHSession session
private final Filter[] pipes
| Constructor Detail |
|---|
PipeLine(CRaSHSession session,
Filter[] pipes)
| Method Detail |
|---|
public void invoke(ProducerContext<?> context)
throws ScriptException,
IOException
ScriptException
IOExceptionpublic void setSession(CommandContext session)
CommandInvoker
setSession in interface CommandInvokersession - the sessionpublic Class getConsumedType()
Consumer
getConsumedType in interface Consumerpublic Class getProducedType()
Producer
getProducedType in interface Producerpublic void setPiped(boolean piped)
Producer
setPiped in interface Producerpiped - the piped statuspublic void open(ProducerContext context)
Producer
open in interface Producercontext - the contextpublic void close()
Producer
close in interface Closeableclose in interface Producer
public void provide(Object element)
throws IOException
Pipe
provide in interface Pipeelement - the provided element
IOException
public void flush()
throws IOException
flush in interface FlushableIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||