Setting current newsgroup

Top  Previous  Next

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());                        

                 

 

 

 

 

 

 

 





Home | Company | Products | Solutions | Purchase | Support | Services | Blog

© 2021 JSCAPE LLC