Class SVGSpriteUtils

java.lang.Object
com.jalios.jcms.uicomponent.icon.SVGSpriteUtils

public final class SVGSpriteUtils extends Object
  • Method Details

    • generateSprite

      public static String generateSprite(String spriteName, Set<String> idsToInclude) throws IOException
      Generates an SVG sprite from the specified SVG files based on their IDs.
      Parameters:
      spriteName - the name of the icon set
      idsToInclude - Set of IDs corresponding to the SVG files to include.
      Returns:
      A string containing the complete SVG sprite content.
      Throws:
      IOException - If an error occurs during file reading or writing.