Package org.pentaho.di.core.svg
Class SvgSupport
- java.lang.Object
-
- org.pentaho.di.core.svg.SvgSupport
-
public class SvgSupport extends Object
Class for base SVG images processing.
-
-
Constructor Summary
Constructors Constructor Description SvgSupport()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isPngName(String name)
Check by file name if image is PNG.static boolean
isSvgEnabled()
static boolean
isSvgName(String name)
Check by file name if image is SVG.static SvgImage
loadSvgImage(InputStream in)
Load SVG from file.static String
toPngName(String name)
Converts SVG file name to PNG.static String
toSvgName(String name)
Converts PNG file name to SVG.
-
-
-
Method Detail
-
isSvgEnabled
public static boolean isSvgEnabled()
-
loadSvgImage
public static SvgImage loadSvgImage(InputStream in) throws Exception
Load SVG from file.- Throws:
Exception
-
isSvgName
public static boolean isSvgName(String name)
Check by file name if image is SVG.
-
isPngName
public static boolean isPngName(String name)
Check by file name if image is PNG.
-
-