Package kiyut.sketsa.io
Class SVGWriter
- java.lang.Object
-
- kiyut.sketsa.io.SVGWriter
-
public class SVGWriter extends Object
It is only a wrapper for DOMTranscoder- Author:
- Kiyut
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidwrite(org.w3c.dom.svg.SVGDocument doc, Writer writer)a wrapper for apache batik SVGTranscoder.static voidwrite(org.w3c.dom.svg.SVGDocument doc, Writer writer, NodeRange nodeRange)a wrapper for apache batik SVGTranscoder.
-
-
-
Method Detail
-
write
public static void write(org.w3c.dom.svg.SVGDocument doc, Writer writer) throws IOExceptiona wrapper for apache batik SVGTranscoder. it is advisable to wrap a BufferedWriter around any Writer whose write() operations may be costly, such as FileWriters and OutputStreamWriters (see javadoc on BufferedWriter)- Parameters:
doc- the SVGDocument to writerwriter- A Writer- Throws:
IOException- If an I/O error occurs
-
write
public static void write(org.w3c.dom.svg.SVGDocument doc, Writer writer, NodeRange nodeRange) throws IOExceptiona wrapper for apache batik SVGTranscoder. it is advisable to wrap a BufferedWriter around any Writer whose write() operations may be costly, such as FileWriters and OutputStreamWriters (see javadoc on BufferedWriter)- Parameters:
doc- the SVGDocument to writerwriter- A WriternodeRange- a NodeRange- Throws:
IOException- If an I/O error occurs
-
-