xmlgraphics-fop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adelme...@apache.org
Subject svn commit: r1071037 - in /xmlgraphics/fop/trunk/src/java/org/apache/fop: pdf/PDFColorHandler.java util/ConversionUtils.java
Date Tue, 15 Feb 2011 20:30:45 GMT
Author: adelmelle
Date: Tue Feb 15 20:30:44 2011
New Revision: 1071037

URL: http://svn.apache.org/viewvc?rev=1071037&view=rev
Log:
Checkstyle fixes

Modified:
    xmlgraphics/fop/trunk/src/java/org/apache/fop/pdf/PDFColorHandler.java
    xmlgraphics/fop/trunk/src/java/org/apache/fop/util/ConversionUtils.java

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/pdf/PDFColorHandler.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/pdf/PDFColorHandler.java?rev=1071037&r1=1071036&r2=1071037&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/pdf/PDFColorHandler.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/pdf/PDFColorHandler.java Tue Feb 15 20:30:44
2011
@@ -50,6 +50,10 @@ public class PDFColorHandler {
 
     private Map<String, PDFCIELabColorSpace> cieLabColorSpaces;
 
+    /**
+     * Create a new instance for the given {@link PDFResources}
+     * @param resources the PDF resources
+     */
     public PDFColorHandler(PDFResources resources) {
         this.resources = resources;
     }

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/util/ConversionUtils.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/util/ConversionUtils.java?rev=1071037&r1=1071036&r2=1071037&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/util/ConversionUtils.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/util/ConversionUtils.java Tue Feb 15 20:30:44
2011
@@ -112,4 +112,28 @@ public final class ConversionUtils {
 
     }
 
+    /**
+     * Concatenates the given array of <code>int</code>s into a <code>java.lang.String</code>,
+     * separated by the specified separator character.
+     * @param intArray  the int array
+     * @param separator the separator char
+     * @return  a String representing the int array
+     */
+    public static String toString(int[] intArray, String separator) {
+        
+        if (intArray == null || intArray.length == 0) {
+            return "";
+        }
+        
+        StringBuffer sb = new StringBuffer(64);
+        int arrayLength = intArray.length;
+        for (int i = 0; i < arrayLength; ++i) {
+            sb.append(intArray[i]);
+            if (i < (arrayLength - 1)) {
+                sb.append(separator);
+            }
+        }
+        return sb.toString();
+    }
+    
 }



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


Mime
View raw message