Package com.xpn.xwiki.plugin.svg
Class SVGPluginApi
- java.lang.Object
-
- com.xpn.xwiki.api.Api
-
- com.xpn.xwiki.plugin.svg.SVGPluginApi
-
public class SVGPluginApi extends Api
-
-
Constructor Summary
Constructors Constructor Description SVGPluginApi(SVGPlugin plugin, XWikiContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidflushCache()SVGPlugingetPlugin()byte[]getSVGImage(String content, int height, int width)byte[]getSVGImage(String content, String extension, int height, int width)StringgetSVGImageURL(String content, int height, int width)voidoutputSVGImage(String content, int height, int width)voidoutputSVGImage(String content, String extension, int height, int width)voidsetPlugin(SVGPlugin plugin)StringwriteSVGImage(String content, int height, int width)StringwriteSVGImage(String content, String extension, int height, int width)-
Methods inherited from class com.xpn.xwiki.api.Api
convert, convert, convert, convertAttachments, getAuthorizationManager, getContextualAuthorizationManager, getXWikiContext, hasAccess, hasAccessLevel, hasAdminRights, hasProgrammingRights, hasWikiAdminRights
-
-
-
-
Constructor Detail
-
SVGPluginApi
public SVGPluginApi(SVGPlugin plugin, XWikiContext context)
-
-
Method Detail
-
getPlugin
public SVGPlugin getPlugin()
-
setPlugin
public void setPlugin(SVGPlugin plugin)
-
getSVGImage
public byte[] getSVGImage(String content, int height, int width) throws IOException, org.apache.batik.apps.rasterizer.SVGConverterException
- Throws:
IOExceptionorg.apache.batik.apps.rasterizer.SVGConverterException
-
getSVGImage
public byte[] getSVGImage(String content, String extension, int height, int width) throws IOException, org.apache.batik.apps.rasterizer.SVGConverterException
- Throws:
IOExceptionorg.apache.batik.apps.rasterizer.SVGConverterException
-
getSVGImageURL
public String getSVGImageURL(String content, int height, int width) throws IOException, org.apache.batik.apps.rasterizer.SVGConverterException
- Throws:
IOExceptionorg.apache.batik.apps.rasterizer.SVGConverterException
-
writeSVGImage
public String writeSVGImage(String content, int height, int width) throws IOException, org.apache.batik.apps.rasterizer.SVGConverterException
- Throws:
IOExceptionorg.apache.batik.apps.rasterizer.SVGConverterException
-
writeSVGImage
public String writeSVGImage(String content, String extension, int height, int width) throws IOException, org.apache.batik.apps.rasterizer.SVGConverterException
- Throws:
IOExceptionorg.apache.batik.apps.rasterizer.SVGConverterException
-
outputSVGImage
public void outputSVGImage(String content, int height, int width) throws IOException, org.apache.batik.apps.rasterizer.SVGConverterException
- Throws:
IOExceptionorg.apache.batik.apps.rasterizer.SVGConverterException
-
outputSVGImage
public void outputSVGImage(String content, String extension, int height, int width) throws IOException, org.apache.batik.apps.rasterizer.SVGConverterException
- Throws:
IOExceptionorg.apache.batik.apps.rasterizer.SVGConverterException
-
flushCache
public void flushCache()
-
-