You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by vh...@apache.org on 2008/07/24 11:37:16 UTC

svn commit: r679326 [30/33] - in /xmlgraphics/fop/trunk: examples/embedding/java/embedding/ examples/embedding/java/embedding/events/ examples/embedding/java/embedding/intermediate/ examples/embedding/java/embedding/model/ examples/embedding/java/embed...

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/traits/SpaceVal.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/traits/SpaceVal.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/traits/SpaceVal.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/traits/SpaceVal.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -16,7 +16,7 @@
  */
 
 /* $Id$ */
- 
+
 package org.apache.fop.traits;
 
 import org.apache.fop.datatypes.PercentBaseContext;
@@ -30,7 +30,7 @@
  * Length values resolved. See section 4.3 in the specs.
  */
 public class SpaceVal {
-    
+
     private final MinOptMax space;
     private final boolean bConditional;
     private final boolean bForcing;
@@ -45,7 +45,7 @@
         space = new MinOptMax(spaceprop.getMinimum(context).getLength().getValue(context),
                               spaceprop.getOptimum(context).getLength().getValue(context),
                               spaceprop.getMaximum(context).getLength().getValue(context));
-        bConditional = 
+        bConditional =
                 (spaceprop.getConditionality().getEnum() == Constants.EN_DISCARD);
         Property precProp = spaceprop.getPrecedence();
         if (precProp.getNumber() != null) {
@@ -72,8 +72,8 @@
         this.iPrecedence = iPrecedence;
     }
 
-    static public SpaceVal makeWordSpacing(Property wordSpacing, 
-                                           SpaceVal letterSpacing, 
+    static public SpaceVal makeWordSpacing(Property wordSpacing,
+                                           SpaceVal letterSpacing,
                                            Font fs) {
         if (wordSpacing.getEnum() == Constants.EN_NORMAL) {
             // give word spaces the possibility to shrink by a third,
@@ -87,7 +87,7 @@
                      true, true, 0);
         } else {
             return new SpaceVal(wordSpacing.getSpace(), null);
-        }        
+        }
     }
 
     static public SpaceVal makeLetterSpacing(Property letterSpacing) {

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/util/BreakUtil.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/util/BreakUtil.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/util/BreakUtil.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/util/BreakUtil.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -44,7 +44,7 @@
      * Compares the given break classes and return the one that wins. even-page and
      * odd-page win over page, which wins over column, which wins over auto. If even-page
      * and odd-page are compared to each other, which one will be returned is undefined.
-     * 
+     *
      * @param break1 a break class, one of {@link Constants#EN_AUTO},
      * {@link Constants#EN_COLUMN}, {@link Constants#EN_PAGE},
      * {@link Constants#EN_EVEN_PAGE}, {@link Constants#EN_ODD_PAGE}

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/util/CMYKColorSpace.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/util/CMYKColorSpace.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/util/CMYKColorSpace.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/util/CMYKColorSpace.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -16,7 +16,7 @@
  */
 
 /* $Id$ */
- 
+
 package org.apache.fop.util;
 
 import java.awt.color.ColorSpace;

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/util/CharUtilities.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/util/CharUtilities.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/util/CharUtilities.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/util/CharUtilities.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -89,7 +89,7 @@
     /** Unicode value indicating the the character is "not a character". */
     public static final char NOT_A_CHARACTER = '\uFFFF';
 
-    
+
     /**
      * Utility class: Constructor prevents instantiating when subclassed.
      */
@@ -147,7 +147,7 @@
      * @return true if the character has a fixed-width
      */
     public static boolean isFixedWidthSpace(char c) {
-        return (c >= '\u2000' && c <= '\u200B') 
+        return (c >= '\u2000' && c <= '\u200B')
                 || c == '\u3000';
 //      c == '\u2000'                   // en quad
 //      c == '\u2001'                   // em quad
@@ -191,7 +191,7 @@
             (c == '\u0020'    // normal space
             || c == NBSPACE); // no-break space
     }
-    
+
     /**
      * Determines if the character represents any kind of space.
      * @param c character to check
@@ -200,7 +200,7 @@
     public static boolean isAnySpace(char c) {
         return (isBreakableSpace(c) || isNonBreakableSpace(c));
     }
-    
+
     /**
      * Indicates whether a character is classified as "Alphabetic" by the Unicode standard.
      * @param ch the character

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/util/CloseBlockerOutputStream.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/util/CloseBlockerOutputStream.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/util/CloseBlockerOutputStream.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/util/CloseBlockerOutputStream.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -16,7 +16,7 @@
  */
 
 /* $Id$ */
- 
+
 package org.apache.fop.util;
 
 import java.io.IOException;

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/util/ColorExt.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/util/ColorExt.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/util/ColorExt.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/util/ColorExt.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -36,11 +36,11 @@
     private float rgbReplacementRed;
     private float rgbReplacementGreen;
     private float rgbReplacementBlue;
-    
+
     private String iccProfileName;
     private String iccProfileSrc;
     private ColorSpace colorSpace;
-    
+
     private float[] colorValues;
 
     /*
@@ -59,7 +59,7 @@
 
     /**
      * Create ColorExt object backup up FO's rgb-icc color function
-     * 
+     *
      * @param redReplacement
      *            Red part of RGB replacement color that will be used when ICC
      *            profile can not be loaded
@@ -95,7 +95,7 @@
 
     /**
      * Create ColorExt object backing up SVG's icc-color function.
-     * 
+     *
      * @param red
      *            Red value resulting from the conversion from the user provided
      *            (icc) color values to the batik (rgb) color space
@@ -134,7 +134,7 @@
 
     /**
      * Get ICC profile name
-     * 
+     *
      * @return ICC profile name
      */
     public String getIccProfileName() {
@@ -143,7 +143,7 @@
 
     /**
      * Get ICC profile source
-     * 
+     *
      * @return ICC profile source
      */
     public String getIccProfileSrc() {

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/util/ColorProfileUtil.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/util/ColorProfileUtil.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/util/ColorProfileUtil.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/util/ColorProfileUtil.java Thu Jul 24 02:35:34 2008
@@ -49,7 +49,7 @@
             }
         }
     }
-    
+
     /**
      * Indicates whether a given color profile is identical to the default sRGB profile
      * provided by the Java class library.
@@ -64,5 +64,5 @@
         }
         return profile == sRGBProfile;
     }
-    
+
 }

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/util/ColorSpaceCache.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/util/ColorSpaceCache.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/util/ColorSpaceCache.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/util/ColorSpaceCache.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -49,19 +49,19 @@
     public ColorSpaceCache(URIResolver resolver) {
         this.resolver = resolver;
     }
-    
+
     /**
      * Create (if needed) and return an ICC ColorSpace instance.
-     * 
+     *
      * The ICC profile source is taken from the src attribute of the color-profile FO element.
      * If the ICC ColorSpace is not yet in the cache a new one is created and stored in the cache.
-     * 
-     * The FOP URI resolver is used to try and locate the ICC file. 
+     *
+     * The FOP URI resolver is used to try and locate the ICC file.
      * If that fails null is returned.
-     * 
+     *
      * @param base a base URI to resolve relative URIs
      * @param iccProfileSrc ICC Profile source to return a ColorSpace for
-     * @return ICC ColorSpace object or null if ColorSpace could not be created 
+     * @return ICC ColorSpace object or null if ColorSpace could not be created
      */
     public ColorSpace get(String base, String iccProfileSrc) {
         ColorSpace colorSpace = null;
@@ -80,7 +80,7 @@
                     // TODO - Would it make sense to fall back on VM ICC
                     // resolution
                     // Problem is the cache might be more difficult to maintain
-                    // 
+                    //
                     // FOP URI resolver did not find ICC profile - perhaps the
                     // Java VM can find it?
                     // iccProfile = ICC_Profile.getInstance(iccProfileSrc);
@@ -106,5 +106,5 @@
                     + iccProfileSrc);
         }
         return colorSpace;
-    }        
+    }
 }

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/util/ColorUtil.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/util/ColorUtil.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/util/ColorUtil.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/util/ColorUtil.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -39,21 +39,21 @@
 public final class ColorUtil {
 
     /**
-     * 
+     *
      * keeps all the predefined and parsed colors.
      * <p>
      * This map is used to predefine given colors, as well as speeding up
      * parsing of already parsed colors.
      */
     private static Map colorMap = null;
-    
+
     /** Logger instance */
     protected static Log log = LogFactory.getLog(ColorUtil.class);
-    
+
     static {
         initializeColorMap();
     }
-    
+
     /**
      * Private constructor since this is an utility class.
      */
@@ -77,8 +77,8 @@
      * <li>fop-rgb-icc(r,g,b,cs,cs-src,[num]+) (r/g/b: 0..1, num: 0..1)</li>
      * <li>cmyk(c,m,y,k) (0..1)</li>
      * </ul>
-     * 
-     * @param foUserAgent FOUserAgent object  
+     *
+     * @param foUserAgent FOUserAgent object
      * @param value
      *            the string to parse.
      * @return a Color representing the string if possible
@@ -86,7 +86,7 @@
      *             if the string is not parsable or does not follow any of the
      *             given formats.
      */
-    public static Color parseColorString(FOUserAgent foUserAgent, String value) 
+    public static Color parseColorString(FOUserAgent foUserAgent, String value)
             throws PropertyException {
         if (value == null) {
             return null;
@@ -111,11 +111,11 @@
             } else if (value.startsWith("cmyk")) {
                 parsedColor = parseAsCMYK(value);
             }
-            
+
             if (parsedColor == null) {
                 throw new PropertyException("Unknown Color: " + value);
             }
-            
+
             colorMap.put(value, parsedColor);
         }
 
@@ -127,7 +127,7 @@
 
     /**
      * Tries to parse a color given with the system-color() function.
-     * 
+     *
      * @param value
      *            the complete line
      * @return a color if possible
@@ -149,7 +149,7 @@
 
     /**
      * Tries to parse the standard java.awt.Color toString output.
-     * 
+     *
      * @param value
      *            the complete line
      * @return a color if possible
@@ -170,11 +170,11 @@
                     throw new PropertyException(
                             "Invalid number of arguments for a java.awt.Color: " + value);
                 }
-                
+
                 red = Float.parseFloat(args[0].trim().substring(2)) / 255f;
                 green = Float.parseFloat(args[1].trim().substring(2)) / 255f;
                 blue = Float.parseFloat(args[2].trim().substring(2)) / 255f;
-                if ((red < 0.0 || red > 1.0) 
+                if ((red < 0.0 || red > 1.0)
                         || (green < 0.0 || green > 1.0)
                         || (blue < 0.0 || blue > 1.0)) {
                     throw new PropertyException("Color values out of range");
@@ -193,7 +193,7 @@
 
     /**
      * Parse a color given with the rgb() function.
-     * 
+     *
      * @param value
      *            the complete line
      * @return a color if possible
@@ -234,7 +234,7 @@
                 } else {
                     blue = Float.parseFloat(str) / 255f;
                 }
-                if ((red < 0.0 || red > 1.0) 
+                if ((red < 0.0 || red > 1.0)
                         || (green < 0.0 || green > 1.0)
                         || (blue < 0.0 || blue > 1.0)) {
                     throw new PropertyException("Color values out of range");
@@ -256,7 +256,7 @@
 
     /**
      * parse a color given in the #.... format.
-     * 
+     *
      * @param value
      *            the complete line
      * @return a color if possible
@@ -297,19 +297,19 @@
 
     /**
      * Parse a color specified using the fop-rgb-icc() function.
-     * 
+     *
      * @param value the function call
      * @return a color if possible
      * @throws PropertyException if the format is wrong.
      */
-    private static Color parseAsFopRgbIcc(FOUserAgent foUserAgent, String value) 
+    private static Color parseAsFopRgbIcc(FOUserAgent foUserAgent, String value)
             throws PropertyException {
         Color parsedColor;
         int poss = value.indexOf("(");
         int pose = value.indexOf(")");
         if (poss != -1 && pose != -1) {
             String[] args = value.substring(poss + 1, pose).split(",");
-            
+
             try {
                 if (args.length < 5) {
                     throw new PropertyException("Too few arguments for rgb-icc() function");
@@ -339,27 +339,27 @@
                 ColorSpace colorSpace = (foUserAgent != null
                         ? foUserAgent.getFactory().getColorSpace(
                                 foUserAgent.getBaseURL(), iccProfileSrc) : null);
-                
+
                 float red = 0, green = 0, blue = 0;
                 red = Float.parseFloat(args[0].trim());
                 green = Float.parseFloat(args[1].trim());
                 blue = Float.parseFloat(args[2].trim());
                 /* Verify rgb replacement arguments */
-                if ((red < 0 || red > 1) 
-                        || (green < 0 || green > 1) 
+                if ((red < 0 || red > 1)
+                        || (green < 0 || green > 1)
                         || (blue < 0 || blue > 1)) {
                     throw new PropertyException("Color values out of range. "
                             + "Fallback RGB arguments to fop-rgb-icc() must be [0..1]");
                 }
 
                 if (colorSpace != null) {
-                    // ColorSpace available - create ColorExt (keeps track of replacement rgb 
+                    // ColorSpace available - create ColorExt (keeps track of replacement rgb
                     // values for possible later colorTOsRGBString call
-                    parsedColor = ColorExt.createFromFoRgbIcc(red, green, blue, 
+                    parsedColor = ColorExt.createFromFoRgbIcc(red, green, blue,
                             iccProfileName, iccProfileSrc, colorSpace, iccComponents);
                 } else {
                     // ICC profile could not be loaded - use rgb replacement values */
-                    log.warn("Color profile '" + iccProfileSrc 
+                    log.warn("Color profile '" + iccProfileSrc
                             + "' not found. Using rgb replacement values.");
                     parsedColor = new Color(Math.round(red * 255),
                             Math.round(green * 255), Math.round(blue * 255));
@@ -380,7 +380,7 @@
 
     /**
      * Parse a color given with the cmyk() function.
-     * 
+     *
      * @param value
      *            the complete line
      * @return a color if possible
@@ -428,8 +428,8 @@
                 } else {
                   black = Float.parseFloat(str);
                 }
-                
-                if ((cyan < 0.0 || cyan > 1.0) 
+
+                if ((cyan < 0.0 || cyan > 1.0)
                         || (magenta < 0.0 || magenta > 1.0)
                         || (yellow < 0.0 || yellow > 1.0)
                         || (black < 0.0 || black > 1.0)) {
@@ -439,7 +439,7 @@
                 float[] cmyk = new float[] {cyan, magenta, yellow, black};
                 CMYKColorSpace cmykCs = CMYKColorSpace.getInstance();
                 float[] rgb = cmykCs.toRGB(cmyk);
-                parsedColor = ColorExt.createFromFoRgbIcc(rgb[0], rgb[1], rgb[2], 
+                parsedColor = ColorExt.createFromFoRgbIcc(rgb[0], rgb[1], rgb[2],
                         null, "#CMYK", cmykCs, cmyk);
             } catch (PropertyException pe) {
                 throw pe;
@@ -452,13 +452,13 @@
         }
         return parsedColor;
     }
-    
+
     /**
      * Creates a re-parsable string representation of the given color.
      * <p>
      * First, the color will be converted into the sRGB colorspace. It will then
      * be printed as #rrggbb, or as #rrrggbbaa if an alpha value is present.
-     * 
+     *
      * @param color
      *            the color to represent.
      * @return a re-parsable string representadion.

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/util/CommandLineLogger.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/util/CommandLineLogger.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/util/CommandLineLogger.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/util/CommandLineLogger.java Thu Jul 24 02:35:34 2008
@@ -4,9 +4,9 @@
 /* The ASF licenses this file to You under the Apache License, Version 2.0
 /* (the "License"); you may not use this file except in compliance with
 /* the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -40,17 +40,17 @@
 
     private int logLevel;
     private String logName;
-    
+
     /**
-     * Construct the logger with a default log level taken from the LogFactory 
-     * attribute "level". 
+     * Construct the logger with a default log level taken from the LogFactory
+     * attribute "level".
      * @param logName the logger name.
      */
     public CommandLineLogger(String logName) {
         this.logName = logName;
         setLogLevel((String) LogFactory.getFactory().getAttribute("level"));
     }
-    
+
     /**
      * Set a log level for the logger.
      * @param level the log level
@@ -72,7 +72,7 @@
             logLevel = LOG_LEVEL_INFO;
         }
     }
-    
+
     /**
      * {@inheritDoc}
      */
@@ -93,7 +93,7 @@
     public final boolean isInfoEnabled() {
         return logLevel <= LOG_LEVEL_INFO;
     }
-    
+
     /**
      * {@inheritDoc}
      */
@@ -114,7 +114,7 @@
     public final boolean isFatalEnabled() {
         return logLevel <= LOG_LEVEL_FATAL;
     }
-    
+
     /**
      * {@inheritDoc}
      */
@@ -222,7 +222,7 @@
             log(LOG_LEVEL_FATAL, message, t);
         }
     }
-    
+
     /**
      * Do the actual logging.
      * This method assembles the message and prints it to

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/util/ContentHandlerFactory.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/util/ContentHandlerFactory.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/util/ContentHandlerFactory.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/util/ContentHandlerFactory.java Thu Jul 24 02:35:34 2008
@@ -34,43 +34,43 @@
      * @return an array of supported namespaces.
      */
     String[] getSupportedNamespaces();
-    
+
     /**
      * @return a new ContentHandler to handle a SAX stream
      * @throws SAXException if there's an error while preparing the ContentHandler
      */
     ContentHandler createContentHandler() throws SAXException;
-    
+
     /**
      * Interface that ContentHandler implementations that parse Java objects from XML can implement
      * to return these objects.
      */
     public interface ObjectSource {
-        
+
         /**
          * @return the object parsed from the SAX stream (call valid after parsing)
          */
         Object getObject();
-     
+
         /**
          * Set a listener which gets notified when the object is fully built.
          * @param listener the listener which gets notified
          */
         void setObjectBuiltListener(ObjectBuiltListener listener);
     }
-    
+
     /**
      * EventListener interface for objects which want to get notified when ContentHandler
      * implementing the ObjectSource interface has finished parsing.
      */
     public interface ObjectBuiltListener extends EventListener {
-        
+
         /**
          * Notifies the listener when the object is fully built.
          * @param obj the newly built object
          */
         void notifyObjectBuilt(Object obj);
-        
+
     }
-    
+
 }

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/util/ContentHandlerFactoryRegistry.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/util/ContentHandlerFactoryRegistry.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/util/ContentHandlerFactoryRegistry.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/util/ContentHandlerFactoryRegistry.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -36,24 +36,24 @@
 
     /** the logger */
     private static Log log = LogFactory.getLog(ContentHandlerFactoryRegistry.class);
-    
+
     /** Map from namespace URIs to ContentHandlerFactories */
     private Map factories = new java.util.HashMap();
-    
+
     /**
      * Default constructor.
      */
     public ContentHandlerFactoryRegistry() {
         discover();
     }
-    
+
     /**
      * Add an XML handler. The handler itself is inspected to find out what it supports.
      * @param classname the fully qualified class name
      */
     public void addContentHandlerFactory(String classname) {
         try {
-            ContentHandlerFactory factory 
+            ContentHandlerFactory factory
                 = (ContentHandlerFactory)Class.forName(classname).newInstance();
             addContentHandlerFactory(factory);
         } catch (ClassNotFoundException e) {
@@ -67,11 +67,11 @@
                                                + classname);
         } catch (ClassCastException e) {
             throw new IllegalArgumentException(classname
-                                               + " is not an " 
+                                               + " is not an "
                                                + ContentHandlerFactory.class.getName());
         }
     }
-    
+
     /**
      * Add an ContentHandlerFactory. The instance is inspected to find out what it supports.
      * @param factory the ContentHandlerFactory instance
@@ -82,7 +82,7 @@
             factories.put(ns[i], factory);
         }
     }
-    
+
     /**
      * Retrieves a ContentHandlerFactory instance of a given namespace URI.
      * @param namespaceURI the namespace to be handled.
@@ -92,7 +92,7 @@
         ContentHandlerFactory factory = (ContentHandlerFactory)factories.get(namespaceURI);
         return factory;
     }
-    
+
     /**
      * Discovers ContentHandlerFactory implementations through the classpath and dynamically
      * registers them.
@@ -105,7 +105,7 @@
                 ContentHandlerFactory factory = (ContentHandlerFactory)providers.next();
                 try {
                     if (log.isDebugEnabled()) {
-                        log.debug("Dynamically adding ContentHandlerFactory: " 
+                        log.debug("Dynamically adding ContentHandlerFactory: "
                                 + factory.getClass().getName());
                     }
                     addContentHandlerFactory(factory);

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=679326&r1=679325&r2=679326&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 Thu Jul 24 02:35:34 2008
@@ -5,7 +5,7 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- 
+
  *      http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
@@ -27,84 +27,84 @@
      * Converts the given base <code>String</code> into
      * an array of <code>int</code>, splitting the base along the
      * given separator pattern.
-     * <em>Note: this method assumes the input is a string containing 
+     * <em>Note: this method assumes the input is a string containing
      * only decimal integers, signed or unsigned, that are parsable
      * by <code>java.lang.Integer.parseInt(String)</code>. If this
      * is not the case, the resulting <code>NumberFormatException</code>
      * will have to be handled by the caller.</em>
-     * 
+     *
      * @param baseString    the base string
      * @param separatorPattern  the pattern separating the integer values
      *        (if this is <code>null</code>, the baseString is parsed as one
-     *         integer value) 
+     *         integer value)
      * @return  an array of <code>int</code> whose size is equal to the number
      *          values in the input string; <code>null</code> if this number
      *          is equal to zero.
      */
     public static int[] toIntArray(String baseString, String separatorPattern) {
-        
+
         if (baseString == null || "".equals(baseString)) {
             return null;
         }
-        
+
         if (separatorPattern == null || "".equals(separatorPattern)) {
             return new int[] { Integer.parseInt(baseString) };
         }
-        
+
         String[] values = baseString.split(separatorPattern);
         int numValues = values.length;
         if (numValues == 0) {
             return null;
         }
-        
+
         int[] returnArray = new int[numValues];
         for (int i = 0; i < numValues; ++i) {
             returnArray[i] = Integer.parseInt(values[i]);
         }
         return returnArray;
-        
+
     }
 
     /**
      * Converts the given base <code>String</code> into
      * an array of <code>double</code>, splitting the base along the
      * given separator pattern.
-     * <em>Note: this method assumes the input is a string containing 
+     * <em>Note: this method assumes the input is a string containing
      * only decimal doubles, signed or unsigned, that are parsable
      * by <code>java.lang.Double.parseDouble(String)</code>. If this
      * is not the case, the resulting <code>NumberFormatException</code>
      * will have to be handled by the caller.</em>
-     * 
+     *
      * @param baseString    the base string
      * @param separatorPattern  the pattern separating the integer values
      *        (if this is <code>null</code>, the baseString is parsed as one
-     *         double value) 
+     *         double value)
      * @return  an array of <code>double</code> whose size is equal to the number
      *          values in the input string; <code>null</code> if this number
      *          is equal to zero.
      */
     public static double[] toDoubleArray(String baseString, String separatorPattern) {
-        
+
         if (baseString == null || "".equals(baseString)) {
             return null;
         }
-        
+
         if (separatorPattern == null || "".equals(separatorPattern)) {
             return new double[] { Double.parseDouble(baseString) };
         }
-        
+
         String[] values = baseString.split(separatorPattern);
         int numValues = values.length;
         if (numValues == 0) {
             return null;
         }
-        
+
         double[] returnArray = new double[numValues];
         for (int i = 0; i < numValues; ++i) {
             returnArray[i] = Double.parseDouble(values[i]);
         }
         return returnArray;
-        
+
     }
-    
+
 }

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/util/DOM2SAX.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/util/DOM2SAX.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/util/DOM2SAX.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/util/DOM2SAX.java Thu Jul 24 02:35:34 2008
@@ -35,7 +35,7 @@
 /**
  * Helper class that produces a SAX stream from a DOM Document.
  * <p>
- * Part of the code here copied and adapted from Apache Xalan-J, 
+ * Part of the code here copied and adapted from Apache Xalan-J,
  * src/org/apache/xalan/xsltc/trax/DOM2SAX.java
  */
 public class DOM2SAX {
@@ -45,9 +45,9 @@
 
     private ContentHandler contentHandler;
     private LexicalHandler lexicalHandler;
-    
+
     private Map prefixes = new java.util.HashMap();
-    
+
     /**
      * Main constructor
      * @param handler the ContentHandler to send SAX events to
@@ -58,7 +58,7 @@
             this.lexicalHandler = (LexicalHandler)handler;
         }
     }
-    
+
     /**
      * Writes the given document using the given ContentHandler.
      * @param doc DOM document
@@ -143,7 +143,7 @@
      * @param node node to serialize
      * @throws SAXException In case of a problem while writing XML
      */
-    private void writeNode(Node node) 
+    private void writeNode(Node node)
                 throws SAXException {
         if (node == null) {
             return;
@@ -284,5 +284,5 @@
         }
     }
 
-    
+
 }

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/util/DOMBuilderContentHandlerFactory.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/util/DOMBuilderContentHandlerFactory.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/util/DOMBuilderContentHandlerFactory.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/util/DOMBuilderContentHandlerFactory.java Thu Jul 24 02:35:34 2008
@@ -35,23 +35,23 @@
  */
 public class DOMBuilderContentHandlerFactory implements ContentHandlerFactory {
 
-    private static SAXTransformerFactory tFactory 
+    private static SAXTransformerFactory tFactory
             = (SAXTransformerFactory)SAXTransformerFactory.newInstance();
 
     private String namespaceURI;
     private DOMImplementation domImplementation;
-    
+
     /**
      * Main Constructor
-     * @param namespaceURI the main namespace URI for the DOM to be parsed 
+     * @param namespaceURI the main namespace URI for the DOM to be parsed
      * @param domImplementation the DOMImplementation to use for build the DOM
      */
-    public DOMBuilderContentHandlerFactory(String namespaceURI, 
+    public DOMBuilderContentHandlerFactory(String namespaceURI,
                 DOMImplementation domImplementation) {
         this.namespaceURI = namespaceURI;
         this.domImplementation = domImplementation;
     }
-    
+
     /** {@inheritDoc} */
     public String[] getSupportedNamespaces() {
         return new String[] {namespaceURI};
@@ -61,13 +61,13 @@
     public ContentHandler createContentHandler() throws SAXException {
         return new Handler();
     }
-    
+
     private class Handler extends DelegatingContentHandler
                 implements ContentHandlerFactory.ObjectSource {
-     
+
         private Document doc;
         private ObjectBuiltListener obListener;
-        
+
         public Handler() throws SAXException {
             super();
         }
@@ -75,7 +75,7 @@
         public Document getDocument() {
             return this.doc;
         }
-        
+
         /**
          * {@inheritDoc}
          */
@@ -89,7 +89,7 @@
         public void setObjectBuiltListener(ObjectBuiltListener listener) {
             this.obListener = listener;
         }
-        
+
         /**
          * {@inheritDoc}
          */
@@ -103,7 +103,7 @@
         /**
          * {@inheritDoc}
          */
-        public void startElement(String uri, String localName, String qName, Attributes atts) 
+        public void startElement(String uri, String localName, String qName, Attributes atts)
                     throws SAXException {
             if (doc == null) {
                 TransformerHandler handler;

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/util/DataURIResolver.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/util/DataURIResolver.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/util/DataURIResolver.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/util/DataURIResolver.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -31,7 +31,7 @@
 
 /**
  * Resolves data URLs (described in RFC 2397) returning its data as a StreamSource.
- * 
+ *
  * @see javax.xml.transform.URIResolver
  * @see <a href="http://www.ietf.org/rfc/rfc2397">RFC 2397</a>
  */
@@ -51,7 +51,7 @@
     /**
      * Parses inline data URIs as generated by MS Word's XML export and FO
      * stylesheet.
-     * 
+     *
      * @see <a href="http://www.ietf.org/rfc/rfc2397">RFC 2397</a>
      */
     private Source parseDataURI(String href) {

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/util/DataURLUtil.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/util/DataURLUtil.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/util/DataURLUtil.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/util/DataURLUtil.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -44,7 +44,7 @@
         writeDataURL(in, mediatype, writer);
         return writer.toString();
     }
-    
+
     /**
      * Generates a data URL and writes it to a Writer.
      * @param in the InputStream to read the data from

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/util/DefaultErrorListener.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/util/DefaultErrorListener.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/util/DefaultErrorListener.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/util/DefaultErrorListener.java Thu Jul 24 02:35:34 2008
@@ -31,7 +31,7 @@
 public class DefaultErrorListener implements ErrorListener {
 
     private Log log;
-    
+
     /**
      * Main constructor
      * @param log the log instance to send log events to
@@ -39,7 +39,7 @@
     public DefaultErrorListener(Log log) {
         this.log = log;
     }
-    
+
     /**
      * {@inheritDoc}
      */

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/util/DelegatingContentHandler.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/util/DelegatingContentHandler.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/util/DelegatingContentHandler.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/util/DelegatingContentHandler.java Thu Jul 24 02:35:34 2008
@@ -38,9 +38,9 @@
  * <p>
  * The ContentHandler is the only instance that is required. All others (DTDHandler,
  * EntityResolver, LexicalHandler and ErrorHandler) may be ignored.
- * 
+ *
  */
-public class DelegatingContentHandler 
+public class DelegatingContentHandler
         implements EntityResolver, DTDHandler, ContentHandler, LexicalHandler, ErrorHandler {
 
     private ContentHandler delegate;
@@ -48,7 +48,7 @@
     private DTDHandler dtdHandler;
     private LexicalHandler lexicalHandler;
     private ErrorHandler errorHandler;
-    
+
     /**
      * Main constructor.
      */
@@ -62,7 +62,7 @@
     public ContentHandler getDelegateContentHandler() {
         return this.delegate;
     }
-    
+
     /**
      * Sets the delegate ContentHandler that all events are forwarded to.
      * @param handler the delegate instance
@@ -70,7 +70,7 @@
     public void setDelegateContentHandler(ContentHandler handler) {
         this.delegate = handler;
     }
-    
+
     /**
      * Sets the delegate EntityResolver.
      * @param resolver the delegate instance
@@ -78,7 +78,7 @@
     public void setDelegateEntityResolver(EntityResolver resolver) {
         this.entityResolver = resolver;
     }
-    
+
     /**
      * Sets the delegate DTDHandler.
      * @param handler the delegate instance
@@ -86,7 +86,7 @@
     public void setDelegateDTDHandler(DTDHandler handler) {
         this.dtdHandler = handler;
     }
-    
+
     /**
      * Sets the delegate LexicalHandler.
      * @param handler the delegate instance
@@ -94,7 +94,7 @@
     public void setDelegateLexicalHandler(LexicalHandler handler) {
         this.lexicalHandler = handler;
     }
-    
+
     /**
      * Sets the delegate ErrorHandler.
      * @param handler the delegate instance
@@ -102,9 +102,9 @@
     public void setDelegateErrorHandler(ErrorHandler handler) {
         this.errorHandler = handler;
     }
-    
+
     // ==== EntityResolver
-    
+
     /**
      * {@inheritDoc}
      */
@@ -130,7 +130,7 @@
     /**
      * {@inheritDoc}
      */
-    public void unparsedEntityDecl(String name, String publicId, String systemId, 
+    public void unparsedEntityDecl(String name, String publicId, String systemId,
             String notationName) throws SAXException {
         if (dtdHandler != null) {
             dtdHandler.unparsedEntityDecl(name, publicId, systemId, notationName);
@@ -138,7 +138,7 @@
     }
 
     // ==== ContentHandler
-    
+
     /**
      * {@inheritDoc}
      */
@@ -177,7 +177,7 @@
     /**
      * {@inheritDoc}
      */
-    public void startElement(String uri, String localName, String qName, 
+    public void startElement(String uri, String localName, String qName,
                 Attributes atts) throws SAXException {
         delegate.startElement(uri, localName, qName, atts);
     }
@@ -218,7 +218,7 @@
     }
 
     // ==== LexicalHandler
-    
+
     /**
      * {@inheritDoc}
      */
@@ -226,7 +226,7 @@
         if (lexicalHandler != null) {
             lexicalHandler.startDTD(name, publicId, systemId);
         }
-        
+
     }
 
     /**
@@ -275,14 +275,14 @@
     }
 
     /**
-     * {@inheritDoc} 
+     * {@inheritDoc}
      */
     public void comment(char[] ch, int start, int length) throws SAXException {
         if (lexicalHandler != null) {
             lexicalHandler.comment(ch, start, length);
         }
     }
-    
+
     // ==== ErrorHandler
 
     /**

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/util/ListUtil.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/util/ListUtil.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/util/ListUtil.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/util/ListUtil.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -23,7 +23,7 @@
 
 /**
  * Provides helper functions for {@link java.util.List}.
- * 
+ *
  */
 public final class ListUtil {
 
@@ -33,7 +33,7 @@
 
     /**
      * Retrieve the last element from a list.
-     * 
+     *
      * @param list
      *            The list to work on
      * @return last element
@@ -44,7 +44,7 @@
 
     /**
      * Retrieve and remove the last element from a list.
-     * 
+     *
      * @param list
      *            The list to work on
      * @return previous last element

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/util/LogUtil.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/util/LogUtil.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/util/LogUtil.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/util/LogUtil.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -23,7 +23,7 @@
 import org.apache.fop.apps.FOPException;
 
 /**
- * Convenience Logging utility methods used in FOP 
+ * Convenience Logging utility methods used in FOP
  */
 public class LogUtil {
 

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/util/QName.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/util/QName.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/util/QName.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/util/QName.java Thu Jul 24 02:35:34 2008
@@ -22,14 +22,14 @@
 /**
  * Represents a qualified name of an XML element or an XML attribute.
  * <p>
- * Note: This class allows to carry a namespace prefix but it is not used in the equals() and 
+ * Note: This class allows to carry a namespace prefix but it is not used in the equals() and
  * hashCode() methods.
  * @deprecated Use the XML Graphics Commons variant instead!
  */
 public class QName extends org.apache.xmlgraphics.util.QName {
 
     private static final long serialVersionUID = -5225376740044770690L;
-    
+
     /**
      * Main constructor.
      * @param namespaceURI the namespace URI
@@ -39,7 +39,7 @@
     public QName(String namespaceURI, String prefix, String localName) {
         super(namespaceURI, prefix, localName);
     }
-    
+
     /**
      * Main constructor.
      * @param namespaceURI the namespace URI
@@ -48,5 +48,5 @@
     public QName(String namespaceURI, String qName) {
         super(namespaceURI, qName);
     }
-    
+
 }

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/util/UnclosableInputStream.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/util/UnclosableInputStream.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/util/UnclosableInputStream.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/util/UnclosableInputStream.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -29,7 +29,7 @@
 
     /**
      * Default constructor.
-     * 
+     *
      * @param in the Stream to filter.
      */
     public UnclosableInputStream(InputStream in) {

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/util/UnitConv.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/util/UnitConv.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/util/UnitConv.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/util/UnitConv.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -26,13 +26,13 @@
 
     /** conversion factory from millimeters to inches. */
     public static final float IN2MM = 25.4f;
-    
+
     /** conversion factory from centimeters to inches. */
     public static final float IN2CM = 2.54f;
-    
+
     /** conversion factory from inches to points. */
     public static final int IN2PT = 72;
-    
+
     /**
      * Converts millimeters (mm) to points (pt)
      * @param mm the value in mm
@@ -59,7 +59,7 @@
     public static double pt2mm(double pt) {
         return pt * IN2MM / IN2PT;
     }
-    
+
     /**
      * Converts millimeters (mm) to inches (in)
      * @param mm the value in mm
@@ -68,7 +68,7 @@
     public static double mm2in(double mm) {
         return mm / IN2MM;
     }
-    
+
     /**
      * Converts inches (in) to millimeters (mm)
      * @param in the value in inches
@@ -77,7 +77,7 @@
     public static double in2mm(double in) {
         return in * IN2MM;
     }
-    
+
     /**
      * Converts inches (in) to millipoints (mpt)
      * @param in the value in inches
@@ -86,7 +86,7 @@
     public static double in2mpt(double in) {
         return in * IN2PT * 1000;
     }
-    
+
     /**
      * Converts inches (in) to points (pt)
      * @param in the value in inches
@@ -95,16 +95,16 @@
     public static double in2pt(double in) {
         return in * IN2PT;
     }
-    
+
     /**
-     * Converts millipoints (mpt) to inches (in) 
+     * Converts millipoints (mpt) to inches (in)
      * @param mpt the value in mpt
      * @return the value in inches
      */
     public static double mpt2in(double mpt) {
         return mpt / IN2PT / 1000;
     }
-    
+
     /**
      * Converts millimeters (mm) to pixels (px)
      * @param mm the value in mm

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/util/WriterOutputStream.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/util/WriterOutputStream.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/util/WriterOutputStream.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/util/WriterOutputStream.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -24,7 +24,7 @@
 import java.io.Writer;
 
 /**
- * An OutputStream wrapper for a Writer. 
+ * An OutputStream wrapper for a Writer.
  */
 public class WriterOutputStream extends OutputStream {
 

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/util/XMLResourceBundle.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/util/XMLResourceBundle.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/util/XMLResourceBundle.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/util/XMLResourceBundle.java Thu Jul 24 02:35:34 2008
@@ -1,4 +1,4 @@
-/* 
+/*
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.
@@ -61,12 +61,12 @@
 public class XMLResourceBundle extends ResourceBundle {
 
     //Note: Some code here has been copied and adapted from Apache Harmony!
-    
+
     private Properties resources = new Properties();
 
     private Locale locale;
-    
-    private static SAXTransformerFactory tFactory 
+
+    private static SAXTransformerFactory tFactory
         = (SAXTransformerFactory)SAXTransformerFactory.newInstance();
 
     /**
@@ -84,7 +84,7 @@
             throw new IOException("Error while parsing XML resource bundle: " + e.getMessage());
         }
     }
-    
+
     /**
      * Gets a resource bundle using the specified base name, default locale, and class loader.
      * @param baseName the base name of the resource bundle, a fully qualified class name
@@ -98,7 +98,7 @@
                 throws MissingResourceException {
         return getXMLBundle(baseName, Locale.getDefault(), loader);
     }
-    
+
     /**
      * Gets a resource bundle using the specified base name, locale, and class loader.
      * @param baseName the base name of the resource bundle, a fully qualified class name
@@ -117,7 +117,7 @@
         if (baseName == null) {
             throw new NullPointerException("baseName must not be null");
         }
-            
+
         ResourceBundle bundle;
         if (!locale.equals(Locale.getDefault())) {
             bundle = handleGetXMLBundle(baseName, "_" + locale, false, loader);
@@ -145,10 +145,10 @@
 
     private static final ResourceBundle MISSING = new MissingBundle();
     private static final ResourceBundle MISSINGBASE = new MissingBundle();
-    
+
     private static Map cache = new java.util.WeakHashMap();
     //<Object, Hashtable<String, ResourceBundle>>
-    
+
     private static ResourceBundle handleGetXMLBundle(String base, String locale,
             boolean loadBase, final ClassLoader loader) {
         XMLResourceBundle bundle = null;
@@ -224,8 +224,8 @@
         }
         loaderCache.put(bundleName, loadBase ? MISSINGBASE : MISSING);
         return null;
-    }    
-    
+    }
+
     private void setLocale(String name) {
         String language = "", country = "", variant = "";
         if (name.length() > 1) {
@@ -248,7 +248,7 @@
         }
         this.locale = new Locale(language, country, variant);
     }
-    
+
     private static String strip(String name) {
         int index = name.lastIndexOf('_');
         if (index != -1) {
@@ -256,16 +256,16 @@
         }
         return null;
     }
-    
+
     private Enumeration getLocalKeys() {
         return (Enumeration)resources.propertyNames();
     }
-    
+
     /** {@inheritDoc} */
     public Locale getLocale() {
         return this.locale;
     }
-    
+
     /** {@inheritDoc} */
     public Enumeration getKeys() {
         if (parent == null) {
@@ -327,10 +327,10 @@
     }
 
     private class CatalogueHandler extends DefaultHandler {
-        
+
         private static final String CATALOGUE = "catalogue";
         private static final String MESSAGE = "message";
-        
+
         private StringBuffer valueBuffer = new StringBuffer();
         private Stack elementStack = new Stack();
         private String currentKey = null;
@@ -338,13 +338,13 @@
         private boolean isOwnNamespace(String uri) {
             return ("".equals(uri));
         }
-        
+
         private QName getParentElementName() {
             return (QName)elementStack.peek();
         }
-        
+
         /** {@inheritDoc} */
-        public void startElement(String uri, String localName, String qName, 
+        public void startElement(String uri, String localName, String qName,
                 Attributes atts) throws SAXException {
             super.startElement(uri, localName, qName, atts);
             QName elementName = new QName(uri, qName);
@@ -386,13 +386,13 @@
             }
             this.valueBuffer.setLength(0);
         }
-        
+
         /** {@inheritDoc} */
         public void characters(char[] ch, int start, int length) throws SAXException {
             super.characters(ch, start, length);
             valueBuffer.append(ch, start, length);
         }
-        
+
     }
-    
+
 }

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/util/text/AdvancedMessageFormat.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/util/text/AdvancedMessageFormat.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/util/text/AdvancedMessageFormat.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/util/text/AdvancedMessageFormat.java Thu Jul 24 02:35:34 2008
@@ -45,13 +45,13 @@
 
     /** Regex that matches "," but not "\," (escaped comma) */
     static final Pattern COMMA_SEPARATOR_REGEX = Pattern.compile("(?<!\\\\),");
-    
+
     private static final Map PART_FACTORIES = new java.util.HashMap();
     private static final List OBJECT_FORMATTERS = new java.util.ArrayList();
     private static final Map FUNCTIONS = new java.util.HashMap();
-    
+
     private CompositePart rootPart;
-    
+
     static {
         Iterator iter;
         iter = Service.providers(PartFactory.class, true);
@@ -69,7 +69,7 @@
             FUNCTIONS.put(function.getName(), function);
         }
     }
-    
+
     /**
      * Construct a new message format.
      * @param pattern the message format pattern.
@@ -77,13 +77,13 @@
     public AdvancedMessageFormat(CharSequence pattern) {
         parsePattern(pattern);
     }
-    
+
     private void parsePattern(CharSequence pattern) {
         rootPart = new CompositePart(false);
         StringBuffer sb = new StringBuffer();
         parseInnerPattern(pattern, rootPart, sb, 0);
     }
-    
+
     private int parseInnerPattern(CharSequence pattern, CompositePart parent,
             StringBuffer sb, int start) {
         assert sb.length() == 0;
@@ -155,7 +155,7 @@
         }
         return i - start;
     }
-    
+
     private Part parseField(String field) {
         String[] parts = COMMA_SEPARATOR_REGEX.split(field, 3);
         String fieldName = parts[0];
@@ -203,20 +203,20 @@
     public void format(Map params, StringBuffer target) {
         rootPart.write(target, params);
     }
-    
+
     /**
      * Represents a message template part. This interface is implemented by various variants of
      * the single curly braces pattern ({field}, {field,if,yes,no} etc.).
      */
     public interface Part {
-        
+
         /**
          * Writes the formatted part to a string buffer.
          * @param sb the target string buffer
          * @param params the parameters to work with
          */
         void write(StringBuffer sb, Map params);
-        
+
         /**
          * Indicates whether there is any content that is generated by this message part.
          * @param params the parameters to work with
@@ -224,12 +224,12 @@
          */
         boolean isGenerated(Map params);
     }
-    
+
     /**
      * Implementations of this interface parse a field part and return message parts.
      */
     public interface PartFactory {
-        
+
         /**
          * Creates a new part by parsing the values parameter to configure the part.
          * @param fieldName the field name
@@ -237,26 +237,26 @@
          * @return the new message part
          */
         Part newPart(String fieldName, String values);
-        
+
         /**
          * Returns the name of the message part format.
          * @return the name of the message part format
          */
         String getFormat();
     }
-    
+
     /**
      * Implementations of this interface format certain objects to strings.
      */
     public interface ObjectFormatter {
-        
+
         /**
          * Formats an object to a string and writes the result to a string buffer.
          * @param sb the target string buffer
          * @param obj the object to be formatted
          */
         void format(StringBuffer sb, Object obj);
-        
+
         /**
          * Indicates whether a given object is supported.
          * @param obj the object
@@ -264,40 +264,40 @@
          */
         boolean supportsObject(Object obj);
     }
-    
+
     /**
      * Implementations of this interface do some computation based on the message parameters
      * given to it. Note: at the moment, this has to be done in a local-independent way since
      * there is no locale information.
      */
     public interface Function {
-        
+
         /**
          * Executes the function.
          * @param params the message parameters
          * @return the function result
          */
         Object evaluate(Map params);
-        
+
         /**
          * Returns the name of the function.
          * @return the name of the function
          */
         Object getName();
     }
-    
+
     private static class TextPart implements Part {
-        
+
         private String text;
-        
+
         public TextPart(String text) {
             this.text = text;
         }
-        
+
         public void write(StringBuffer sb, Map params) {
             sb.append(text);
         }
-        
+
         public boolean isGenerated(Map params) {
             return true;
         }
@@ -307,15 +307,15 @@
             return this.text;
         }
     }
-    
+
     private static class SimpleFieldPart implements Part {
-        
+
         private String fieldName;
-        
+
         public SimpleFieldPart(String fieldName) {
             this.fieldName = fieldName;
         }
-        
+
         public void write(StringBuffer sb, Map params) {
             if (!params.containsKey(fieldName)) {
                 throw new IllegalArgumentException(
@@ -329,13 +329,13 @@
             Object obj = params.get(fieldName);
             return obj != null;
         }
-        
+
         /** {@inheritDoc} */
         public String toString() {
             return "{" + this.fieldName + "}";
         }
     }
-    
+
     /**
      * Formats an object to a string and writes the result to a string buffer. This method
      * usually uses the object's <code>toString()</code> method unless there is an
@@ -363,18 +363,18 @@
             }
         }
     }
-    
+
     private static class FunctionPart implements Part {
-        
+
         private Function function;
-        
+
         public FunctionPart(String functionName) {
             this.function = getFunction(functionName);
             if (this.function == null) {
                 throw new IllegalArgumentException("Unknown function: " + functionName);
             }
         }
-        
+
         public void write(StringBuffer sb, Map params) {
             Object obj = this.function.evaluate(params);
             formatObject(obj, sb);
@@ -384,28 +384,28 @@
             Object obj = this.function.evaluate(params);
             return obj != null;
         }
-        
+
         /** {@inheritDoc} */
         public String toString() {
             return "{#" + this.function.getName() + "}";
         }
     }
-    
+
     private static class CompositePart implements Part {
-        
+
         protected List parts = new java.util.ArrayList();
         private boolean conditional;
         private boolean hasSections = false;
-        
+
         public CompositePart(boolean conditional) {
             this.conditional = conditional;
         }
-        
+
         private CompositePart(List parts) {
             this.parts.addAll(parts);
             this.conditional = true;
         }
-        
+
         public void addChild(Part part) {
             if (part == null) {
                 throw new NullPointerException("part must not be null");
@@ -417,7 +417,7 @@
                 this.parts.add(part);
             }
         }
-        
+
         public void newSection() {
             if (!hasSections) {
                 List p = this.parts;
@@ -428,7 +428,7 @@
             }
             this.parts.add(new CompositePart(true));
         }
-        
+
         public void write(StringBuffer sb, Map params) {
             if (hasSections) {
                 Iterator iter = this.parts.iterator();
@@ -473,14 +473,14 @@
                 return true;
             }
         }
-        
+
         /** {@inheritDoc} */
         public String toString() {
             return this.parts.toString();
         }
     }
-    
-    
+
+
     static String unescapeComma(String string) {
         return string.replaceAll("\\\\,", ",");
     }

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/util/text/ChoiceFieldPart.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/util/text/ChoiceFieldPart.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/util/text/ChoiceFieldPart.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/util/text/ChoiceFieldPart.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -31,12 +31,12 @@
  * Defines a "choice" field part that works like {@link ChoiceFormat}.
  */
 public class ChoiceFieldPart implements Part {
-    
+
     private static final Pattern VARIABLE_REGEX = Pattern.compile("\\{([^\\}]+)\\}");
-    
+
     private String fieldName;
     private ChoiceFormat choiceFormat;
-    
+
     /**
      * Creates a new choice part.
      * @param fieldName the field name to work on
@@ -72,7 +72,7 @@
     public String toString() {
         return "{" + this.fieldName + ",choice, ....}";
     }
-    
+
     /** Factory for ChoiceFieldPart. */
     public static class Factory implements PartFactory {
 
@@ -85,7 +85,7 @@
         public String getFormat() {
             return "choice";
         }
-        
+
     }
 
 }
\ No newline at end of file

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/util/text/EqualsFieldPart.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/util/text/EqualsFieldPart.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/util/text/EqualsFieldPart.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/util/text/EqualsFieldPart.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -30,9 +30,9 @@
  * <code>{field,equals,new,This is new!,This is old!}</code>
  */
 public class EqualsFieldPart extends IfFieldPart {
-    
+
     private String equalsValue;
-    
+
     /**
      * Creates a new "equals" field part.
      * @param fieldName the field name
@@ -57,7 +57,7 @@
             ifValue = AdvancedMessageFormat.unescapeComma(parts[1]);
         }
     }
-    
+
     /** {@inheritDoc} */
     protected boolean isTrue(Map params) {
         Object obj = params.get(fieldName);
@@ -72,7 +72,7 @@
     public String toString() {
         return "{" + this.fieldName + ", equals " + this.equalsValue + "}";
     }
-    
+
     /**
      * Part factory for "equals".
      */
@@ -87,6 +87,6 @@
         public String getFormat() {
             return "equals";
         }
-        
+
     }
 }
\ No newline at end of file

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/util/text/GlyphNameFieldPart.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/util/text/GlyphNameFieldPart.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/util/text/GlyphNameFieldPart.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/util/text/GlyphNameFieldPart.java Thu Jul 24 02:35:34 2008
@@ -32,7 +32,7 @@
 public class GlyphNameFieldPart implements Part {
 
     private String fieldName;
-    
+
     /**
      * Creates a new glyph name field part
      * @param fieldName the field name
@@ -40,13 +40,13 @@
     public GlyphNameFieldPart(String fieldName) {
         this.fieldName = fieldName;
     }
-    
+
     /** {@inheritDoc} */
     public boolean isGenerated(Map params) {
         Object obj = params.get(fieldName);
         return obj != null && getGlyphName(obj).length() > 0;
     }
-    
+
     private String getGlyphName(Object obj) {
         if (obj instanceof Character) {
             return Glyphs.charToGlyphName(((Character)obj).charValue());
@@ -71,7 +71,7 @@
     public String toString() {
         return "{" + this.fieldName + ",glyph-name}";
     }
-    
+
     /** Factory for {@link GlyphNameFieldPart}. */
     public static class Factory implements PartFactory {
 
@@ -79,11 +79,11 @@
         public Part newPart(String fieldName, String values) {
             return new GlyphNameFieldPart(fieldName);
         }
-        
+
         /** {@inheritDoc} */
         public String getFormat() {
             return "glyph-name";
         }
-        
+
     }
 }

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/util/text/HexFieldPart.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/util/text/HexFieldPart.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/util/text/HexFieldPart.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/util/text/HexFieldPart.java Thu Jul 24 02:35:34 2008
@@ -30,7 +30,7 @@
 public class HexFieldPart implements Part {
 
     private String fieldName;
-    
+
     /**
      * Creates a new hex field part
      * @param fieldName the field name
@@ -38,7 +38,7 @@
     public HexFieldPart(String fieldName) {
         this.fieldName = fieldName;
     }
-    
+
     /** {@inheritDoc} */
     public boolean isGenerated(Map params) {
         Object obj = params.get(fieldName);
@@ -66,7 +66,7 @@
     public String toString() {
         return "{" + this.fieldName + ",hex}";
     }
-    
+
     /** Factory for {@link HexFieldPart}. */
     public static class Factory implements PartFactory {
 
@@ -74,11 +74,11 @@
         public Part newPart(String fieldName, String values) {
             return new HexFieldPart(fieldName);
         }
-        
+
         /** {@inheritDoc} */
         public String getFormat() {
             return "hex";
         }
-        
+
     }
 }

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/util/text/IfFieldPart.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/util/text/IfFieldPart.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/util/text/IfFieldPart.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/util/text/IfFieldPart.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -30,14 +30,14 @@
  * <code>{field,if,Yes,No}</code>
  */
 public class IfFieldPart implements Part {
-    
+
     /** the field name for the part */
     protected String fieldName;
     /** the value being returned if the field is true */
     protected String ifValue;
     /** the value being returned if the field is false */
     protected String elseValue;
-    
+
     /**
      * Creates a new "if" field part.
      * @param fieldName the field name
@@ -61,7 +61,7 @@
             ifValue = AdvancedMessageFormat.unescapeComma(values);
         }
     }
-    
+
     /** {@inheritDoc} */
     public void write(StringBuffer sb, Map params) {
         boolean isTrue = isTrue(params);
@@ -91,12 +91,12 @@
     public boolean isGenerated(Map params) {
         return isTrue(params) || (elseValue != null);
     }
-    
+
     /** {@inheritDoc} */
     public String toString() {
         return "{" + this.fieldName + ", if...}";
     }
-    
+
     /**
      * Part factory for "if".
      */
@@ -106,11 +106,11 @@
         public Part newPart(String fieldName, String values) {
             return new IfFieldPart(fieldName, values);
         }
-        
+
         /** {@inheritDoc} */
         public String getFormat() {
             return "if";
         }
-        
+
     }
 }
\ No newline at end of file

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/util/text/LocatorFormatter.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/util/text/LocatorFormatter.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/util/text/LocatorFormatter.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/util/text/LocatorFormatter.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -38,5 +38,5 @@
     public boolean supportsObject(Object obj) {
         return obj instanceof Locator;
     }
-    
+
 }
\ No newline at end of file

Modified: xmlgraphics/fop/trunk/src/sandbox/org/apache/fop/render/mif/MIFElement.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/sandbox/org/apache/fop/render/mif/MIFElement.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/sandbox/org/apache/fop/render/mif/MIFElement.java (original)
+++ xmlgraphics/fop/trunk/src/sandbox/org/apache/fop/render/mif/MIFElement.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -16,7 +16,7 @@
  */
 
 /* $Id$ */
- 
+
 package org.apache.fop.render.mif;
 
 // Java

Modified: xmlgraphics/fop/trunk/src/sandbox/org/apache/fop/render/mif/MIFFOEventHandlerMaker.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/sandbox/org/apache/fop/render/mif/MIFFOEventHandlerMaker.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/sandbox/org/apache/fop/render/mif/MIFFOEventHandlerMaker.java (original)
+++ xmlgraphics/fop/trunk/src/sandbox/org/apache/fop/render/mif/MIFFOEventHandlerMaker.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -32,8 +32,8 @@
 public class MIFFOEventHandlerMaker extends AbstractFOEventHandlerMaker {
 
     private static final String[] MIMES = new String[] {MimeConstants.MIME_MIF};
-    
-    
+
+
     /** @see org.apache.fop.render.AbstractFOEventHandlerMaker */
     public FOEventHandler makeFOEventHandler(FOUserAgent ua, OutputStream out) {
         return new MIFHandler(ua, out);

Modified: xmlgraphics/fop/trunk/src/sandbox/org/apache/fop/render/mif/MIFFile.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/sandbox/org/apache/fop/render/mif/MIFFile.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/sandbox/org/apache/fop/render/mif/MIFFile.java (original)
+++ xmlgraphics/fop/trunk/src/sandbox/org/apache/fop/render/mif/MIFFile.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -16,7 +16,7 @@
  */
 
 /* $Id$ */
- 
+
 package org.apache.fop.render.mif;
 
 // Java

Modified: xmlgraphics/fop/trunk/src/sandbox/org/apache/fop/render/mif/MIFHandler.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/sandbox/org/apache/fop/render/mif/MIFHandler.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/sandbox/org/apache/fop/render/mif/MIFHandler.java (original)
+++ xmlgraphics/fop/trunk/src/sandbox/org/apache/fop/render/mif/MIFHandler.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -66,7 +66,7 @@
 
     /** the MIFFile instance */
     protected MIFFile mifFile;
-    
+
     /** the OutputStream to write to */
     protected OutputStream outStream;
 
@@ -409,25 +409,25 @@
      */
     public void startFootnote(Footnote footnote) {
     }
-    
+
     /**
      * @see org.apache.fop.fo.FOEventHandler#endFootnote(Footnote)
      */
     public void endFootnote(Footnote footnote) {
     }
-    
+
     /**
      * @see org.apache.fop.fo.FOEventHandler#startFootnoteBody(FootnoteBody)
      */
     public void startFootnoteBody(FootnoteBody body) {
     }
-    
+
     /**
      * @see org.apache.fop.fo.FOEventHandler#endFootnoteBody(FootnoteBody)
      */
     public void endFootnoteBody(FootnoteBody body) {
     }
-    
+
     /**
      * @see org.apache.fop.fo.FOEventHandler#leader(Leader)
      */

Modified: xmlgraphics/fop/trunk/src/sandbox/org/apache/fop/render/mif/PGFElement.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/sandbox/org/apache/fop/render/mif/PGFElement.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/sandbox/org/apache/fop/render/mif/PGFElement.java (original)
+++ xmlgraphics/fop/trunk/src/sandbox/org/apache/fop/render/mif/PGFElement.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -16,7 +16,7 @@
  */
 
 /* $Id$ */
- 
+
 package org.apache.fop.render.mif;
 
 /**

Modified: xmlgraphics/fop/trunk/src/sandbox/org/apache/fop/render/mif/RefElement.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/sandbox/org/apache/fop/render/mif/RefElement.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/sandbox/org/apache/fop/render/mif/RefElement.java (original)
+++ xmlgraphics/fop/trunk/src/sandbox/org/apache/fop/render/mif/RefElement.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -16,7 +16,7 @@
  */
 
 /* $Id$ */
- 
+
 package org.apache.fop.render.mif;
 
 /**

Modified: xmlgraphics/fop/trunk/src/sandbox/org/apache/fop/render/mif/RulingElement.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/sandbox/org/apache/fop/render/mif/RulingElement.java?rev=679326&r1=679325&r2=679326&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/sandbox/org/apache/fop/render/mif/RulingElement.java (original)
+++ xmlgraphics/fop/trunk/src/sandbox/org/apache/fop/render/mif/RulingElement.java Thu Jul 24 02:35:34 2008
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -16,7 +16,7 @@
  */
 
 /* $Id$ */
- 
+
 package org.apache.fop.render.mif;
 
 public class RulingElement extends RefElement {



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