Package org.apache.batik.util
Class ParsedURLDefaultProtocolHandler
java.lang.Object
org.apache.batik.util.AbstractParsedURLProtocolHandler
org.apache.batik.util.ParsedURLDefaultProtocolHandler
- All Implemented Interfaces:
ParsedURLProtocolHandler
- Direct Known Subclasses:
ParsedURLJarProtocolHandler
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
- Version:
- $Id: ParsedURLDefaultProtocolHandler.java 1733416 2016-03-03 07:07:13Z gadams $
-
Field Summary
Fields inherited from class org.apache.batik.util.AbstractParsedURLProtocolHandler
protocol
-
Constructor Summary
ConstructorsModifierConstructorDescriptionDefault 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
Modifier and TypeMethodDescriptionstatic int
charToHex
(int ch) protected ParsedURLData
Subclasses can override these method to construct alternate subclasses of ParsedURLData.protected ParsedURLData
Subclasses can override these method to construct alternate subclasses of ParsedURLData.Parses the string and returns the results of parsing in the ParsedURLData object.Parses the string as a sub URL of baseURL, 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
-
Constructor Details
-
ParsedURLDefaultProtocolHandler
public ParsedURLDefaultProtocolHandler()Default constructor sets no protocol so this becomes default handler. -
ParsedURLDefaultProtocolHandler
Subclass constructor allows subclasses to provide protocol, to be handled.
-
-
Method Details
-
constructParsedURLData
Subclasses can override these method to construct alternate subclasses of ParsedURLData. -
constructParsedURLData
Subclasses can override these method to construct alternate subclasses of ParsedURLData.- Parameters:
url
- the java.net.URL class we reference.
-
parseURL
Parses the string and returns the results of parsing in the ParsedURLData object.- Parameters:
urlStr
- the string to parse as a URL.
-
unescapeStr
-
charToHex
public static int charToHex(int ch) -
parseURL
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.
-