Package com.itextpdf.svg.utils
Class SvgCssUtils
- java.lang.Object
-
- com.itextpdf.svg.utils.SvgCssUtils
-
public final class SvgCssUtils extends java.lang.Object
Utility class that facilitates parsing values from CSS.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
SvgCssUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
convertDoubleToString(double value)
Converts a double to a String.static java.lang.String
convertFloatToString(float value)
Converts a float to a String.static java.util.List<java.lang.String>
splitValueList(java.lang.String value)
Splits a given String into a list of substrings.
-
-
-
Method Detail
-
splitValueList
public static java.util.List<java.lang.String> splitValueList(java.lang.String value)
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
public static java.lang.String convertFloatToString(float value)
Converts a float to a String.- Parameters:
value
- to be converted float value- Returns:
- the value in a String representation
-
convertDoubleToString
public static java.lang.String convertDoubleToString(double value)
Converts a double to a String.- Parameters:
value
- to be converted double value- Returns:
- the value in a String representation
-
-