|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.router.news.PersistNews
class PersistNews
Store and retrieve news entries from disk. Each entry is stored in a separate file, with the name derived from the UUID.
Constructor Summary | |
---|---|
PersistNews()
|
Method Summary | |
---|---|
static boolean |
delete(I2PAppContext ctx,
NewsEntry entry)
Unused for now, as we don't have any way to remember it's deleted. |
static List<NewsEntry> |
load(I2PAppContext ctx)
This does not check for any missing values. |
static boolean |
store(I2PAppContext ctx,
List<Node> entries)
Store each entry. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
PersistNews()
Method Detail |
---|
public static boolean store(I2PAppContext ctx, List<Node> entries)
entries
- each one should be "entry" at the root
public static List<NewsEntry> load(I2PAppContext ctx)
public static boolean delete(I2PAppContext ctx, NewsEntry entry)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |