|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.ecf.provider.rss.channel.ParserUtils
public class ParserUtils
Utility class providing convenience methods to (XML) parsing mechanisms.
| Field Summary | |
|---|---|
static boolean |
DEBUG
A DEBUG flag |
| Constructor Summary | |
|---|---|
ParserUtils()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
formatDate(java.util.Date date)
Formats a Date into a date/time string. |
static boolean |
getBool(java.lang.String strBoolean)
Parses the string argument as a boolean. |
static java.util.Date |
getDate(java.lang.String strDate)
Converts text from the beginning of the given string to produce a date. |
static java.util.Date |
getDate(java.lang.String strDate,
java.util.Date defaultValue)
Converts text from the beginning of the given string to produce a date. |
static int |
getInt(java.lang.String strInt)
Parses the string argument as a signed decimal integer. |
static int |
getInt(java.lang.String strInt,
int defaultValue)
Parses the string argument as a signed decimal integer. |
static java.net.URL |
getURL(java.lang.String strURL)
Parses the string argument as a URL. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static boolean DEBUG
| Constructor Detail |
|---|
public ParserUtils()
| Method Detail |
|---|
public static java.util.Date getDate(java.lang.String strDate)
strDate - - A String whose beginning should be parsed.
public static java.util.Date getDate(java.lang.String strDate,
java.util.Date defaultValue)
strDate - - A String whose beginning should be parsed.defaultValue - - a default value.
public static java.lang.String formatDate(java.util.Date date)
date - - the date value to be formatted into a date string.
public static int getInt(java.lang.String strInt)
strInt - - a String containing the int representation to be parsed.
public static int getInt(java.lang.String strInt,
int defaultValue)
strInt - - a String containing the int representation to be parsed.defaultValue - - a default value.
public static java.net.URL getURL(java.lang.String strURL)
strURL - - the String to parse as a URL.
public static boolean getBool(java.lang.String strBoolean)
strBoolean - - the String containing the boolean representation to be parsed.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||