Class UriEncodeUtil
java.lang.Object
com.itextpdf.styledxmlparser.resolver.resource.UriEncodeUtil
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
The difference between the value a character in lower cases and the upper case character value.private static String
The default encoding ("UTF-8").private static BitSet
Set of 256 characters with the bits that don't need encoding set to on. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
unreservedAndReserved
Set of 256 characters with the bits that don't need encoding set to on. -
caseDiff
private static final int caseDiffThe difference between the value a character in lower cases and the upper case character value.- See Also:
-
dfltEncName
The default encoding ("UTF-8").
-
-
Constructor Details
-
UriEncodeUtil
UriEncodeUtil()
-
-
Method Details
-
encode
Encodes aString
in the default encoding and default uri scheme to an HTML-encodedString
.- Parameters:
s
- the original string- Returns:
- the encoded string
-
encode
Encodes aString
in a specific encoding and uri scheme to an HTML-encodedString
.- Parameters:
s
- the original stringenc
- the encoding- Returns:
- the encoded string
-