regURL = new URL(url);
}
catch ( MalformedURLException e ) {
return;
}
final RegistryQuery query =
new RegistryQuery( regURL.toString(), queryStr );
TableProducer producer = new TableProducer() {
public StarTable getTable() throws TaskException {
try {
return new RegistryStarTable( query );
}
catch ( Exception e ) {
throw new ExecutionException( "Query failed: "
+ e.getMessage(), e );
}
}
};
StarTable table;
try {
table = producer.getTable();
} catch (Exception e) {
e.printStackTrace();
return;
}
RowSequence rseq;
try {
rseq = table.getRowSequence();
try {
while (rseq.next()) {
Object[] row = rseq.getRow();
// System.out.println("XXX Found row: " + row[0]); // XXX
}
}
finally {
rseq.close();
}
} catch (IOException e) {
e.printStackTrace();
return;
}
RegResource[] resources;
try {
resources = query.getQueryResources();
} catch (RegistryAccessException e) {
e.printStackTrace();
return;
}
for (RegResource resource : resources) {