org.crsh.shell.impl.command
Class PipeFilter.Chunkizer
java.lang.Object
org.crsh.shell.impl.command.PipeFilter<Object,Chunk>
org.crsh.shell.impl.command.PipeFilter.Chunkizer
- All Implemented Interfaces:
- Closeable, Flushable, CommandContext<Object>, RuntimeContext, Consumer<Object>, Filter<Object,Chunk,CommandContext<Chunk>>, Producer<Chunk,CommandContext<Chunk>>, InteractionContext<Object>, ScreenContext<Object>
- Enclosing class:
- PipeFilter<C,P>
-
static class PipeFilter.Chunkizer
- extends PipeFilter<Object,Chunk>
-
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ca
private ChunkAdapter ca
-
.
PipeFilter.Chunkizer
PipeFilter.Chunkizer(boolean piped)
getProducedType
public Class<Chunk> getProducedType()
- Description copied from interface:
Producer
-
Returns the class of the produced type.
-
- Returns:
- the produced type
getConsumedType
public Class<Object> getConsumedType()
- Description copied from interface:
Consumer
-
Returns the class of the element generic type.
-
- Returns:
- the consumed type
open
public void open(CommandContext<Chunk> consumer)
- Description copied from interface:
Producer
-
Open the producer with the specified consumer.
-
- Parameters:
consumer
- the consumer
provide
public void provide(Object element)
throws ScriptException,
IOException
- Description copied from interface:
Consumer
-
Provide an element.
-
- Parameters:
element
- the provided element
- Throws:
ScriptException
IOException
flush
public void flush()
throws ScriptException,
IOException
-
- Throws:
ScriptException
IOException
close
public void close()
throws ScriptException,
IOException
- Description copied from interface:
Producer
-
Close the producer.
-
- Throws:
ScriptException
IOException
Copyright © 2014 eXo Platform SAS. All Rights Reserved.