org.crsh.util
Class PipedChannel

java.lang.Object
  extended by org.crsh.util.PipedChannel

public class PipedChannel
extends Object

A combination of an PipedChannel.InputStream and an PipedChannel.OutputStream, simpler than what java provides and more suitable for unit testing. This class is not optimized for performance.

Author:
Julien Viet

Nested Class Summary
(package private)  class PipedChannel.InputStream
           
(package private)  class PipedChannel.OutputStream
           
 
Field Summary
private  boolean closed
          .
private  PipedChannel.InputStream in
          .
private  Object lock
          .
private  PipedChannel.OutputStream out
          .
private  LinkedList<Integer> queue
          .
 
Constructor Summary
PipedChannel()
           
 
Method Summary
 PipedChannel.InputStream getIn()
           
 PipedChannel.OutputStream getOut()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

queue

private final LinkedList<Integer> queue
.


lock

private final Object lock
.


closed

private boolean closed
.


in

private PipedChannel.InputStream in
.


out

private PipedChannel.OutputStream out
.

Constructor Detail

PipedChannel

public PipedChannel()
Method Detail

getIn

public PipedChannel.InputStream getIn()

getOut

public PipedChannel.OutputStream getOut()


Copyright © 2012 eXo Platform SAS. All Rights Reserved.