public class SVGUtils extends java.lang.Object
SVGGraphics2D
implementation.Modifier and Type | Method and Description |
---|---|
static java.lang.String |
escapeForXML(java.lang.String source)
Returns a new string where any special characters in the source string
have been encoded.
|
static void |
writeToHTML(java.io.File file,
java.lang.String title,
java.lang.String svgElement)
Writes an HTML file containing an SVG element.
|
static void |
writeToSVG(java.io.File file,
java.lang.String svgElement)
Writes a file containing the SVG element.
|
public static java.lang.String escapeForXML(java.lang.String source)
source
- the source string (null
not permitted).public static void writeToSVG(java.io.File file, java.lang.String svgElement) throws java.io.IOException
file
- the file (null
not permitted).svgElement
- the SVG element (null
not permitted).java.io.IOException
- if there is an I/O problem.public static void writeToHTML(java.io.File file, java.lang.String title, java.lang.String svgElement) throws java.io.IOException
file
- the file.title
- the title.svgElement
- the SVG element.java.io.IOException
- if there is an I/O problem.