xmlgraphics-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vhenneb...@apache.org
Subject svn commit: r750418 [5/7] - in /xmlgraphics/commons/trunk: examples/java/image/loader/ examples/java/image/writer/ examples/java/java2d/ps/ examples/java/ps/ examples/java/xmp/ src/java/org/apache/xmlgraphics/image/ src/java/org/apache/xmlgraphics/imag...
Date Thu, 05 Mar 2009 11:04:00 GMT
Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/DSCFilter.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/DSCFilter.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/DSCFilter.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/DSCFilter.java Thu Mar  5 11:03:54 2009
@@ -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,5 +32,5 @@
      * @return true if the event should be accepted
      */
     boolean accept(DSCEvent event);
-    
+
 }

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/DSCHandler.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/DSCHandler.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/DSCHandler.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/DSCHandler.java Thu Mar  5 11:03:54 2009
@@ -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.xmlgraphics.ps.dsc;
 
 import java.io.IOException;
@@ -35,7 +35,7 @@
      * @throws IOException In case of an I/O error
      */
     public void startDocument(String header) throws IOException;
-    
+
     /**
      * Called when the PostScript file is fully processed, i.e. after the %%EOF comment.
      * @throws IOException In case of an I/O error
@@ -64,5 +64,5 @@
      * @throws IOException In case of an I/O error
      */
     public void comment(String comment) throws IOException;
-    
+
 }

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/DSCParserConstants.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/DSCParserConstants.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/DSCParserConstants.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/DSCParserConstants.java Thu Mar  5 11:03:54 2009
@@ -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.
@@ -34,5 +34,5 @@
     int LINE = 3;
     /** Indicates the end of the file (equivalent to the "%%EOF" DSC comment) */
     int EOF = 4;
-    
+
 }

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/DefaultDSCHandler.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/DefaultDSCHandler.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/DefaultDSCHandler.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/DefaultDSCHandler.java Thu Mar  5 11:03:54 2009
@@ -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.xmlgraphics.ps.dsc;
 
 import java.io.IOException;
@@ -35,7 +35,7 @@
 
     protected OutputStream out;
     protected PSGenerator gen;
-    
+
     /**
      * Creates a new instance.
      * @param out OutputStream to pipe all received events to
@@ -44,7 +44,7 @@
         this.out = out;
         this.gen = new PSGenerator(this.out);
     }
-    
+
     /** @see org.apache.xmlgraphics.ps.dsc.DSCHandler#startDocument(java.lang.String) */
     public void startDocument(String header) throws IOException {
         gen.writeln(header);
@@ -61,7 +61,7 @@
      */
     public void handleDSCComment(DSCComment comment) throws IOException {
         comment.generate(gen);
-        
+
     }
 
     /** @see org.apache.xmlgraphics.ps.dsc.DSCHandler#line(java.lang.String) */

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/EventRecorder.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/EventRecorder.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/EventRecorder.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/EventRecorder.java Thu Mar  5 11:03:54 2009
@@ -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.xmlgraphics.ps.dsc;
 
 import java.io.IOException;
@@ -31,7 +31,7 @@
 public class EventRecorder implements DSCHandler {
 
     private List events = new java.util.ArrayList();
-    
+
     /**
      * Replays the recorded events to a specified DSCHandler instance.
      * @param handler the DSCHandler to send the recorded events to
@@ -44,7 +44,7 @@
             if (obj instanceof PSLine) {
                 handler.line(((PSLine)obj).getLine());
             } else if (obj instanceof PSComment) {
-                handler.comment(((PSComment)obj).getComment()); 
+                handler.comment(((PSComment)obj).getComment());
             } else if (obj instanceof DSCComment) {
                 handler.handleDSCComment((DSCComment)obj);
             } else {
@@ -52,7 +52,7 @@
             }
         }
     }
-    
+
     /**
      * @see org.apache.xmlgraphics.ps.dsc.DSCHandler#comment(java.lang.String)
      */
@@ -92,29 +92,29 @@
     }
 
     private static class PSComment {
-        
+
         private String comment;
-        
+
         public PSComment(String comment) {
             this.comment = comment;
         }
-        
+
         public String getComment() {
             return this.comment;
         }
     }
-    
+
     private static class PSLine {
-        
+
         private String line;
-        
+
         public PSLine(String line) {
             this.line = line;
         }
-        
+
         public String getLine() {
             return this.line;
         }
     }
-    
+
 }

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/AbstractDSCComment.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/AbstractDSCComment.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/AbstractDSCComment.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/AbstractDSCComment.java Thu Mar  5 11:03:54 2009
@@ -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 @@
     private final boolean isWhitespace(char c) {
         return c == ' ' || c == '\t';
     }
-    
+
     private int parseNextParam(String value, int pos, List lst) {
         int startPos = pos;
         pos++;
@@ -40,7 +40,7 @@
         lst.add(param);
         return pos;
     }
-    
+
     private int parseNextParentheseString(String value, int pos, List lst) {
         int nestLevel = 1;
         pos++;
@@ -103,7 +103,7 @@
         pos++;
         return pos;
     }
