code: public final void writeTo(String fmt, OutputStream out) throws IOException {
          if (fmt.equalsIgnoreCase(SVG_FMT)) {
              out.write(toSvgStr().getBytes(Charsets.UTF_8));
          } else if (fmt.equalsIgnoreCase(PS_FMT)) {
              out.write(toEpsStr().getBytes(Charsets.UTF_8));
          } else if (fmt.equalsIgnoreCase(PDF_FMT)) {
              out.write(toPdfStr().getBytes(Charsets.UTF_8));
          } else {
              ImageIO.write(toImg(), fmt, out);
          }
      }
docs: Write the depiction to the provided output stream.
  
  @param fmt format
  @param out output stream
  @throws IOException depiction could not be written, low level IO problem
  @see #listFormats()