org.apache.batik.util
Class ParsedURLDefaultProtocolHandler
java.lang.Object
|
+--org.apache.batik.util.AbstractParsedURLProtocolHandler
|
+--org.apache.batik.util.ParsedURLDefaultProtocolHandler
- All Implemented Interfaces:
- ParsedURLProtocolHandler
- public class ParsedURLDefaultProtocolHandler
- extends AbstractParsedURLProtocolHandler
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
Method Summary |
protected ParsedURLData |
constructParsedURLData()
Subclasses can override these method to construct alternate
subclasses of ParsedURLData. |
protected ParsedURLData |
constructParsedURLData(java.net.URL url)
Subclasses can override these method to construct alternate
subclasses of ParsedURLData. |
ParsedURLData |
parseURL(ParsedURL baseURL,
java.lang.String urlStr)
Parses the string as a sub URL of baseURL, and returns the
results of parsing in the ParsedURLData object. |
ParsedURLData |
parseURL(java.lang.String urlStr)
Parses the string and returns the results of parsing in the
ParsedURLData object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParsedURLDefaultProtocolHandler
public ParsedURLDefaultProtocolHandler()
- Default constructor sets no protocol so this becomes
default handler.
ParsedURLDefaultProtocolHandler
protected ParsedURLDefaultProtocolHandler(java.lang.String protocol)
- Subclass constructor allows subclasses to provide protocol,
to be handled.
constructParsedURLData
protected ParsedURLData constructParsedURLData()
- Subclasses can override these method to construct alternate
subclasses of ParsedURLData.
constructParsedURLData
protected ParsedURLData constructParsedURLData(java.net.URL url)
- Subclasses can override these method to construct alternate
subclasses of ParsedURLData.
- Parameters:
the
- java.net.URL class we reference.
parseURL
public ParsedURLData parseURL(java.lang.String urlStr)
- Parses the string and returns the results of parsing in the
ParsedURLData object.
- Parameters:
urlStr
- the string to parse as a URL.
parseURL
public ParsedURLData parseURL(ParsedURL baseURL,
java.lang.String urlStr)
- Parses the string as a sub URL of baseURL, and returns the
results of parsing in the ParsedURLData object.
- Parameters:
baseURL
- the base url for parsing.urlStr
- the string to parse as a URL.
Copyright © 2001 Apache Software Foundation. All Rights Reserved.