com.mindbright.nio
Class NonBlockingPipe

java.lang.Object
  extended by com.mindbright.nio.NonBlockingPipe

public class NonBlockingPipe
extends java.lang.Object

A non-blocking pipe to which one can write and read data.


Constructor Summary
NonBlockingPipe()
           
 
Method Summary
 NonBlockingOutput getSink()
          Get the sink side of the pipe.
 NonBlockingInput getSource()
          Get the source side of the pipe.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NonBlockingPipe

public NonBlockingPipe()
                throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getSource

public NonBlockingInput getSource()
                           throws java.io.IOException
Get the source side of the pipe. That is the side from which one reads data.

Throws:
java.io.IOException

getSink

public NonBlockingOutput getSink()
                          throws java.io.IOException
Get the sink side of the pipe. That is the side to which one writes data.

Throws:
java.io.IOException