org.crsh.shell.impl.command
Class PipeLine.PipeProxy

java.lang.Object
  extended by org.crsh.command.PipeCommand
      extended by org.crsh.shell.impl.command.PipeLine.PipeProxy
All Implemented Interfaces:
Flushable, Pipe
Enclosing class:
PipeLine

private static class PipeLine.PipeProxy
extends PipeCommand


Field Summary
private  PipeCommand command
          .
private  ShellProcessContext context
          .
private  Pipe next
          .
private  PipeLine pipeLine
          .
private  CRaSHSession session
          .
 
Constructor Summary
private PipeLine.PipeProxy(CRaSHSession session, ShellProcessContext context, PipeLine pipeLine)
           
 
Method Summary
 void close()
          Close pipe.
 void flush()
          Flush pipe.
 void open()
          Open pipe.
 void provide(Object 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

session

private final CRaSHSession session
.


context

private final ShellProcessContext context
.


pipeLine

private final PipeLine pipeLine
.


next

private Pipe next
.


command

private PipeCommand command
.

Constructor Detail

PipeLine.PipeProxy

private PipeLine.PipeProxy(CRaSHSession session,
                           ShellProcessContext context,
                           PipeLine pipeLine)
Method Detail

open

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

Overrides:
open in class PipeCommand
Throws:
ScriptException

provide

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

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

flush

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

Specified by:
flush in interface Flushable
Overrides:
flush in class PipeCommand
Throws:
IOException - any io exception

close

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

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


Copyright © 2012 eXo Platform SAS. All Rights Reserved.