|
||||||||||
| 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,Chunk>
org.crsh.shell.impl.command.Pipe.Chunkizer
static class Pipe.Chunkizer
| 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 ChunkAdapter |
ca
. |
| Fields inherited from class org.crsh.shell.impl.command.Pipe |
|---|
context |
| Constructor Summary | |
|---|---|
Pipe.Chunkizer()
|
|
| Method Summary | |
|---|---|
void |
close()
Close the producer. |
void |
flush()
|
Class<Object> |
getConsumedType()
Returns the class of the element generic type. |
Class<Chunk> |
getProducedType()
Returns the class of the produced type. |
void |
open(InteractionContext<Chunk> 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 ChunkAdapter ca
| Constructor Detail |
|---|
Pipe.Chunkizer()
| Method Detail |
|---|
public Class<Chunk> getProducedType()
Producer
public Class<Object> getConsumedType()
Consumer
public void setPiped(boolean piped)
Producer
piped - the piped statuspublic void open(InteractionContext<Chunk> consumer)
Producer
consumer - the consumer
public void provide(Object element)
throws ScriptException,
IOException
Consumer
element - the provided element
ScriptException
IOException
public void flush()
throws ScriptException,
IOException
ScriptException
IOException
public void close()
throws ScriptException
Producer
ScriptException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||