|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.batik.util.AbstractParsedURLProtocolHandler org.apache.batik.util.ParsedURLDefaultProtocolHandler
The default protocol handler this handles the most common protocols, such as 'file' 'http' 'ftp'. The parsing should be general enought to support most 'normal' URL formats, so in many cases
Field Summary |
Fields inherited from class org.apache.batik.util.AbstractParsedURLProtocolHandler |
protocol |
Constructor Summary | |
|
ParsedURLDefaultProtocolHandler()
Default constructor sets no protocol so this becomes default handler. |
protected |
ParsedURLDefaultProtocolHandler(String protocol)
Subclass constructor allows subclasses to provide protocol, to be handled. |
Method Summary | |
static int |
charToHex(int ch)
|
protected ParsedURLData |
constructParsedURLData()
Subclasses can override these method to construct alternate subclasses of ParsedURLData. |
protected ParsedURLData |
constructParsedURLData(URL url)
Subclasses can override these method to construct alternate subclasses of ParsedURLData. |
ParsedURLData |
parseURL(ParsedURL baseURL,
String urlStr)
Parses the string as a sub URL of baseURL, and returns the results of parsing in the ParsedURLData object. |
ParsedURLData |
parseURL(String urlStr)
Parses the string and returns the results of parsing in the ParsedURLData object. |
static String |
unescapeStr(String str)
|
Methods inherited from class org.apache.batik.util.AbstractParsedURLProtocolHandler |
getProtocolHandled |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ParsedURLDefaultProtocolHandler()
protected ParsedURLDefaultProtocolHandler(String protocol)
Method Detail |
protected ParsedURLData constructParsedURLData()
protected ParsedURLData constructParsedURLData(URL url)
url
- the java.net.URL class we reference.public ParsedURLData parseURL(String urlStr)
urlStr
- the string to parse as a URL.public static String unescapeStr(String str)
public static int charToHex(int ch)
public ParsedURLData parseURL(ParsedURL baseURL, String urlStr)
baseURL
- the base url for parsing.urlStr
- the string to parse as a URL.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |