Class UriEncodeUtil
java.lang.Object
com.itextpdf.styledxmlparser.resolver.resource.UriEncodeUtil
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intThe difference between the value a character in lower cases and the upper case character value.private static StringThe default encoding ("UTF-8").private static BitSetSet 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 aStringin the default encoding and default uri scheme to an HTML-encodedString.- Parameters:
s- the original string- Returns:
- the encoded string
-
encode
Encodes aStringin a specific encoding and uri scheme to an HTML-encodedString.- Parameters:
s- the original stringenc- the encoding- Returns:
- the encoded string
-