// TODO start a thread to get list of articles
Thread t = new Thread() {
// get first connection
private NNTPConnection con = usedConnections.get(0);
public void run() {
LineIterator ait;
try {
ait = con.newNews(group.getName(), group.getLastUpdate(), null);
System.out.println("NEW NEWS: ");
while(ait.hasNext()) {
//TODO get new articles for this group
System.out.println(ait.nextLine());
}
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}