|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crsh.shell.impl.command.Pipe<Object,P>
org.crsh.shell.impl.command.Pipe.Sink<P>
static class Pipe.Sink<P>
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 | |
---|---|
private Class<P> |
producedType
. |
Fields inherited from class org.crsh.shell.impl.command.Pipe |
---|
context |
Constructor Summary | |
---|---|
Pipe.Sink(Class<P> producedType)
|
Method Summary | |
---|---|
void |
close()
Close the producer. |
void |
flush()
|
Class<Object> |
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(Object 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 |
---|
private final Class<P> producedType
Constructor Detail |
---|
Pipe.Sink(Class<P> producedType)
Method Detail |
---|
public Class<P> getProducedType()
Producer
public void setPiped(boolean piped)
Producer
piped
- the piped statuspublic void open(InteractionContext<P> consumer)
Producer
consumer
- the consumerpublic void provide(Object element) throws IOException
Consumer
element
- the provided element
IOException
public Class<Object> getConsumedType()
Consumer
public void flush() throws IOException
IOException
public void close()
Producer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |