|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.geronimo.javamail.store.nntp.newsrc.NNTPNewsrc
public abstract class NNTPNewsrc
Base class implementation of a standard news reader news rc file. This is used to track newsgroup subscriptions and SEEN flags for articles. This is an abstract class designed for subclasses to bridge to the physical store type used for the newsgroup information.
Constructor Summary | |
---|---|
protected |
NNTPNewsrc()
Base class constructor for NNTPNewsrc items. |
Method Summary | |
---|---|
void |
close()
Close the newsrc file, persisting it back to disk if the file has changed. |
NNTPNewsrcGroup |
getGroup(String name)
Retrieve the newsrc group information for a named group. |
Iterator |
getGroups()
Retrieve the current set of loaded groups. |
abstract BufferedReader |
getInputReader()
Abstract open method intended for sub class initialization. |
abstract Writer |
getOutputWriter()
Abstract open for output method intended for subclass implementation. |
void |
load()
Load the data from the newsrc file and parse into an instore group database. |
void |
save()
Save the newsrc file data back to the original source file. |
void |
setDirty()
Mark this newsrc database as dirty. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected NNTPNewsrc()
Method Detail |
---|
public void load()
public void save() throws IOException
IOException
public abstract BufferedReader getInputReader() throws IOException
IOException
public abstract Writer getOutputWriter() throws IOException
IOException
public NNTPNewsrcGroup getGroup(String name)
name
- The name of the target group.
public void setDirty()
public void close()
public Iterator getGroups()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |