Package com.itextpdf.svg.utils
Class SvgCssUtils
java.lang.Object
com.itextpdf.svg.utils.SvgCssUtils
Utility class that facilitates parsing values from CSS.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringconvertDoubleToString(double value) Converts a double to a String.static StringconvertFloatToString(float value) Converts a float to a String.splitValueList(String value) Splits a given String into a list of substrings.
-
Method Details
-
splitValueList
Splits a given String into a list of substrings. The string is split up by commas and whitespace characters (\t, \n, \r, \f).- Parameters:
-
value- the string to be split - Returns:
- a list containing the split strings, an empty list if the value is null or empty
-
convertFloatToString
Converts a float to a String.- Parameters:
-
value- to be converted float value - Returns:
- the value in a String representation
-
convertDoubleToString
Converts a double to a String.- Parameters:
-
value- to be converted double value - Returns:
- the value in a String representation
-