Class SvgCssUtils

java.lang.Object
com.itextpdf.svg.utils.SvgCssUtils

public final class SvgCssUtils extends Object
Utility class that facilitates parsing values from CSS.
  • Method Details

    • splitValueList

      public static List<String> splitValueList (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 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 String convertDoubleToString (double value)
      Converts a double to a String.
      Parameters:
      value - to be converted double value
      Returns:
      the value in a String representation