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 void` | `write​(org.w3c.dom.svg.SVGDocument doc, Writer writer)` | a wrapper for apache batik SVGTranscoder.
    `static void` | `write​(org.w3c.dom.svg.SVGDocument doc, Writer writer, NodeRange nodeRange)` | a wrapper for apache batik SVGTranscoder.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 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