Setting current newsgroup |
You may set the current newsgroup using the Nntp#setNewsgroup method. The current newsgroup setting is used when retrieving articles and article headers from the NNTP server.
Example
// set current newsgroup nntp.setNewsgroup("comp.os.linux");
// get current newsgroup NntpNewsgroup group = nntp.getCurrentNewsgroup(); System.out.println("Current group: " + group.getName());
|