org.terracotta.ipceventbus.io
Class Pipe

java.lang.Object
  extended by org.terracotta.ipceventbus.io.Pipe
All Implemented Interfaces:
Closeable

public final class Pipe
extends Object
implements Closeable


Constructor Summary
Pipe(String name, InputStream in, OutputStream out)
           
Pipe(String name, InputStream in, OutputStream out, int bufferSize)
           
 
Method Summary
 void close()
          Close the pipe, but not the underlying streams!
 void waitFor()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pipe

public Pipe(String name,
            InputStream in,
            OutputStream out)

Pipe

public Pipe(String name,
            InputStream in,
            OutputStream out,
            int bufferSize)
Method Detail

waitFor

public void waitFor()
             throws InterruptedException
Throws:
InterruptedException

close

public void close()
Close the pipe, but not the underlying streams!

Specified by:
close in interface Closeable


Copyright © 2015. All rights reserved.