Class BatikUtil
java.lang.Object
org.apache.fop.image.loader.batik.BatikUtil
Helper utilities for Apache Batik.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Document
cloneSVGDocument
(Document doc) Clones an SVG DOM document.static boolean
Checks whether Apache Batik is available in the classpath.
-
Method Details
-
isBatikAvailable
public static boolean isBatikAvailable()Checks whether Apache Batik is available in the classpath.- Returns:
- true if Apache Batik is available
-
cloneSVGDocument
Clones an SVG DOM document. This is used for making SVG production thread-safe when the SVG document is cached and re-used.- Parameters:
doc
- the SVG DOM to be cloned- Returns:
- the cloned SVG DOM
-