Class SvgDataSniffer
java.lang.Object
net.sf.jasperreports.renderers.util.SvgDataSniffer
Utility 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 -
Method Summary
Modifier and TypeMethodDescriptionstatic SvgDataSniffergetInstance(JasperReportsContext jasperReportsContext) getSvgInfo(byte[] data) booleanisSvgData(byte[] data)
-
Method Details
-
getInstance
-
isSvgData
public boolean isSvgData(byte[] data) -
getSvgInfo
-