public class NewsXMLParser
extends java.lang.Object
修飾子とタイプ | クラス | 説明 |
---|---|---|
static class |
NewsXMLParser.XHTMLMode |
The action taken when encountering a non-whitelisted
XHTML element or blacklisted attribute in the feed content.
|
コンストラクタ | 説明 |
---|---|
NewsXMLParser(I2PAppContext ctx) |
修飾子とタイプ | メソッド | 説明 |
---|---|---|
BlocklistEntries |
getBlocklistEntries() |
The blocklist entries.
|
java.util.List<CRLEntry> |
getCRLEntries() |
The news CRL entries.
|
java.util.List<NewsEntry> |
getEntries() |
The news entries.
|
NewsMetadata |
getMetadata() |
The news metatdata.
|
static java.util.List<Node> |
getNodes(Node node,
java.lang.String name) |
Helper to get all Nodes matching the name
|
static void |
main(java.lang.String[] args) |
|
Node |
parse(java.io.File file) |
Process the XML file.
|
Node |
parse(java.io.InputStream in) |
Process the XML input stream.
|
void |
setXHTMLMode(NewsXMLParser.XHTMLMode mode) |
Sets the action taken when encountering a non-whitelisted
XHTML element in the feed content.
|
public NewsXMLParser(I2PAppContext ctx)
public void setXHTMLMode(NewsXMLParser.XHTMLMode mode)
public Node parse(java.io.File file) throws java.io.IOException
file
- XML content only. Any su3 or gunzip handling must have
already happened.java.io.IOException
- on any parse errorpublic Node parse(java.io.InputStream in) throws java.io.IOException
in
- XML content only. Any su3 or gunzip handling must have
already happened.java.io.IOException
- on any parse errorpublic java.util.List<NewsEntry> getEntries()
public NewsMetadata getMetadata()
public java.util.List<CRLEntry> getCRLEntries()
public BlocklistEntries getBlocklistEntries()
public static java.util.List<Node> getNodes(Node node, java.lang.String name)
public static void main(java.lang.String[] args)