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 void
flushCache()
SVGPlugin
getPlugin()
byte[]
getSVGImage(String content, int height, int width)
byte[]
getSVGImage(String content, String extension, int height, int width)
String
getSVGImageURL(String content, int height, int width)
void
outputSVGImage(String content, int height, int width)
void
outputSVGImage(String content, String extension, int height, int width)
void
setPlugin(SVGPlugin plugin)
String
writeSVGImage(String content, int height, int width)
String
writeSVGImage(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:
IOException
org.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:
IOException
org.apache.batik.apps.rasterizer.SVGConverterException
-
getSVGImageURL
public String getSVGImageURL(String content, int height, int width) throws IOException, org.apache.batik.apps.rasterizer.SVGConverterException
- Throws:
IOException
org.apache.batik.apps.rasterizer.SVGConverterException
-
writeSVGImage
public String writeSVGImage(String content, int height, int width) throws IOException, org.apache.batik.apps.rasterizer.SVGConverterException
- Throws:
IOException
org.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:
IOException
org.apache.batik.apps.rasterizer.SVGConverterException
-
outputSVGImage
public void outputSVGImage(String content, int height, int width) throws IOException, org.apache.batik.apps.rasterizer.SVGConverterException
- Throws:
IOException
org.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:
IOException
org.apache.batik.apps.rasterizer.SVGConverterException
-
flushCache
public void flushCache()
-
-