org.crsh.command
Class PipeCommandProxy<E>

java.lang.Object
  extended by org.crsh.command.PipeCommand<E>
      extended by org.crsh.command.PipeCommandProxy<E>
All Implemented Interfaces:
Flushable, Pipe<E>

 class PipeCommandProxy<E>
extends PipeCommand<E>


Field Summary
private  PipeCommand<E> delegate
          .
private  Pipe<E> next
          .
 
Constructor Summary
PipeCommandProxy(PipeCommand<E> delegate, Pipe<E> next)
           
 
Method Summary
 void close()
          Close pipe.
 void flush()
          Flush pipe.
 void open()
          Open pipe.
 void provide(E element)
          Extends the throw clause of the Pipe.provide(Object) method.
 
Methods inherited from class org.crsh.command.PipeCommand
isPiped, setPiped
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

delegate

private final PipeCommand<E> delegate
.


next

private final Pipe<E> next
.

Constructor Detail

PipeCommandProxy

PipeCommandProxy(PipeCommand<E> delegate,
                 Pipe<E> next)
Method Detail

open

public void open()
          throws ScriptException
Description copied from class: PipeCommand
Open pipe.

Overrides:
open in class PipeCommand<E>
Throws:
ScriptException

provide

public void provide(E element)
             throws ScriptException,
                    IOException
Description copied from class: PipeCommand
Extends the throw clause of the Pipe.provide(Object) method.

Specified by:
provide in interface Pipe<E>
Overrides:
provide in class PipeCommand<E>
Parameters:
element - the provided element
Throws:
ScriptException - any script exception
IOException - any io exception

flush

public void flush()
           throws ScriptException,
                  IOException
Description copied from class: PipeCommand
Flush pipe.

Specified by:
flush in interface Flushable
Overrides:
flush in class PipeCommand<E>
Throws:
ScriptException - any script exception
IOException - any io exception

close

public void close()
           throws ScriptException
Description copied from class: PipeCommand
Close pipe.

Overrides:
close in class PipeCommand<E>
Throws:
ScriptException - any script exception


Copyright © 2012 eXo Platform SAS. All Rights Reserved.