![]() |
All Packages This Package Class Hierarchy Class Search Index Class grendel.storage.NewsStorejava.lang.Object | +----javax.mail.Service | +----javax.mail.Store | +----grendel.storage.NewsStore Store for News (NNTP) folders. This class really shouldn't be public, but I haven't figured out how to tie into javamail's Session class properly. So, instead of using Session.getStore(String), you instead need to call NewsStore.GetDefaultStore(Session).
public class NewsStore
extends javax.mail.Store
{
// Fields 4
protected static NewsStore DefaultStore;
protected NewsRC newsrc;
protected NNTPConnection nntp;
protected NewsFolderRoot root_folder;
// Constructors 2
public NewsStore(Session);
public NewsStore(Session, URLName);
// Methods 13
public static Store GetDefaultStore(Session);
public void close();
public Folder getDefaultFolder();
String[] getDefaultSubscriptions();
public Folder getFolder(String) throws MessagingException;
public Folder getFolder(URL);
public Folder getFolder(URLName);
int[] getGroupCounts(NewsFolder);
InputStream getMessageStream(NewsMessage, boolean) throws NNTPException, IOException;
NewsRC getNewsRC();
private void loadNewsRC(String) throws IOException;
void openNewsgroup(NewsFolder, long, long);
protected boolean protocolConnect(String, String, String) throws MessagingException;
}
Fields nntpprotected NNTPConnection nntp newsrcprotected NewsRC newsrc root_folderprotected NewsFolderRoot root_folder DefaultStoreprotected static NewsStore DefaultStore
Constructors NewsStorepublic NewsStore(Session s) NewsStorepublic NewsStore(Session s, URLName u) Methods GetDefaultStorepublic static Store GetDefaultStore(Session s) getNewsRCNewsRC getNewsRC() loadNewsRCprivate void loadNewsRC(String host) throws IOException protocolConnectprotected boolean protocolConnect(String host, String user, String password) throws MessagingException closepublic void close() getDefaultFolderpublic Folder getDefaultFolder()
getFolderpublic Folder getFolder(String name) throws MessagingException getFolderpublic Folder getFolder(URL url) getFolderpublic Folder getFolder(URLName urlName) getMessageStreamInputStream getMessageStream(NewsMessage message, boolean headers_too) throws NNTPException, IOException getGroupCountsint[] getGroupCounts(NewsFolder folder)
getDefaultSubscriptionsString[] getDefaultSubscriptions()
openNewsgroupvoid openNewsgroup(NewsFolder folder, long from, long to) All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4 |
|||||||
| Copyright © 1998-1999 The Mozilla Organization. | |||||||