Getting number of articles for a newsgroup

Top  Previous  Next

You can get the number of articles for a newsgroup using the NntpNewsgroup#getArticleCount method.

 

Example

 

// set current newsgroup

nntp.setNewsgroup("comp.os.linux");

                 

// get current newsgroup

NntpNewsgroup group = nntp.getCurrentNewsgroup();

                 

// get number of articles

int count = group.getArticleCount();

System.out.println("Article count: " + count);                        

 

 

 





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

© 2021 JSCAPE LLC