org.crsh.shell.impl.command
Class Pipe.Chunkizer

java.lang.Object
  extended by org.crsh.shell.impl.command.Pipe<Object,Chunk>
      extended by org.crsh.shell.impl.command.Pipe.Chunkizer
All Implemented Interfaces:
Closeable, Flushable, Consumer<Object>, Filter<Object,Chunk,InteractionContext<Chunk>>, Producer<Chunk,InteractionContext<Chunk>>, InteractionContext<Object>, ScreenContext<Object>
Enclosing class:
Pipe<C,P>

static class Pipe.Chunkizer
extends Pipe<Object,Chunk>


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

ca

private ChunkAdapter ca
.

Constructor Detail

Pipe.Chunkizer

Pipe.Chunkizer()
Method Detail

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

setPiped

public void setPiped(boolean piped)
Description copied from interface: Producer
Set the pipe status.

Parameters:
piped - the piped status

open

public void open(InteractionContext<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
Description copied from interface: Producer
Close the producer.

Throws:
ScriptException


Copyright © 2013 eXo Platform SAS. All Rights Reserved.