org.crsh.shell.impl.command
Class PipeFilter.Noop<P>

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

static class PipeFilter.Noop<P>
extends PipeFilter<P,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

PipeFilter.Noop(boolean piped)
Method Detail

provide

public void provide(P element)
             throws IOException
Description copied from interface: Consumer
Provide an element.

Parameters:
element - the provided element
Throws:
IOException

getConsumedType

public Class<P> getConsumedType()
Description copied from interface: Consumer
Returns the class of the element generic type.

Returns:
the consumed type

flush

public void flush()
           throws IOException
Throws:
IOException

getProducedType

public Class<P> getProducedType()
Description copied from interface: Producer
Returns the class of the produced type.

Returns:
the produced type

open

public void open(CommandContext<P> consumer)
Description copied from interface: Producer
Open the producer with the specified consumer.

Parameters:
consumer - the consumer

close

public void close()
Description copied from interface: Producer
Close the producer.



Copyright © 2014 eXo Platform SAS. All Rights Reserved.