Beispiel #1
0
  private void getData() {
    String Data;

    while ((Data = DownloadJob.readline(bis)) != null) {
      if (Data.equals("")) {
        break;
      }
    }
  }
Beispiel #2
0
 private int getHeadCode() {
   int rsHcode = 0;
   try {
     String rsHeader = null;
     rsHeader = DownloadJob.readline(bis);
     int t = rsHeader.indexOf(" ") + 1;
     rsHcode = Integer.parseInt(rsHeader.substring(t, (t + 3)));
   } catch (Exception e) {
     return 0;
   }
   return rsHcode;
 }