-    
+
     /**
      * Splits the params of the DSC comment value in to a List.
      * @param value the DSC comment value
@@ -126,14 +126,14 @@
         }
         return lst;
     }
-    
+
     /**
      * @see org.apache.xmlgraphics.ps.dsc.events.DSCComment#isAtend()
      */
     public boolean isAtend() {
         return false;
     }
-    
+
     /**
      * @see org.apache.xmlgraphics.ps.dsc.events.AbstractEvent#asDSCComment()
      */

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/AbstractEvent.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/AbstractEvent.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/AbstractEvent.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/AbstractEvent.java Thu Mar  5 11:03:54 2009
@@ -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.

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCAtend.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCAtend.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCAtend.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCAtend.java Thu Mar  5 11:03:54 2009
@@ -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 @@
 public class DSCAtend extends AbstractDSCComment {
 
     private String name;
-    
+
     /**
      * Creates a new instance
      * @param name the name of the DSC comment (without the "%%" prefix)
@@ -67,7 +67,7 @@
     public void parseValue(String value) {
         //nop
     }
-    
+
     /**
      * @see org.apache.xmlgraphics.ps.dsc.events.DSCEvent#generate(
      *              org.apache.xmlgraphics.ps.PSGenerator)

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCComment.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCComment.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCComment.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCComment.java Thu Mar  5 11:03:54 2009
@@ -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.
@@ -33,19 +33,19 @@
      * @return the name of the DSC comment (without the "%%" prefix)
      */
     String getName();
-    
+
     /**
      * Parses the value of the DSC comment.
      * @param value the value
      */
     void parseValue(String value);
-    
+
     /**
      * Indicates whether this DSC comment has values.
      * @return true if the DSC comment has values
      */
     boolean hasValues();
-    
+
     /**
      * Indicates whether the DSC comment's value is "Atend".
      * @return true if the value is "Atend"
@@ -57,5 +57,5 @@
      *      org.apache.xmlgraphics.ps.PSGenerator)
      */
     void generate(PSGenerator gen) throws IOException;
-    
+
 }

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentBoundingBox.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentBoundingBox.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentBoundingBox.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentBoundingBox.java Thu Mar  5 11:03:54 2009
@@ -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.
@@ -33,7 +33,7 @@
 public class DSCCommentBoundingBox extends AbstractDSCComment {
 
     private Rectangle2D bbox;
-    
+
     /**
      * Creates a new instance.
      */
@@ -47,7 +47,7 @@
     public DSCCommentBoundingBox(Rectangle2D bbox) {
         setBoundingBox(bbox);
     }
-    
+
     /**
      * Returns the bounding box.
      * @return the bounding box
@@ -55,7 +55,7 @@
     public Rectangle2D getBoundingBox() {
         return this.bbox;
     }
-    
+
     /**
      * Sets the bounding box.
      * @param bbox the bounding box
@@ -85,7 +85,7 @@
         double y2 = Double.parseDouble((String)iter.next());
         this.bbox = new Rectangle2D.Double(x1, y1, x2 - x1, y2 - y1);
     }
-    
+
     /** {@inheritDoc} */
     public void generate(PSGenerator gen) throws IOException {
         if (getBoundingBox() != null) {

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentDocumentNeededResources.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentDocumentNeededResources.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentDocumentNeededResources.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentDocumentNeededResources.java Thu Mar  5 11:03:54 2009
@@ -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.
@@ -34,7 +34,7 @@
     public DSCCommentDocumentNeededResources() {
         super();
     }
-    
+
     /**
      * Creates a new instance.
      * @param resources a Collection of PSResource instances
@@ -42,7 +42,7 @@
     public DSCCommentDocumentNeededResources(Collection resources) {
         super(resources);
     }
-    
+
     /**
      * @see org.apache.xmlgraphics.ps.dsc.events.DSCComment#getName()
      */

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentDocumentSuppliedResources.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentDocumentSuppliedResources.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentDocumentSuppliedResources.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentDocumentSuppliedResources.java Thu Mar  5 11:03:54 2009
@@ -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.
@@ -34,7 +34,7 @@
     public DSCCommentDocumentSuppliedResources() {
         super();
     }
-    
+
     /**
      * Creates a new instance.
      * @param resources a Collection of PSResource instances
@@ -42,7 +42,7 @@
     public DSCCommentDocumentSuppliedResources(Collection resources) {
         super(resources);
     }
-    
+
     /**
      * @see org.apache.xmlgraphics.ps.dsc.events.DSCComment#getName()
      */

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentEndComments.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentEndComments.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentEndComments.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentEndComments.java Thu Mar  5 11:03:54 2009
@@ -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.

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentEndOfFile.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentEndOfFile.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentEndOfFile.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentEndOfFile.java Thu Mar  5 11:03:54 2009
@@ -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.
@@ -63,5 +63,5 @@
     public int getEventType() {
         return EOF;
     }
-    
+
 }

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentHiResBoundingBox.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentHiResBoundingBox.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentHiResBoundingBox.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentHiResBoundingBox.java Thu Mar  5 11:03:54 2009
@@ -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 @@
     public DSCCommentHiResBoundingBox(Rectangle2D bbox) {
         super(bbox);
     }
-    
+
     /** {@inheritDoc} */
     public String getName() {
         return DSCConstants.HIRES_BBOX;

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentLanguageLevel.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentLanguageLevel.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentLanguageLevel.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentLanguageLevel.java Thu Mar  5 11:03:54 2009
@@ -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,7 +30,7 @@
 public class DSCCommentLanguageLevel extends AbstractDSCComment {
 
     private int level;
-    
+
     /**
      * Creates a new instance.
      */
@@ -44,7 +44,7 @@
     public DSCCommentLanguageLevel(int level) {
         this.level = level;
     }
-    
+
     /**
      * Returns the PostScript language level (usually 2 or 3).
      * @return the language level
@@ -52,7 +52,7 @@
     public int getLanguageLevel() {
         return this.level;
     }
-    
+
     /**
      * @see org.apache.xmlgraphics.ps.dsc.events.DSCComment#getName()
      */
@@ -73,7 +73,7 @@
     public void parseValue(String value) {
         this.level = Integer.parseInt(value);
     }
-    
+
     /**
      * @see org.apache.xmlgraphics.ps.dsc.events.DSCEvent#generate(org.apache.xmlgraphics.ps.PSGenerator)
      */

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentPage.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentPage.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentPage.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentPage.java Thu Mar  5 11:03:54 2009
@@ -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.
@@ -33,7 +33,7 @@
 
     private String pageName;
     private int pagePosition = -1;
-    
+
     /**
      * Creates a new instance.
      */
@@ -49,7 +49,7 @@
         setPageName(pageName);
         setPagePosition(pagePosition);
     }
-    
+
     /**
      * Creates a new instance. The page name will be set to the same value as the page position.
      * @param pagePosition the position of the page within the file (1-based)
@@ -65,7 +65,7 @@
     public String getPageName() {
         return this.pageName;
     }
-    
+
     /**
      * Sets the page name.
      * @param name the page name
@@ -81,7 +81,7 @@
     public int getPagePosition() {
         return this.pagePosition;
     }
-    
+
     /**
      * Sets the page position.
      * @param position the page position (1-based)
@@ -116,13 +116,13 @@
         this.pageName = (String)iter.next();
         this.pagePosition = Integer.parseInt((String)iter.next());
     }
-    
+
     /**
      * @see org.apache.xmlgraphics.ps.dsc.events.DSCEvent#generate(
      *          org.apache.xmlgraphics.ps.PSGenerator)
      */
     public void generate(PSGenerator gen) throws IOException {
-        gen.writeDSCComment(getName(), 
+        gen.writeDSCComment(getName(),
                 new Object[] {getPageName(), new Integer(getPagePosition())});
     }
 

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentPageBoundingBox.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentPageBoundingBox.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentPageBoundingBox.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentPageBoundingBox.java Thu Mar  5 11:03:54 2009
@@ -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.
@@ -42,7 +42,7 @@
     public DSCCommentPageBoundingBox(Rectangle2D bbox) {
         super(bbox);
     }
-    
+
     /** {@inheritDoc} */
     public String getName() {
         return DSCConstants.PAGE_BBOX;

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentPageHiResBoundingBox.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentPageHiResBoundingBox.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentPageHiResBoundingBox.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentPageHiResBoundingBox.java Thu Mar  5 11:03:54 2009
@@ -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.
@@ -42,7 +42,7 @@
     public DSCCommentPageHiResBoundingBox(Rectangle2D bbox) {
         super(bbox);
     }
-    
+
     /** {@inheritDoc} */
     public String getName() {
         return DSCConstants.PAGE_HIRES_BBOX;

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentPageResources.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentPageResources.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentPageResources.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentPageResources.java Thu Mar  5 11:03:54 2009
@@ -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.
@@ -34,7 +34,7 @@
     public DSCCommentPageResources() {
         super();
     }
-    
+
     /**
      * Creates a new instance.
      * @param resources a Collection of PSResource instances
@@ -42,7 +42,7 @@
     public DSCCommentPageResources(Collection resources) {
         super(resources);
     }
-    
+
     /**
      * @see org.apache.xmlgraphics.ps.dsc.events.DSCComment#getName()
      */

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentPages.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentPages.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentPages.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCCommentPages.java Thu Mar  5 11:03:54 2009
@@ -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,7 +30,7 @@
 public class DSCCommentPages extends AbstractDSCComment {
 
     private int pageCount = -1;
-    
+
     /**
      * Creates a new instance.
      */
@@ -44,7 +44,7 @@
     public DSCCommentPages(int pageCount) {
         this.pageCount = pageCount;
     }
-    
+
     /**
      * Returns the page count.
      * @return the page count
@@ -52,7 +52,7 @@
     public int getPageCount() {
         return this.pageCount;
     }
-    
+
     /**
      * Sets the page count.
      * @param count the new page count
@@ -81,7 +81,7 @@
     public void parseValue(String value) {
         this.pageCount = Integer.parseInt(value);
     }
-    
+
     /**
      * @see org.apache.xmlgraphics.ps.dsc.events.DSCEvent#generate(org.apache.xmlgraphics.ps.PSGenerator)
      */

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCEvent.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCEvent.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCEvent.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCEvent.java Thu Mar  5 11:03:54 2009
@@ -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.
@@ -42,43 +42,43 @@
      * @throws ClassCastException if the event is no DSCComment
      */
     DSCComment asDSCComment();
-    
+
     /**
      * Casts this instance to a PostScriptLine if possible.
      * @return this event as a PostScriptLine
      * @throws ClassCastException if the event is no PostScriptLine
      */
     PostScriptLine asLine();
-    
+
     /**
      * Indicates whether the instance is a DSC comment.
      * @return true if the instance is a DSC comment
      */
     boolean isDSCComment();
-    
+
     /**
      * Indicates whether the instance is a PostScript comment.
      * @return true if the instance is a PostScript comment
      */
     boolean isComment();
-    
+
     /**
      * Indicates whether the instance is a header comment.
      * @return true if the instance is a header comment
      */
     boolean isHeaderComment();
-    
+
     /**
      * Indicates whether the instance is a PostScript line.
      * @return true if the instance is a PostScript line
      */
     boolean isLine();
-    
+
     /**
      * Writes the event to the given PSGenerator.
      * @param gen the PSGenerator to write to
      * @throws IOException In case of an I/O error
      */
     void generate(PSGenerator gen) throws IOException;
-    
+
 }

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCHeaderComment.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCHeaderComment.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCHeaderComment.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/DSCHeaderComment.java Thu Mar  5 11:03:54 2009
@@ -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,7 +30,7 @@
 public class DSCHeaderComment extends AbstractEvent {
 
     private String comment;
-    
+
     /**
      * Creates a new instance.
      * @param comment the comment
@@ -38,7 +38,7 @@
     public DSCHeaderComment(String comment) {
         this.comment = comment;
     }
-    
+
     /**
      * Returns the comment.
      * @return the comment
@@ -46,7 +46,7 @@
     public String getComment() {
         return this.comment;
     }
-    
+
     /**
      * Indicates whether the file started by this comments is DSC 3.0 compliant.
      * @return true if the file is DSC 3.0 compliant.
@@ -54,7 +54,7 @@
     public boolean isPSAdobe30() {
         return getComment().startsWith(DSCConstants.PS_ADOBE_30.substring(2));
     }
-    
+
     /**
      * @see org.apache.xmlgraphics.ps.dsc.events.DSCEvent#generate(
      *              org.apache.xmlgraphics.ps.PSGenerator)

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/PostScriptComment.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/PostScriptComment.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/PostScriptComment.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/PostScriptComment.java Thu Mar  5 11:03:54 2009
@@ -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 @@
 public class PostScriptComment extends AbstractEvent {
 
     private String comment;
-    
+
     /**
      * Creates a new instance.
      * @param comment the comment
@@ -41,7 +41,7 @@
             this.comment = comment;
         }
     }
-    
+
     /**
      * Returns the comment text.
      * @return the comment (without the "%" prefix)
@@ -49,7 +49,7 @@
     public String getComment() {
         return this.comment;
     }
-    
+
     /**
      * @see org.apache.xmlgraphics.ps.dsc.events.DSCEvent#generate(org.apache.xmlgraphics.ps.PSGenerator)
      */

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/PostScriptLine.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/PostScriptLine.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/PostScriptLine.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/PostScriptLine.java Thu Mar  5 11:03:54 2009
@@ -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 @@
 public class PostScriptLine extends AbstractEvent {
 
     private String line;
-    
+
     /**
      * Creates a new instance.
      * @param line the code line
@@ -37,7 +37,7 @@
     public PostScriptLine(String line) {
         this.line = line;
     }
-    
+
     /**
      * Returns the code line.
      * @return the code line
@@ -45,7 +45,7 @@
     public String getLine() {
         return this.line;
     }
-    
+
     /**
      * @see org.apache.xmlgraphics.ps.dsc.events.DSCEvent#generate(org.apache.xmlgraphics.ps.PSGenerator)
      */
@@ -66,7 +66,7 @@
     public PostScriptLine asLine() {
         return this;
     }
-    
+
     /**
      * @see org.apache.xmlgraphics.ps.dsc.events.AbstractEvent#isLine()
      */

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/UnparsedDSCComment.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/UnparsedDSCComment.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/UnparsedDSCComment.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/events/UnparsedDSCComment.java Thu Mar  5 11:03:54 2009
@@ -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,7 +32,7 @@
 
     private String name;
     private String value;
-    
+
     /**
      * Creates a new instance.
      * @param name the name of the DSC comment
@@ -40,7 +40,7 @@
     public UnparsedDSCComment(String name) {
         this.name = name;
     }
-    
+
     /**
      * @see org.apache.xmlgraphics.ps.dsc.events.DSCComment#getName()
      */

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/tools/DSCTools.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/tools/DSCTools.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/tools/DSCTools.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/ps/dsc/tools/DSCTools.java Thu Mar  5 11:03:54 2009
@@ -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.
@@ -77,16 +77,16 @@
         if (event.getEventType() == HEADER_COMMENT) {
             DSCHeaderComment header = (DSCHeaderComment)event;
             if (!header.isPSAdobe30()) {
-                throw new DSCException("PostScript file does not start with '" 
+                throw new DSCException("PostScript file does not start with '"
                         + DSCConstants.PS_ADOBE_30 + "'");
             }
             return header;
         } else {
-            throw new DSCException("PostScript file does not start with '" 
+            throw new DSCException("PostScript file does not start with '"
                     + DSCConstants.PS_ADOBE_30 + "'");
         }
     }
-    
+
     /**
      * Advances the parser to the next page or to the trailer or the end of file comment.
      * @param parser the DSC parser

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/ClasspathResource.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/ClasspathResource.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/ClasspathResource.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/ClasspathResource.java Thu Mar  5 11:03:54 2009
@@ -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.
@@ -43,7 +43,7 @@
  * them to the classpath.
  * <p>
  * Example:<br>
- * 
+ *
  * <pre>
  * Name: test.txt
  * Content-Type: text/plain
@@ -69,7 +69,7 @@
 
     /**
      * Retrieve the singleton instance of this class.
-     * 
+     *
      * @return the ClassPathResource instance.
      */
     public static synchronized ClasspathResource getInstance() {
@@ -164,7 +164,7 @@
 
     /**
      * Retrieve a list of resources known to have the given mime-type.
-     * 
+     *
      * @param mimeType
      *            the mime-type to search for.
      * @return a List&lt;URL&gt;, guaranteed to be != null.

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/ImageIODebugUtil.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/ImageIODebugUtil.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/ImageIODebugUtil.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/ImageIODebugUtil.java Thu Mar  5 11:03:54 2009
@@ -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.
@@ -48,7 +48,7 @@
         Node node = meta.getAsTree(format);
         dumpNode(node);
     }
-    
+
     public static void dumpNode(Node node) {
         try {
             TransformerFactory tf = TransformerFactory.newInstance();

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/QName.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/QName.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/QName.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/QName.java Thu Mar  5 11:03:54 2009
@@ -24,18 +24,18 @@
 /**
  * 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.
  */
 public class QName implements Serializable {
 
     private static final long serialVersionUID = -5225376740044770690L;
-    
+
     private String namespaceURI;
     private String localName;
     private String prefix;
     private int hashCode;
-    
+
     /**
      * Main constructor.
      * @param namespaceURI the namespace URI
@@ -54,7 +54,7 @@
         this.localName = localName;
         this.hashCode = toHashString().hashCode();
     }
-    
+
     /**
      * Main constructor.
      * @param namespaceURI the namespace URI
@@ -78,22 +78,22 @@
         }
         this.hashCode = toHashString().hashCode();
     }
-    
+
     /** @return the namespace URI */
     public String getNamespaceURI() {
         return this.namespaceURI;
     }
-    
+
     /** @return the namespace prefix */
     public String getPrefix() {
         return this.prefix;
     }
-    
+
     /** @return the local name */
     public String getLocalName() {
         return this.localName;
     }
-    
+
     /** @return the fully qualified name */
     public String getQName() {
         return getPrefix() != null ? getPrefix() + ':' + getLocalName() : getLocalName();
@@ -130,8 +130,8 @@
     }
 
     private String toHashString() {
-        return (namespaceURI != null 
-                ? ("{" + namespaceURI + "}" + localName) 
+        return (namespaceURI != null
+                ? ("{" + namespaceURI + "}" + localName)
                 : localName);
     }
 

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/Service.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/Service.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/Service.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/Service.java Thu Mar  5 11:03:54 2009
@@ -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.
@@ -62,7 +62,7 @@
     public static synchronized Iterator providers(Class cls) {
         return providers(cls, true);
     }
-    
+
     /**
      * Returns an iterator where each element should implement the
      * interface (or subclass the baseclass) described by cls.  The
@@ -133,7 +133,7 @@
                         }
 
                         if (returnInstances) {
-                            // Try and load the class 
+                            // Try and load the class
                             Object obj = cl.loadClass(line).newInstance();
                             // stick it into our vector...
                             l.add(obj);
@@ -153,5 +153,5 @@
         }
         return l.iterator();
     }
-    
+
 }

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/XMLizable.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/XMLizable.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/XMLizable.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/XMLizable.java Thu Mar  5 11:03:54 2009
@@ -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.
@@ -19,7 +19,7 @@
 
 package org.apache.xmlgraphics.util;
 
-/* 
+/*
  * Copied from Apache Excalibur:
  * https://svn.apache.org/repos/asf/excalibur/trunk/components/xmlutil/
  *                                           src/java/org/apache/excalibur/xml/sax/XMLizable.java
@@ -33,12 +33,12 @@
  * of their current state as SAX events.
  */
 public interface XMLizable {
-    
+
     /**
      * Generates SAX events representing the object's state.
      * @param handler ContentHandler instance to send the SAX events to
      * @throws SAXException if there's a problem generating the SAX events
      */
     void toSAX(ContentHandler handler) throws SAXException;
-    
+
 }

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/dijkstra/DefaultEdgeDirectory.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/dijkstra/DefaultEdgeDirectory.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/dijkstra/DefaultEdgeDirectory.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/dijkstra/DefaultEdgeDirectory.java Thu Mar  5 11:03:54 2009
@@ -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 @@
     /** The directory of edges */
     private Map edges = new java.util.HashMap();
     //Map<Vertex,Map<Vertex,Edge>>
-    
+
     /**
      * Adds a new edge between two vertices.
      * @param edge the new edge
@@ -105,5 +105,5 @@
         return best;
     }
 
-    
+
 }

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/dijkstra/DijkstraAlgorithm.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/dijkstra/DijkstraAlgorithm.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/dijkstra/DijkstraAlgorithm.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/dijkstra/DijkstraAlgorithm.java Thu Mar  5 11:03:54 2009
@@ -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.
@@ -28,11 +28,11 @@
 /**
  * This is an implementation of Dijkstra's algorithm to find the shortest path for a directed
  * graph with non-negative edge weights.
- * @see <a href="http://en.wikipedia.org/wiki/Dijkstra%27s_algorithm">WikiPedia on Dijkstra's 
+ * @see <a href="http://en.wikipedia.org/wiki/Dijkstra%27s_algorithm">WikiPedia on Dijkstra's
  *      Algorithm</a>
  */
 public class DijkstraAlgorithm {
-    
+
     /** Infinity value for distances. */
     public static final int INFINITE = Integer.MAX_VALUE;
 
@@ -117,7 +117,7 @@
         if (start == null || destination == null) {
             throw new NullPointerException("start and destination may not be null");
         }
-        
+
         reset();
         setShortestDistance(start, 0);
         priorityQueue.add(start);
@@ -129,7 +129,7 @@
         while (priorityQueue.size() > 0) {
             u = (Vertex)priorityQueue.first();
             priorityQueue.remove(u);
-            
+
             if (destination.equals(u)) {
                 //Destination reached
                 break;

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/dijkstra/Edge.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/dijkstra/Edge.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/dijkstra/Edge.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/dijkstra/Edge.java Thu Mar  5 11:03:54 2009
@@ -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.
@@ -37,11 +37,11 @@
      * @return the end vertex
      */
     Vertex getEnd();
-    
+
     /**
      * Returns the penalty (or distance) for this edge.
      * @return the penalty value (must be non-negative)
      */
     int getPenalty();
-    
+
 }

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/dijkstra/EdgeDirectory.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/dijkstra/EdgeDirectory.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/dijkstra/EdgeDirectory.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/dijkstra/EdgeDirectory.java Thu Mar  5 11:03:54 2009
@@ -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.

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/dijkstra/Vertex.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/dijkstra/Vertex.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/dijkstra/Vertex.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/dijkstra/Vertex.java Thu Mar  5 11:03:54 2009
@@ -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.
@@ -25,7 +25,7 @@
  * sure the Vertex implementation implements the Comparable interface so the sorting order is
  * well-defined even when two vertices have the same penalty/distance from an origin point.
  * Therefore, make sure you implement the <code>compareTo(Object)</code> and
- * <code>equals(Object)</code> methods. 
+ * <code>equals(Object)</code> methods.
  */
 public interface Vertex extends Comparable {
 

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/i18n/ExtendedLocalizable.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/i18n/ExtendedLocalizable.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/i18n/ExtendedLocalizable.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/i18n/ExtendedLocalizable.java Thu Mar  5 11:03:54 2009
@@ -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.
@@ -42,7 +42,7 @@
 
     /**
      * Sets the default locale for all the instances of this class in
-     * the same LocaleGroup. 
+     * the same LocaleGroup.
      */
     void setDefaultLocale(Locale l);
 

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/i18n/LocaleGroup.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/i18n/LocaleGroup.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/i18n/LocaleGroup.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/i18n/LocaleGroup.java Thu Mar  5 11:03:54 2009
@@ -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.

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/i18n/Localizable.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/i18n/Localizable.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/i18n/Localizable.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/i18n/Localizable.java Thu Mar  5 11:03:54 2009
@@ -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 @@
 
 /**
  * This interface must be implemented by the classes which must provide a
- * way to override the default locale. 
+ * way to override the default locale.
  *
  * @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
  * @version $Id$
@@ -33,14 +33,14 @@
     /**
      * Provides a way to the user to specify a locale which override the
      * default one. If null is passed to this method, the used locale
-     * becomes the global one. 
+     * becomes the global one.
      * @param l The locale to set.
      */
     void setLocale(Locale l);
 
     /**
      * Returns the current locale or null if the locale currently used is
-     * the default one.     
+     * the default one.
      */
     Locale getLocale();
 

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/i18n/LocalizableSupport.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/i18n/LocalizableSupport.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/i18n/LocalizableSupport.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/i18n/LocalizableSupport.java Thu Mar  5 11:03:54 2009
@@ -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.

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/ASCII85Constants.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/ASCII85Constants.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/ASCII85Constants.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/ASCII85Constants.java Thu Mar  5 11:03:54 2009
@@ -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.xmlgraphics.util.io;
 
 /**
@@ -40,7 +40,7 @@
     public static final byte[] EOD        = {0x7E, 0x3E}; //"~>"
 
     /** Array of powers of 85 (4, 3, 2, 1, 0) */
-    public static final long POW85[] = new long[] {85 * 85 * 85 * 85, 
+    public static final long POW85[] = new long[] {85 * 85 * 85 * 85,
                                                     85 * 85 * 85,
                                                     85 * 85,
                                                     85,

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/ASCII85InputStream.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/ASCII85InputStream.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/ASCII85InputStream.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/ASCII85InputStream.java Thu Mar  5 11:03:54 2009
@@ -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.xmlgraphics.util.io;
 
 import java.io.InputStream;
@@ -29,7 +29,7 @@
  * we can use the read(byte[], int, int) method from InputStream which simply
  * delegates to read(). This makes the implementation easier.
  * <p>
- * The filter is described in chapter 3.13.3 of the PostScript Language 
+ * The filter is described in chapter 3.13.3 of the PostScript Language
  * Reference (third edition).
  *
  * @version $Id$
@@ -41,7 +41,7 @@
     private boolean eodReached = false;
     private int[] b = new int[4]; //decoded
     private int bSize = 0;
-    private int bIndex = 0; 
+    private int bIndex = 0;
 
     /** @see java.io.FilterInputStream **/
     public ASCII85InputStream(InputStream in) {
@@ -55,7 +55,7 @@
         if (bIndex >= bSize) {
             if (eodReached) {
                 return -1;
-            } 
+            }
             readNextTuple();
             if (bSize == 0) {
                 if (!eodReached) {
@@ -69,7 +69,7 @@
         bIndex++;
         return result;
     }
-    
+
     private int filteredRead() throws IOException {
         int buf;
         while (true) {
@@ -94,7 +94,7 @@
             }
         }
     }
-    
+
     private void handleEOD() throws IOException {
         final int buf = in.read();
         if (buf != EOD[1]) {
@@ -104,7 +104,7 @@
         bSize = 0;
         bIndex = 0;
     }
-    
+
     private void readNextTuple() throws IOException {
         int buf;
         long tuple = 0;
@@ -138,7 +138,7 @@
                 //Violation 3
                 throw new IOException("Only one character in tuple");
             }
-            //Handle optional, trailing, incomplete tuple 
+            //Handle optional, trailing, incomplete tuple
             while (cIndex < 5) {
                 tuple += POW85[cIndex - 1];
                 cIndex++;

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/ASCII85OutputStream.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/ASCII85OutputStream.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/ASCII85OutputStream.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/ASCII85OutputStream.java Thu Mar  5 11:03:54 2009
@@ -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.

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/ASCIIHexOutputStream.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/ASCIIHexOutputStream.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/ASCIIHexOutputStream.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/ASCIIHexOutputStream.java Thu Mar  5 11:03:54 2009
@@ -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.

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/Base64DecodeStream.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/Base64DecodeStream.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/Base64DecodeStream.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/Base64DecodeStream.java Thu Mar  5 11:03:54 2009
@@ -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.

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/Base64EncodeStream.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/Base64EncodeStream.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/Base64EncodeStream.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/Base64EncodeStream.java Thu Mar  5 11:03:54 2009
@@ -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.
@@ -72,7 +72,7 @@
     public void close () throws IOException {
         if (out != null) {
             encodeAtom();
-            out.flush();        
+            out.flush();
             if (closeOutOnClose)
                 out.close();
             out=null;
@@ -82,7 +82,7 @@
     /**
      * This can't really flush out output since that may generate
      * '=' chars which would indicate the end of the stream.
-     * Instead we flush out.  You can only be sure all output is 
+     * Instead we flush out.  You can only be sure all output is
      * writen by closing this stream.
      */
     public void flush() throws IOException {
@@ -153,14 +153,14 @@
      * than three is encodes either one or two '=' signs to indicate
      * padding characters.
      */
-    void encodeFromArray(byte[] data, int offset, int len) 
+    void encodeFromArray(byte[] data, int offset, int len)
         throws IOException{
         byte a, b, c;
         if (len == 0)
             return;
 
-        // System.out.println("atomLen: " + atomLen + 
-        //                    " len: " + len + 
+        // System.out.println("atomLen: " + atomLen +
+        //                    " len: " + len +
         //                    " offset:  " + offset);
 
         if (atomLen != 0) {
@@ -182,7 +182,7 @@
             a = data[offset++];
             b = data[offset++];
             c = data[offset++];
-            
+
             encodeBuf[0] = pem_array[((a >>> 2) & 0x3F)];
             encodeBuf[1] = pem_array[(((a << 4) & 0x30) | ((b >>> 4) & 0x0F))];
             encodeBuf[2] = pem_array[(((b << 2) & 0x3C) | ((c >>> 6) & 0x03))];
@@ -211,6 +211,6 @@
         atomLen = len;
     }
 
-    
-    
+
+
 }

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/Finalizable.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/Finalizable.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/Finalizable.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/Finalizable.java Thu Mar  5 11:03:54 2009
@@ -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.xmlgraphics.util.io;
 
 /**

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/FlateEncodeOutputStream.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/FlateEncodeOutputStream.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/FlateEncodeOutputStream.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/FlateEncodeOutputStream.java Thu Mar  5 11:03:54 2009
@@ -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.

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/RunLengthEncodeOutputStream.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/RunLengthEncodeOutputStream.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/RunLengthEncodeOutputStream.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/RunLengthEncodeOutputStream.java Thu Mar  5 11:03:54 2009
@@ -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.

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/SubInputStream.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/SubInputStream.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/SubInputStream.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/io/SubInputStream.java Thu Mar  5 11:03:54 2009
@@ -35,13 +35,13 @@
 
     /** Indicates the number of bytes remaining to be read from the underlying InputStream. */
     private long bytesToRead;
-    
+
     /**
      * Indicates whether the underlying stream should be closed when the {@link #close()} method
      * is called.
-     */ 
+     */
     private boolean closeUnderlying = false;
-    
+
     /**
      * Creates a new SubInputStream.
      * @param in the InputStream to read from
@@ -80,7 +80,7 @@
             return -1;
         }
     }
-    
+
     /** {@inheritDoc} */
     public int read(byte[] b, int off, int len) throws IOException {
         if (bytesToRead == 0) {
@@ -88,14 +88,14 @@
         }
         int effRead = (int)Math.min(bytesToRead, len);
         //cast to int is safe because len can never be bigger than Integer.MAX_VALUE
-        
+
         int result = super.read(b, off, effRead);
         if (result >= 0) {
             bytesToRead -= result;
         }
         return result;
     }
-    
+
     /** {@inheritDoc} */
     public long skip(long n) throws IOException {
         long effRead = Math.min(bytesToRead, n);

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/uri/CommonURIResolver.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/uri/CommonURIResolver.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/uri/CommonURIResolver.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/uri/CommonURIResolver.java Thu Mar  5 11:03:54 2009
@@ -35,7 +35,7 @@
  * <p>
  * This resolver will try all resolvers registered as an {@link URIResolver}
  * class. For proper operation, the registers URIResolvers must return null if
- * they cannot handle the given URI and fail fast. 
+ * they cannot handle the given URI and fail fast.
  */
 public class CommonURIResolver implements URIResolver {
 
@@ -60,7 +60,7 @@
 
     /**
      * Retrieve the default resolver instance.
-     * 
+     *
      * @return the default resolver instance.
      */
     public static CommonURIResolver getDefaultURIResolver() {
@@ -88,7 +88,7 @@
 
     /**
      * Register a given {@link URIResolver} while the software is running.
-     * 
+     *
      * @param uriResolver
      *            the resolver to register.
      */
@@ -100,7 +100,7 @@
 
     /**
      * Unregister a given {@link URIResolver} while the software is running.
-     * 
+     *
      * @param uriResolver
      *            the resolver to unregister.
      */

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/uri/DataURIResolver.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/uri/DataURIResolver.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/uri/DataURIResolver.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/uri/DataURIResolver.java Thu Mar  5 11:03:54 2009
@@ -43,7 +43,7 @@
     /** logger */
     private static Log LOG = LogFactory.getLog(URIResolver.class);
 
-    
+
     /**
      * {@inheritDoc}
      */

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/xmp/Metadata.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/xmp/Metadata.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/xmp/Metadata.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/xmp/Metadata.java Thu Mar  5 11:03:54 2009
@@ -44,33 +44,33 @@
     public void setProperty(XMPProperty prop) {
         properties.put(prop.getName(), prop);
     }
-    
+
     /** {@inheritDoc} */
     public XMPProperty getProperty(String uri, String localName) {
         return getProperty(new QName(uri, localName));
     }
-    
+
     /** {@inheritDoc} */
     public XMPProperty getProperty(QName name) {
         XMPProperty prop = (XMPProperty)properties.get(name);
         return prop;
     }
-    
+
     /** {@inheritDoc} */
     public XMPProperty getValueProperty() {
         return getProperty(XMPConstants.RDF_VALUE);
     }
-    
+
     /** {@inheritDoc} */
     public int getPropertyCount() {
         return this.properties.size();
     }
-    
+
     /** {@inheritDoc} */
     public Iterator iterator() {
         return this.properties.keySet().iterator();
     }
-    
+
     /**
      * Merges this metadata object into a given target metadata object. The merge rule set provided
      * by each schema is used for the merge.
@@ -87,7 +87,7 @@
             merger.merge(prop, target);
         }
     }
-    
+
     /** {@inheritDoc} */
     public void toSAX(ContentHandler handler) throws SAXException {
         AttributesImpl atts = new AttributesImpl();
@@ -111,7 +111,7 @@
 
             boolean first = true;
             boolean empty = true;
-            
+
             Iterator props = properties.values().iterator();
             while (props.hasNext()) {
                 XMPProperty prop = (XMPProperty)props.next();
@@ -141,7 +141,7 @@
                 }
             }
         }
-        
+
         handler.endElement(XMPConstants.RDF_NAMESPACE, "RDF", "rdf:RDF");
         handler.endPrefixMapping("rdf");
         handler.endElement(XMPConstants.XMP_NAMESPACE, "xmpmeta", "x:xmpmeta");

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/xmp/PropertyAccess.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/xmp/PropertyAccess.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/xmp/PropertyAccess.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/xmp/PropertyAccess.java Thu Mar  5 11:03:54 2009
@@ -54,7 +54,7 @@
      * @return the rdf:value property or null if it's no available
      */
     XMPProperty getValueProperty();
-    
+
     /**
      * Returns the number of properties.
      * @return the number of properties in this metadata object.



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


Mime
View raw message