|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.martiansoftware.jsap.StringParser
com.martiansoftware.jsap.stringparsers.URLStringParser
A StringParser for parsing java.net.URL objects. The parse() method
delegates the actual
parsing to new URL(String). If new URL()
throws a MalformedURLException, it is encapsulated in a ParseException and
re-thrown.
StringParser,
URL| Constructor Summary | |
URLStringParser()
Deprecated. Use getParser() or, even better, JSAP.URL_PARSER. |
|
| Method Summary | |
static URLStringParser |
getParser()
Returns a URLStringParser. |
Object |
parse(String arg)
Parses the specified argument into a URL. |
| Methods inherited from class com.martiansoftware.jsap.StringParser |
setUp, tearDown |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public URLStringParser()
getParser() or, even better, JSAP.URL_PARSER.
| Method Detail |
public static URLStringParser getParser()
URLStringParser.
Convenient access to the only instance returned by
this method is available through
JSAP.URL_PARSER.
URLStringParser.
public Object parse(String arg)
throws ParseException
new URL(arg). If new URL(arg)
throws a MalformedURLException, it is encapsulated in a ParseException
and re-thrown.
parse in class StringParserarg - the argument to parse
ParseException - if new URL(arg) throws a
MalformedURLException.URL,
StringParser.parse(String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||