public void run() {
        try {
            PrintWriter pw = null;
            if (os != null)
                pw = new PrintWriter(os);
            BufferedReader br = new BufferedReader(new InputStreamReader(is));

            String line = null;
            while ((line = br.readLine()) != null) {
                if (pw != null)
                    pw.println(line);
                //System.out.println(type + ">" + line);
            }
            if (pw != null)
                pw.flush();

        } catch (IOException ioe) {
            ioe.printStackTrace();
        }
    }