Store and retrieve news entries from disk.
Each entry is stored in a separate file, with the name
derived from the UUID.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static boolean store(I2PAppContext ctx,
Store each entry.
Old entries are always overwritten, as they may change even without the updated date changing.
entries - each one should be "entry" at the root
public static List<NewsEntry> load(I2PAppContext ctx)
This does not check for any missing values.
Any fields in any NewsEntry may be null.
Content is not sanitized by NewsXMLParser here, do that before storing.
- non-null, sorted by updated date, newest first
public static boolean delete(I2PAppContext ctx,
Unused for now, as we don't have any way to remember it's deleted.