Author: Andreas Tille Last-Update: 2015-11-27 Description: Fix wrong interface usage According to https://xmlgraphics.apache.org/batik/javadoc/org/apache/batik/svggen/SVGGraphics2D.html stream can be called with different arguments. The closest call to the one below needs an additional argument escaped - defines if the characters will be escaped style properties as opposed to plain attributes. Hope that false makes sense here! --- a/src/ca/ualberta/stothard/cgview/CgviewIO.java +++ b/src/ca/ualberta/stothard/cgview/CgviewIO.java @@ -301,7 +301,7 @@ public class CgviewIO implements CgviewC GZIPOutputStream gzipOut = new GZIPOutputStream(fileOutputStream); Writer out = new OutputStreamWriter(gzipOut, "UTF-8"); //graphics2D.stream(out, useCSS); - graphics2D.stream(root, out, useCSS); + graphics2D.stream(root, out, useCSS, false); /* stream requires argument "escaped"; */ out.flush(); gzipOut.flush(); out.close(); @@ -309,7 +309,7 @@ public class CgviewIO implements CgviewC } else { Writer out = new OutputStreamWriter(fileOutputStream, "UTF-8"); //graphics2D.stream(out, useCSS); - graphics2D.stream(root, out, useCSS); + graphics2D.stream(root, out, useCSS, false); /* stream requires argument "escaped"; */ out.flush(); out.close(); }