Package com.jalios.jcms.uicomponent.icon
Class SVGSpriteUtils
java.lang.Object
com.jalios.jcms.uicomponent.icon.SVGSpriteUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgenerateSprite(String spriteName, Set<String> idsToInclude) Generates an SVG sprite from the specified SVG files based on their IDs.
-
Method Details
-
generateSprite
Generates an SVG sprite from the specified SVG files based on their IDs.- Parameters:
spriteName- the name of the icon setidsToInclude- 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.
-