@@ -0,0 +1,801 @@
+/**%0A * Created by landonsoriano on 10/1/15.%0A */%0A%0Aimport java.io.*;%0A%0Apublic class PipeThread extends Thread %7B%0A%0A    InputStream in;%0A    OutputStream out;%0A    private boolean b;%0A%0A    public PipeThread(InputStream in, OutputStream out, boolean b) %7B%0A        this.in = in;%0A        this.out = out;%0A        this.b = b;%0A    %7D%0A%0A    public void run() %7B%0A        int x;%0A%0A        try %7B%0A            while ((x = in.read()) != -1) %7B%0A                out.write(x);%0A            %7D%0A%0A        %7D catch (IOException e) %7B%0A            System.out.println(%22ERRORR%22 + e);%0A        %7D%0A%0A        if(b)%7B%0A            closeOutputStream();%0A        %7D%0A    %7D%0A    public void closeOutputStream()%0A    %7B%0A        try %7B%0A            this.out.close();%0A        %7D catch (IOException e) %7B%0A            System.err.println(%22I/O Error%22);%0A        %7D%0A    %7D%0A%0A%7D%0A%0A

Create PipeThread.java