|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.jperdian.rss2.RssParseHelper
Some static methods for easy access to parse additions
| Constructor Summary | |
RssParseHelper()
|
|
| Method Summary | |
static java.lang.String |
parseContentChildren(org.w3c.dom.Node node)
Parse the content of the children from the specified node and return it as String. |
static java.util.Date |
parseContentDate(org.w3c.dom.Element node)
Parses the content of the given element and formats it as date, or returns null if no content could be read |
static int |
parseContentInt(org.w3c.dom.Element node)
Parses the content of the given element and formats it as number, or returns 0 if no content could be read |
static int |
parseContentInt(org.w3c.dom.Element node,
int defaultValue)
Parses the content of the given element and formats it as number, or returns the default value if no content could be read |
static java.net.URL |
parseContentURL(org.w3c.dom.Element node)
Parses the content of the given element and formats it as URL |
static java.net.URL |
parseURL(java.lang.String sourceString)
Parses the given source String into a URL. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RssParseHelper()
| Method Detail |
public static java.net.URL parseURL(java.lang.String sourceString)
throws RssParseException
String into a URL. If
no value has been entered null will be returned
RssParseException - thrown if the given URL is not validpublic static java.lang.String parseContentChildren(org.w3c.dom.Node node)
node - the content which children should be parsed
public static java.util.Date parseContentDate(org.w3c.dom.Element node)
throws RssParseException
null if no content could be read
RssParseException
public static int parseContentInt(org.w3c.dom.Element node)
throws RssParseException
0 if no content could be read
RssParseException
public static int parseContentInt(org.w3c.dom.Element node,
int defaultValue)
throws RssParseException
RssParseException
public static java.net.URL parseContentURL(org.w3c.dom.Element node)
throws RssParseException
RssParseException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||