Package org.apache.fop.datatypes
Class URISpecification
java.lang.Object
org.apache.fop.datatypes.URISpecification
This class contains method to deal with the <uri-specification> datatype from XSL-FO.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
appendEscape
(StringBuffer sb, byte b) static String
Escapes any illegal URI character in a given URI, for example, it escapes a space to "%20".static String
Get the URL string from a wrapped URL.private static boolean
isAlpha
(char ch) private static boolean
isDigit
(char ch) private static boolean
isHexDigit
(char ch) private static boolean
isReserved
(char ch) private static boolean
isUnreserved
(char ch)
-
Field Details
-
PUNCT
- See Also:
-
RESERVED
- See Also:
-
HEX_DIGITS
private static final char[] HEX_DIGITS
-
-
Constructor Details
-
URISpecification
private URISpecification()
-
-
Method Details
-
getURL
Get the URL string from a wrapped URL.- Parameters:
href
- the input wrapped URL- Returns:
- the raw URL
-
isDigit
private static boolean isDigit(char ch) -
isAlpha
private static boolean isAlpha(char ch) -
isHexDigit
private static boolean isHexDigit(char ch) -
isReserved
private static boolean isReserved(char ch) -
isUnreserved
private static boolean isUnreserved(char ch) -
appendEscape
-
escapeURI
Escapes any illegal URI character in a given URI, for example, it escapes a space to "%20". Note: This method does not "parse" the URI and therefore does not treat the individual components (user-info, path, query etc.) individually.- Parameters:
uri
- the URI to inspect- Returns:
- the escaped URI
-