Class SvgDataSniffer
- java.lang.Object
-
- net.sf.jasperreports.renderers.util.SvgDataSniffer
-
public class SvgDataSniffer extends java.lang.ObjectUtility class that uses Batik to check if the provided byte data is a valid SVG image. It does this by attempting to parse the data into an SVG document.- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSvgDataSniffer.SvgInfo
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SvgDataSniffergetInstance(JasperReportsContext jasperReportsContext)SvgDataSniffer.SvgInfogetSvgInfo(byte[] data)booleanisSvgData(byte[] data)
-
-
-
Method Detail
-
getInstance
public static SvgDataSniffer getInstance(JasperReportsContext jasperReportsContext)
-
isSvgData
public boolean isSvgData(byte[] data)
-
getSvgInfo
public SvgDataSniffer.SvgInfo getSvgInfo(byte[] data)
-
-