package com.hypirion.io;

import java.io.InputStream;
import java.io.OutputStream;

public class Pipe {

    private final Thread threadPumper;
    private final PipeThread pt;
    private final InputStream in;
    private final OutputStream out;
    private final Object readLock, writeLock;

    public Pipe(InputStream in, OutputStream out) {
        this.in = in;
        this.out = out;
        pt = new PipeThread();
        threadPumper = new Thread(pt);
        threadPumper.setName(String.format("PipeThread %s %s", in.hashCode(),
                                           out.hashCode()));
        threadPumper.setDaemon(true);
        readLock = new Object();
        writeLock = new Object();
    }

    public void join() throws InterruptedException {
        threadPumper.join();
    }

    public void start() {

    }

    public void stop() {
        stop(true);
    }

    public void stop(boolean block) {
        
    }

    private class PipeThread implements Runnable {
        @Override
        public void run() {
            while (true) {
                
            }
        }
    }
}

@@ -94,24 +94,81 @@
 ass Pipe %7B%0A%0A
+    public static final int DEFAULT_BUFFER_SIZE = 1024;%0A%0A
     private 
@@ -293,24 +293,55 @@
 Stream out;%0A
+    private final byte%5B%5D data;%0A
     private 
@@ -443,40 +443,190 @@
 this
-.in = in;%0A        this.out = out
+(in, out, DEFAULT_BUFFER_SIZE);%0A    %7D%0A%0A    public Pipe(InputStream in, OutputStream out, int bufsize) %7B%0A        this.in = in;%0A        this.out = out;%0A        data = new byte%5Bbufsize%5D
 ;%0A  

Add data buffer.