|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.crsh.shell.impl.command.PipeFilter<P,P> org.crsh.shell.impl.command.PipeFilter.Noop<P>
static class PipeFilter.Noop<P>
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.crsh.shell.impl.command.PipeFilter |
---|
PipeFilter.Chunkizer, PipeFilter.Noop<P>, PipeFilter.Sink<P> |
Field Summary |
---|
Fields inherited from class org.crsh.shell.impl.command.PipeFilter |
---|
context, piped |
Constructor Summary | |
---|---|
PipeFilter.Noop(boolean piped) |
Method Summary | |
---|---|
void |
close() Close the producer. |
void |
flush() |
Class<P> |
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(P element) Provide an element. |
Methods inherited from class org.crsh.shell.impl.command.PipeFilter |
---|
getAttributes, getHeight, getProperty, getSession, getWidth, isPiped, readLine, releaseAlternateBuffer, takeAlternateBuffer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
PipeFilter.Noop(boolean piped)
Method Detail |
---|
public void provide(P element) throws IOException
Consumer
element
- the provided elementIOException
public Class<P> getConsumedType()
Consumer
public void flush() throws IOException
IOException
public Class<P> getProducedType()
Producer
public void open(CommandContext<P> consumer)
Producer
consumer
- the consumerpublic void close()
Producer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |