1 17 18 package org.apache.james.nntpserver.repository; 19 20 import java.io.InputStream ; 21 import java.io.IOException ; 22 import java.util.Date ; 23 import java.util.Iterator ; 24 25 29 public interface NNTPGroup { 30 31 36 String getName(); 37 38 43 String getDescription(); 44 45 50 boolean isPostAllowed(); 51 52 57 int getNumberOfArticles(); 58 59 64 int getFirstArticleNumber(); 65 66 71 int getLastArticleNumber(); 72 73 80 NNTPArticle getArticle(int number); 81 82 91 Iterator getArticlesSince(Date dt); 92 93 98 Iterator getArticles(); 99 100 106 String getListFormat(); 107 108 114 String getListNewsgroupsFormat(); 115 116 124 NNTPArticle addArticle(InputStream newsStream) throws IOException ; 125 } 126 | Popular Tags |