You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xmlgraphics.apache.org by vh...@apache.org on 2010/06/14 19:03:27 UTC

svn commit: r954556 - /xmlgraphics/commons/branches/Temp_TrueTypeInPostScript/src/java/org/apache/xmlgraphics/ps/PSGenerator.java

Author: vhennebert
Date: Mon Jun 14 17:03:27 2010
New Revision: 954556

URL: http://svn.apache.org/viewvc?rev=954556&view=rev
Log:
Added helper method to write an integer into the output stream

Modified:
    xmlgraphics/commons/branches/Temp_TrueTypeInPostScript/src/java/org/apache/xmlgraphics/ps/PSGenerator.java

Modified: xmlgraphics/commons/branches/Temp_TrueTypeInPostScript/src/java/org/apache/xmlgraphics/ps/PSGenerator.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/branches/Temp_TrueTypeInPostScript/src/java/org/apache/xmlgraphics/ps/PSGenerator.java?rev=954556&r1=954555&r2=954556&view=diff
==============================================================================
--- xmlgraphics/commons/branches/Temp_TrueTypeInPostScript/src/java/org/apache/xmlgraphics/ps/PSGenerator.java (original)
+++ xmlgraphics/commons/branches/Temp_TrueTypeInPostScript/src/java/org/apache/xmlgraphics/ps/PSGenerator.java Mon Jun 14 17:03:27 2010
@@ -206,6 +206,16 @@ public class PSGenerator implements PSCo
     }
 
     /**
+     * Writes the given number to the stream in decimal format.
+     *
+     * @param n a number
+     * @throws IOException in case of an I/O problem
+     */
+    public void write(int n) throws IOException {
+        write(Integer.toString(n));
+    }
+
+    /**
      * Writes a PostScript command to the stream and ends the line.
      *
      * @param cmd              The PostScript code to be written.



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org