public void run() {
    try {
      byte[] buf = new byte[1024];
      while(true) {
        int count;
        count = in.read(buf);
        if(count < 0) {
          break;
        }
        else if(count > 0) {

        }
      }
    }
    catch(IOException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
  }