public class SvgGraphicsWriter extends Object
SVGGraphics2D objects
into SVG files.| Modifier and Type | Method and Description |
|---|---|
static void |
save(org.apache.batik.svggen.SVGGraphics2D svgGraphics)
Save the given SVG graphics as a user-selected SVG file.
|
static void |
write(org.apache.batik.svggen.SVGGraphics2D svgGraphics,
File file)
Write the given SVG graphics to the given file.
|
static void |
write(org.apache.batik.svggen.SVGGraphics2D svgGraphics,
OutputStream outputStream)
Write the given SVG graphics as SVG to the given output stream.
|
public static void save(org.apache.batik.svggen.SVGGraphics2D svgGraphics)
".svg",
it will be appended. If the file already exists, the user will be
asked for a confirmation to overwrite the file.svgGraphics - The SVG graphics to savepublic static void write(org.apache.batik.svggen.SVGGraphics2D svgGraphics,
File file)
throws IOException
svgGraphics - The SVG graphicsfile - The target fileIOException - If an IO error occurspublic static void write(org.apache.batik.svggen.SVGGraphics2D svgGraphics,
OutputStream outputStream)
throws IOException
svgGraphics - The SVG graphicsoutputStream - The output streamIOException - If an IO error occursCopyright © 2017. All rights reserved.