Ejemplo n.º 1
0
 public static void readResults(BufferedReader in) throws IOException {
   String xmlver = in.readLine();
   if (xmlver == null || !xmlver.startsWith("<?xml version=\"1.0\"")) {
     return;
   }
   while (true) {
     String rsline = in.readLine();
     if (rsline == null) {
       break;
     }
     rsline = rsline.trim();
     if (rsline.startsWith("<result-set version=")) {
       String title = getStringAttribute(rsline, "name");
       if (title == null) {
         title = "No title";
       }
       SingleResultSetHolder srs = new SingleResultSetHolder();
       srs.setTitle(title);
       readResultSet(in, srs);
       addResultSet(srs);
     }
   }
 }