|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
nan.tools.AbstractBackgroundTask
nan.tools.BackgroundCacheWriter
Writes a message cache to disk in the background.
Field Summary |
Fields inherited from class nan.tools.AbstractBackgroundTask |
finished |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
BackgroundCacheWriter(Newsgroup newsgroup,
MessageTree tree)
Creates a new BackgroundCacheWriter object. |
Method Summary | |
static java.io.File |
getCacheDirectory(Newsgroup newsgroup)
Gets the cache directory for a Newsgroup. |
static java.io.File |
getCacheFile(Newsgroup newsgroup,
MessageHeader header)
Gets the cache file for a Newsgroup Message. |
static java.io.File |
getGroupFile(Newsgroup newsgroup)
Gets the group cache file. |
void |
run()
Runs the background task. |
java.lang.String |
toString()
Returns a String representation of this object. |
static void |
writeCacheFile(Newsgroup newsgroup,
XMLSerializable xml,
MessageHeader header)
Writes a message to the cache. |
Methods inherited from class nan.tools.AbstractBackgroundTask |
isFinished |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public BackgroundCacheWriter(Newsgroup newsgroup, MessageTree tree)
newsgroup
- The Newsgroup to cache.tree
- The MessageTree with the messages.Method Detail |
public static java.io.File getCacheDirectory(Newsgroup newsgroup)
newsgroup
- The Newsgroup.
public static java.io.File getCacheFile(Newsgroup newsgroup, MessageHeader header)
newsgroup
- The Newsgroup.header
- The MessageHeader of the Message.
public static java.io.File getGroupFile(Newsgroup newsgroup)
newsgroup
- The newsgroup.
public static void writeCacheFile(Newsgroup newsgroup, XMLSerializable xml, MessageHeader header)
newsgroup
- The Newsgroup.xml
- The XMLSerializable object.header
- The MessageHeader of this cache file.public void run()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |