|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crsh.command.PipeCommand<C,P>
C - the consumed generic typeP - the produced generic typepublic abstract class PipeCommand<C,P>
A pipe command.
| Field Summary | |
|---|---|
protected InvocationContext<P> |
context
. |
| Constructor Summary | |
|---|---|
PipeCommand()
|
|
| Method Summary | |
|---|---|
void |
close()
Close pipe. |
(package private) void |
doOpen(InvocationContext<P> context)
|
void |
flush()
Flush pipe. |
boolean |
isPiped()
|
void |
open()
Open pipe. |
void |
provide(C element)
Extends the throw clause of the Consumer.provide(Object) method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected InvocationContext<P> context
| Constructor Detail |
|---|
public PipeCommand()
| Method Detail |
|---|
public final boolean isPiped()
void doOpen(InvocationContext<P> context)
public void open()
throws ScriptException
ScriptException
public void provide(C element)
throws ScriptException,
IOException
Consumer.provide(Object) method.
element - the provided element
ScriptException - any script exception
IOException - any io exception
public void flush()
throws ScriptException,
IOException
ScriptException - any script exception
IOException - any io exception
public void close()
throws ScriptException
ScriptException - any script exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||