|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crsh.util.PipedChannel
public class PipedChannel
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.
| 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 |
|---|
private final LinkedList<Integer> queue
private final Object lock
private boolean closed
private PipedChannel.InputStream in
private PipedChannel.OutputStream out
| Constructor Detail |
|---|
public PipedChannel()
| Method Detail |
|---|
public PipedChannel.InputStream getIn()
public PipedChannel.OutputStream getOut()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||