FileDocCategorySizeDatePackage
LoadTestsAutoTest.javaAPI DocAndroid 1.5 API5095Wed May 06 22:42:02 BST 2009com.android.dumprendertree

StreamPipe

public class StreamPipe extends Thread

Fields Summary
InputStream
in
OutputStream
out
Constructors Summary
StreamPipe(InputStream in, OutputStream out)

        this.in = in;
        this.out = out;
    
Methods Summary
public voidrun()

        try {
            byte[] buf = new byte[1024];
            int nofb = this.in.read(buf);
            while (nofb != -1) {
                this.out.write(buf, 0, nofb);
                nofb = this.in.read(buf);
            }          
        } catch (IOException e) {
            e.printStackTrace();
        }