Getting article headers for a newsgroup

Top  Previous  Next

You can get the article headers for a newsgroup using the Nntp#getArticleHeaders method.

 

Example

 

// get articles within range

Enumeration e = nntp.getArticleHeaders();        

                 

// print out each article subject

while(e.hasMoreElements()) {

 NntpArticleHeader header = (NntpArticleHeader)e.nextElement();

 String subject = header.getSubject();

 System.out.println(subject);                        

}





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

© 2021 JSCAPE LLC