Class SVGWriter


  • public class SVGWriter
    extends Object
    It is only a wrapper for DOMTranscoder
    Author:
    Kiyut
    • Method Detail

      • write

        public static void write​(org.w3c.dom.svg.SVGDocument doc,
                                 Writer writer)
                          throws IOException
        a 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 writer
        writer - 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 IOException
        a 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 writer
        writer - A Writer
        nodeRange - a NodeRange
        Throws:
        IOException - If an I/O error occurs