xmlgraphics-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vhenneb...@apache.org
Subject svn commit: r750418 [2/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/image/codec/util/PropertyUtil.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/util/PropertyUtil.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/util/PropertyUtil.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/util/PropertyUtil.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/image/codec/util/SeekableOutputStream.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/util/SeekableOutputStream.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/util/SeekableOutputStream.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/util/SeekableOutputStream.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/image/codec/util/SeekableStream.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/util/SeekableStream.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/util/SeekableStream.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/util/SeekableStream.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.
@@ -41,14 +41,14 @@
  * <code>SeekableStream</code> guarantee the ability to seek backwards while
  * others may not offer this feature in the interest of providing greater
  * efficiency for those users who do not require it.
- * 
+ *
  * <p> The <code>DataInput</code> interface is supported as well.  This included
  * the <code>skipBytes()</code> and <code>readFully()</code> methods and a
  * variety of <code>read</code> methods for various data types.
  *
  * <p> A number of concrete subclasses of <code>SeekableStream</code> are
  * supplied in the <code>com.sun.media.jai.codec</code> package.
- * 
+ *
  * <p> Three classes are provided for the purpose of adapting a standard
  * <code>InputStream</code> to the <code>SeekableStream</code> interface.
  * <code>ForwardSeekableStream</code> does not allows seeking backwards, but is
@@ -81,15 +81,15 @@
  * supplied by a given <code>InputStream</code>.  The caller, by means of the
  * <code>canSeekBackwards</code> parameter, determines whether support for
  * seeking backwards is required.
- * 
+ *
  */
 public abstract class SeekableStream extends InputStream implements DataInput {
 
     /**
-     * Returns a <code>SeekableStream</code> that will read from a 
+     * Returns a <code>SeekableStream</code> that will read from a
      * given <code>InputStream</code>, optionally including support
      * for seeking backwards.  This is a convenience method that
-     * avoids the need to instantiate specific subclasses of 
+     * avoids the need to instantiate specific subclasses of
      * <code>SeekableStream</code> depending on the current security
      * model.
      *
@@ -183,7 +183,7 @@
      * @exception  IOException  if an I/O error occurs.
      */
     public abstract int read(byte[] b, int off, int len) throws IOException;
-    
+
     // Implemented in InputStream:
     //
     // public int read(byte[] b) throws IOException {
@@ -229,7 +229,7 @@
     }
 
     /**
-     * Returns <code>true</code> if this object supports calls to 
+     * Returns <code>true</code> if this object supports calls to
      * <code>seek(pos)</code> with an offset <code>pos</code> smaller
      * than the current offset, as returned by <code>getFilePointer</code>.
      */
@@ -247,7 +247,7 @@
     public abstract long getFilePointer() throws IOException;
 
     /**
-     * Sets the offset, measured from the beginning of this 
+     * Sets the offset, measured from the beginning of this
      * stream, at which the next read occurs.
      *
      * <p> If <code>canSeekBackwards()</code> returns <code>false</code>,
@@ -255,10 +255,10 @@
      * the current value of <code>getFilePointer()</code> will have
      * no effect.
      *
-     * @param      pos   the offset position, measured in bytes from the 
-     *                   beginning of the stream, at which to set the stream 
+     * @param      pos   the offset position, measured in bytes from the
+     *                   beginning of the stream, at which to set the stream
      *                   pointer.
-     * @exception  IOException  if <code>pos</code> is less than 
+     * @exception  IOException  if <code>pos</code> is less than
      *                          <code>0</code> or if an I/O error occurs.
      */
     public abstract void seek(long pos) throws IOException;
@@ -266,27 +266,27 @@
     // Methods from RandomAccessFile
 
     /**
-     * Reads <code>b.length</code> bytes from this stream into the byte 
-     * array, starting at the current stream pointer. This method reads 
-     * repeatedly from the stream until the requested number of bytes are 
-     * read. This method blocks until the requested number of bytes are 
-     * read, the end of the stream is detected, or an exception is thrown. 
+     * Reads <code>b.length</code> bytes from this stream into the byte
+     * array, starting at the current stream pointer. This method reads
+     * repeatedly from the stream until the requested number of bytes are
+     * read. This method blocks until the requested number of bytes are
+     * read, the end of the stream is detected, or an exception is thrown.
      *
      * @param      b   the buffer into which the data is read.
      * @exception  EOFException  if this stream reaches the end before reading
      *               all the bytes.
-     * @exception  IOException   if an I/O error occurs.       
+     * @exception  IOException   if an I/O error occurs.
      */
     public final void readFully(byte[] b) throws IOException {
         readFully(b, 0, b.length);
     }
 
     /**
-     * Reads exactly <code>len</code> bytes from this stream into the byte 
-     * array, starting at the current stream pointer. This method reads 
-     * repeatedly from the stream until the requested number of bytes are 
-     * read. This method blocks until the requested number of bytes are 
-     * read, the end of the stream is detected, or an exception is thrown. 
+     * Reads exactly <code>len</code> bytes from this stream into the byte
+     * array, starting at the current stream pointer. This method reads
+     * repeatedly from the stream until the requested number of bytes are
+     * read. This method blocks until the requested number of bytes are
+     * read, the end of the stream is detected, or an exception is thrown.
      *
      * @param      b     the buffer into which the data is read.
      * @param      off   the start offset of the data.
@@ -309,15 +309,15 @@
     // Methods from DataInput, plus little-endian versions
 
     /**
-     * Attempts to skip over <code>n</code> bytes of input discarding the 
-     * skipped bytes. 
+     * Attempts to skip over <code>n</code> bytes of input discarding the
+     * skipped bytes.
      * <p>
-     * 
-     * This method may skip over some smaller number of bytes, possibly zero. 
-     * This may result from any of a number of conditions; reaching end of 
-     * stream before <code>n</code> bytes have been skipped is only one 
-     * possibility. This method never throws an <code>EOFException</code>. 
-     * The actual number of bytes skipped is returned.  If <code>n</code> 
+     *
+     * This method may skip over some smaller number of bytes, possibly zero.
+     * This may result from any of a number of conditions; reaching end of
+     * stream before <code>n</code> bytes have been skipped is only one
+     * possibility. This method never throws an <code>EOFException</code>.
+     * The actual number of bytes skipped is returned.  If <code>n</code>
      * is negative, no bytes are skipped.
      *
      * @param      n   the number of bytes to be skipped.
@@ -332,12 +332,12 @@
     }
 
     /**
-     * Reads a <code>boolean</code> from this stream. This method reads a 
-     * single byte from the stream, starting at the current stream pointer. 
-     * A value of <code>0</code> represents 
-     * <code>false</code>. Any other value represents <code>true</code>. 
-     * This method blocks until the byte is read, the end of the stream 
-     * is detected, or an exception is thrown. 
+     * Reads a <code>boolean</code> from this stream. This method reads a
+     * single byte from the stream, starting at the current stream pointer.
+     * A value of <code>0</code> represents
+     * <code>false</code>. Any other value represents <code>true</code>.
+     * This method blocks until the byte is read, the end of the stream
+     * is detected, or an exception is thrown.
      *
      * @return     the <code>boolean</code> value read.
      * @exception  EOFException  if this stream has reached the end.
@@ -351,17 +351,17 @@
     }
 
     /**
-     * Reads a signed eight-bit value from this stream. This method reads a 
-     * byte from the stream, starting from the current stream pointer. 
-     * If the byte read is <code>b</code>, where 
-     * <code>0&nbsp;&lt;=&nbsp;b&nbsp;&lt;=&nbsp;255</code>, 
+     * Reads a signed eight-bit value from this stream. This method reads a
+     * byte from the stream, starting from the current stream pointer.
+     * If the byte read is <code>b</code>, where
+     * <code>0&nbsp;&lt;=&nbsp;b&nbsp;&lt;=&nbsp;255</code>,
      * then the result is:
      * <blockquote><pre>
      *     (byte)(b)
      * </pre></blockquote>
      * <p>
-     * This method blocks until the byte is read, the end of the stream 
-     * is detected, or an exception is thrown. 
+     * This method blocks until the byte is read, the end of the stream
+     * is detected, or an exception is thrown.
      *
      * @return     the next byte of this stream as a signed eight-bit
      *             <code>byte</code>.
@@ -376,12 +376,12 @@
     }
 
     /**
-     * Reads an unsigned eight-bit number from this stream. This method reads 
-     * a byte from this stream, starting at the current stream pointer, 
-     * and returns that byte. 
+     * Reads an unsigned eight-bit number from this stream. This method reads
+     * a byte from this stream, starting at the current stream pointer,
+     * and returns that byte.
      * <p>
-     * This method blocks until the byte is read, the end of the stream 
-     * is detected, or an exception is thrown. 
+     * This method blocks until the byte is read, the end of the stream
+     * is detected, or an exception is thrown.
      *
      * @return     the next byte of this stream, interpreted as an unsigned
      *             eight-bit number.
@@ -397,18 +397,18 @@
 
     /**
      * Reads a signed 16-bit number from this stream.
-     * The method reads two 
-     * bytes from this stream, starting at the current stream pointer. 
-     * If the two bytes read, in order, are 
-     * <code>b1</code> and <code>b2</code>, where each of the two values is 
-     * between <code>0</code> and <code>255</code>, inclusive, then the 
+     * The method reads two
+     * bytes from this stream, starting at the current stream pointer.
+     * If the two bytes read, in order, are
+     * <code>b1</code> and <code>b2</code>, where each of the two values is
+     * between <code>0</code> and <code>255</code>, inclusive, then the
      * result is equal to:
      * <blockquote><pre>
      *     (short)((b1 &lt;&lt; 8) | b2)
      * </pre></blockquote>
      * <p>
-     * This method blocks until the two bytes are read, the end of the 
-     * stream is detected, or an exception is thrown. 
+     * This method blocks until the two bytes are read, the end of the
+     * stream is detected, or an exception is thrown.
      *
      * @return     the next two bytes of this stream, interpreted as a signed
      *             16-bit number.
@@ -426,18 +426,18 @@
 
     /**
      * Reads a signed 16-bit number from this stream in little-endian order.
-     * The method reads two 
-     * bytes from this stream, starting at the current stream pointer. 
-     * If the two bytes read, in order, are 
-     * <code>b1</code> and <code>b2</code>, where each of the two values is 
-     * between <code>0</code> and <code>255</code>, inclusive, then the 
+     * The method reads two
+     * bytes from this stream, starting at the current stream pointer.
+     * If the two bytes read, in order, are
+     * <code>b1</code> and <code>b2</code>, where each of the two values is
+     * between <code>0</code> and <code>255</code>, inclusive, then the
      * result is equal to:
      * <blockquote><pre>
      *     (short)((b2 &lt;&lt; 8) | b1)
      * </pre></blockquote>
      * <p>
-     * This method blocks until the two bytes are read, the end of the 
-     * stream is detected, or an exception is thrown. 
+     * This method blocks until the two bytes are read, the end of the
+     * stream is detected, or an exception is thrown.
      *
      * @return     the next two bytes of this stream, interpreted as a signed
      *             16-bit number.
@@ -454,18 +454,18 @@
     }
 
     /**
-     * Reads an unsigned 16-bit number from this stream. This method reads 
-     * two bytes from the stream, starting at the current stream pointer. 
-     * If the bytes read, in order, are 
-     * <code>b1</code> and <code>b2</code>, where 
-     * <code>0&nbsp;&lt;=&nbsp;b1, b2&nbsp;&lt;=&nbsp;255</code>, 
+     * Reads an unsigned 16-bit number from this stream. This method reads
+     * two bytes from the stream, starting at the current stream pointer.
+     * If the bytes read, in order, are
+     * <code>b1</code> and <code>b2</code>, where
+     * <code>0&nbsp;&lt;=&nbsp;b1, b2&nbsp;&lt;=&nbsp;255</code>,
      * then the result is equal to:
      * <blockquote><pre>
      *     (b1 &lt;&lt; 8) | b2
      * </pre></blockquote>
      * <p>
-     * This method blocks until the two bytes are read, the end of the 
-     * stream is detected, or an exception is thrown. 
+     * This method blocks until the two bytes are read, the end of the
+     * stream is detected, or an exception is thrown.
      *
      * @return     the next two bytes of this stream, interpreted as an
      *             unsigned 16-bit integer.
@@ -483,18 +483,18 @@
 
     /**
      * Reads an unsigned 16-bit number from this stream in little-endian order.
-     * This method reads 
-     * two bytes from the stream, starting at the current stream pointer. 
-     * If the bytes read, in order, are 
-     * <code>b1</code> and <code>b2</code>, where 
-     * <code>0&nbsp;&lt;=&nbsp;b1, b2&nbsp;&lt;=&nbsp;255</code>, 
+     * This method reads
+     * two bytes from the stream, starting at the current stream pointer.
+     * If the bytes read, in order, are
+     * <code>b1</code> and <code>b2</code>, where
+     * <code>0&nbsp;&lt;=&nbsp;b1, b2&nbsp;&lt;=&nbsp;255</code>,
      * then the result is equal to:
      * <blockquote><pre>
      *     (b2 &lt;&lt; 8) | b1
      * </pre></blockquote>
      * <p>
-     * This method blocks until the two bytes are read, the end of the 
-     * stream is detected, or an exception is thrown. 
+     * This method blocks until the two bytes are read, the end of the
+     * stream is detected, or an exception is thrown.
      *
      * @return     the next two bytes of this stream, interpreted as an
      *             unsigned 16-bit integer.
@@ -512,17 +512,17 @@
 
     /**
      * Reads a Unicode character from this stream. This method reads two
-     * bytes from the stream, starting at the current stream pointer. 
-     * If the bytes read, in order, are 
-     * <code>b1</code> and <code>b2</code>, where 
-     * <code>0&nbsp;&lt;=&nbsp;b1,&nbsp;b2&nbsp;&lt;=&nbsp;255</code>, 
+     * bytes from the stream, starting at the current stream pointer.
+     * If the bytes read, in order, are
+     * <code>b1</code> and <code>b2</code>, where
+     * <code>0&nbsp;&lt;=&nbsp;b1,&nbsp;b2&nbsp;&lt;=&nbsp;255</code>,
      * then the result is equal to:
      * <blockquote><pre>
      *     (char)((b1 &lt;&lt; 8) | b2)
      * </pre></blockquote>
      * <p>
-     * This method blocks until the two bytes are read, the end of the 
-     * stream is detected, or an exception is thrown. 
+     * This method blocks until the two bytes are read, the end of the
+     * stream is detected, or an exception is thrown.
      *
      * @return     the next two bytes of this stream as a Unicode character.
      * @exception  EOFException  if this stream reaches the end before reading
@@ -540,17 +540,17 @@
     /**
      * Reads a Unicode character from this stream in little-endian order.
      * This method reads two
-     * bytes from the stream, starting at the current stream pointer. 
-     * If the bytes read, in order, are 
-     * <code>b1</code> and <code>b2</code>, where 
-     * <code>0&nbsp;&lt;=&nbsp;b1,&nbsp;b2&nbsp;&lt;=&nbsp;255</code>, 
+     * bytes from the stream, starting at the current stream pointer.
+     * If the bytes read, in order, are
+     * <code>b1</code> and <code>b2</code>, where
+     * <code>0&nbsp;&lt;=&nbsp;b1,&nbsp;b2&nbsp;&lt;=&nbsp;255</code>,
      * then the result is equal to:
      * <blockquote><pre>
      *     (char)((b2 &lt;&lt; 8) | b1)
      * </pre></blockquote>
      * <p>
-     * This method blocks until the two bytes are read, the end of the 
-     * stream is detected, or an exception is thrown. 
+     * This method blocks until the two bytes are read, the end of the
+     * stream is detected, or an exception is thrown.
      *
      * @return     the next two bytes of this stream as a Unicode character.
      * @exception  EOFException  if this stream reaches the end before reading
@@ -566,18 +566,18 @@
     }
 
     /**
-     * Reads a signed 32-bit integer from this stream. This method reads 4 
-     * bytes from the stream, starting at the current stream pointer. 
+     * Reads a signed 32-bit integer from this stream. This method reads 4
+     * bytes from the stream, starting at the current stream pointer.
      * If the bytes read, in order, are <code>b1</code>,
-     * <code>b2</code>, <code>b3</code>, and <code>b4</code>, where 
-     * <code>0&nbsp;&lt;=&nbsp;b1, b2, b3, b4&nbsp;&lt;=&nbsp;255</code>, 
+     * <code>b2</code>, <code>b3</code>, and <code>b4</code>, where
+     * <code>0&nbsp;&lt;=&nbsp;b1, b2, b3, b4&nbsp;&lt;=&nbsp;255</code>,
      * then the result is equal to:
      * <blockquote><pre>
      *     (b1 &lt;&lt; 24) | (b2 &lt;&lt; 16) + (b3 &lt;&lt; 8) + b4
      * </pre></blockquote>
      * <p>
-     * This method blocks until the four bytes are read, the end of the 
-     * stream is detected, or an exception is thrown. 
+     * This method blocks until the four bytes are read, the end of the
+     * stream is detected, or an exception is thrown.
      *
      * @return     the next four bytes of this stream, interpreted as an
      *             <code>int</code>.
@@ -597,18 +597,18 @@
 
     /**
      * Reads a signed 32-bit integer from this stream in little-endian order.
-     * This method reads 4 
-     * bytes from the stream, starting at the current stream pointer. 
+     * This method reads 4
+     * bytes from the stream, starting at the current stream pointer.
      * If the bytes read, in order, are <code>b1</code>,
-     * <code>b2</code>, <code>b3</code>, and <code>b4</code>, where 
-     * <code>0&nbsp;&lt;=&nbsp;b1, b2, b3, b4&nbsp;&lt;=&nbsp;255</code>, 
+     * <code>b2</code>, <code>b3</code>, and <code>b4</code>, where
+     * <code>0&nbsp;&lt;=&nbsp;b1, b2, b3, b4&nbsp;&lt;=&nbsp;255</code>,
      * then the result is equal to:
      * <blockquote><pre>
      *     (b4 &lt;&lt; 24) | (b3 &lt;&lt; 16) + (b2 &lt;&lt; 8) + b1
      * </pre></blockquote>
      * <p>
-     * This method blocks until the four bytes are read, the end of the 
-     * stream is detected, or an exception is thrown. 
+     * This method blocks until the four bytes are read, the end of the
+     * stream is detected, or an exception is thrown.
      *
      * @return     the next four bytes of this stream, interpreted as an
      *             <code>int</code>.
@@ -627,18 +627,18 @@
     }
 
     /**
-     * Reads an unsigned 32-bit integer from this stream. This method reads 4 
-     * bytes from the stream, starting at the current stream pointer. 
+     * Reads an unsigned 32-bit integer from this stream. This method reads 4
+     * bytes from the stream, starting at the current stream pointer.
      * If the bytes read, in order, are <code>b1</code>,
-     * <code>b2</code>, <code>b3</code>, and <code>b4</code>, where 
-     * <code>0&nbsp;&lt;=&nbsp;b1, b2, b3, b4&nbsp;&lt;=&nbsp;255</code>, 
+     * <code>b2</code>, <code>b3</code>, and <code>b4</code>, where
+     * <code>0&nbsp;&lt;=&nbsp;b1, b2, b3, b4&nbsp;&lt;=&nbsp;255</code>,
      * then the result is equal to:
      * <blockquote><pre>
      *     (b1 &lt;&lt; 24) | (b2 &lt;&lt; 16) + (b3 &lt;&lt; 8) + b4
      * </pre></blockquote>
      * <p>
-     * This method blocks until the four bytes are read, the end of the 
-     * stream is detected, or an exception is thrown. 
+     * This method blocks until the four bytes are read, the end of the
+     * stream is detected, or an exception is thrown.
      *
      * @return     the next four bytes of this stream, interpreted as a
      *             <code>long</code>.
@@ -660,18 +660,18 @@
 
     /**
      * Reads an unsigned 32-bit integer from this stream in little-endian
-     * order.  This method reads 4 
-     * bytes from the stream, starting at the current stream pointer. 
+     * order.  This method reads 4
+     * bytes from the stream, starting at the current stream pointer.
      * If the bytes read, in order, are <code>b1</code>,
-     * <code>b2</code>, <code>b3</code>, and <code>b4</code>, where 
-     * <code>0&nbsp;&lt;=&nbsp;b1, b2, b3, b4&nbsp;&lt;=&nbsp;255</code>, 
+     * <code>b2</code>, <code>b3</code>, and <code>b4</code>, where
+     * <code>0&nbsp;&lt;=&nbsp;b1, b2, b3, b4&nbsp;&lt;=&nbsp;255</code>,
      * then the result is equal to:
      * <blockquote><pre>
      *     (b4 &lt;&lt; 24) | (b3 &lt;&lt; 16) + (b2 &lt;&lt; 8) + b1
      * </pre></blockquote>
      * <p>
-     * This method blocks until the four bytes are read, the end of the 
-     * stream is detected, or an exception is thrown. 
+     * This method blocks until the four bytes are read, the end of the
+     * stream is detected, or an exception is thrown.
      *
      * @return     the next four bytes of this stream, interpreted as a
      *             <code>long</code>.
@@ -691,10 +691,10 @@
 
     /**
      * Reads a signed 64-bit integer from this stream. This method reads eight
-     * bytes from the stream, starting at the current stream pointer. 
-     * If the bytes read, in order, are 
-     * <code>b1</code>, <code>b2</code>, <code>b3</code>, 
-     * <code>b4</code>, <code>b5</code>, <code>b6</code>, 
+     * bytes from the stream, starting at the current stream pointer.
+     * If the bytes read, in order, are
+     * <code>b1</code>, <code>b2</code>, <code>b3</code>,
+     * <code>b4</code>, <code>b5</code>, <code>b6</code>,
      * <code>b7</code>, and <code>b8,</code> where:
      * <blockquote><pre>
      *     0 &lt;= b1, b2, b3, b4, b5, b6, b7, b8 &lt;=255,
@@ -708,8 +708,8 @@
      *     + ((long)b7 &lt;&lt; 8) + b8
      * </pre></blockquote>
      * <p>
-     * This method blocks until the eight bytes are read, the end of the 
-     * stream is detected, or an exception is thrown. 
+     * This method blocks until the eight bytes are read, the end of the
+     * stream is detected, or an exception is thrown.
      *
      * @return     the next eight bytes of this stream, interpreted as a
      *             <code>long</code>.
@@ -724,10 +724,10 @@
     /**
      * Reads a signed 64-bit integer from this stream in little-endian
      * order. This method reads eight
-     * bytes from the stream, starting at the current stream pointer. 
-     * If the bytes read, in order, are 
-     * <code>b1</code>, <code>b2</code>, <code>b3</code>, 
-     * <code>b4</code>, <code>b5</code>, <code>b6</code>, 
+     * bytes from the stream, starting at the current stream pointer.
+     * If the bytes read, in order, are
+     * <code>b1</code>, <code>b2</code>, <code>b3</code>,
+     * <code>b4</code>, <code>b5</code>, <code>b6</code>,
      * <code>b7</code>, and <code>b8,</code> where:
      * <blockquote><pre>
      *     0 &lt;= b1, b2, b3, b4, b5, b6, b7, b8 &lt;=255,
@@ -741,8 +741,8 @@
      *     + ((long)b7 &lt;&lt; 8) + b8
      * </pre></blockquote>
      * <p>
-     * This method blocks until the eight bytes are read, the end of the 
-     * stream is detected, or an exception is thrown. 
+     * This method blocks until the eight bytes are read, the end of the
+     * stream is detected, or an exception is thrown.
      *
      * @return     the next eight bytes of this stream, interpreted as a
      *             <code>long</code>.
@@ -757,15 +757,15 @@
     }
 
     /**
-     * Reads a <code>float</code> from this stream. This method reads an 
-     * <code>int</code> value, starting at the current stream pointer, 
-     * as if by the <code>readInt</code> method 
-     * and then converts that <code>int</code> to a <code>float</code> 
-     * using the <code>intBitsToFloat</code> method in class 
-     * <code>Float</code>. 
+     * Reads a <code>float</code> from this stream. This method reads an
+     * <code>int</code> value, starting at the current stream pointer,
+     * as if by the <code>readInt</code> method
+     * and then converts that <code>int</code> to a <code>float</code>
+     * using the <code>intBitsToFloat</code> method in class
+     * <code>Float</code>.
      * <p>
-     * This method blocks until the four bytes are read, the end of the 
-     * stream is detected, or an exception is thrown. 
+     * This method blocks until the four bytes are read, the end of the
+     * stream is detected, or an exception is thrown.
      *
      * @return     the next four bytes of this stream, interpreted as a
      *             <code>float</code>.
@@ -779,15 +779,15 @@
 
     /**
      * Reads a <code>float</code> from this stream in little-endian order.
-     * This method reads an 
-     * <code>int</code> value, starting at the current stream pointer, 
-     * as if by the <code>readInt</code> method 
-     * and then converts that <code>int</code> to a <code>float</code> 
-     * using the <code>intBitsToFloat</code> method in class 
-     * <code>Float</code>. 
+     * This method reads an
+     * <code>int</code> value, starting at the current stream pointer,
+     * as if by the <code>readInt</code> method
+     * and then converts that <code>int</code> to a <code>float</code>
+     * using the <code>intBitsToFloat</code> method in class
+     * <code>Float</code>.
      * <p>
-     * This method blocks until the four bytes are read, the end of the 
-     * stream is detected, or an exception is thrown. 
+     * This method blocks until the four bytes are read, the end of the
+     * stream is detected, or an exception is thrown.
      *
      * @return     the next four bytes of this stream, interpreted as a
      *             <code>float</code>.
@@ -800,15 +800,15 @@
     }
 
     /**
-     * Reads a <code>double</code> from this stream. This method reads a 
-     * <code>long</code> value, starting at the current stream pointer, 
-     * as if by the <code>readLong</code> method 
-     * and then converts that <code>long</code> to a <code>double</code> 
-     * using the <code>longBitsToDouble</code> method in 
+     * Reads a <code>double</code> from this stream. This method reads a
+     * <code>long</code> value, starting at the current stream pointer,
+     * as if by the <code>readLong</code> method
+     * and then converts that <code>long</code> to a <code>double</code>
+     * using the <code>longBitsToDouble</code> method in
      * class <code>Double</code>.
      * <p>
-     * This method blocks until the eight bytes are read, the end of the 
-     * stream is detected, or an exception is thrown. 
+     * This method blocks until the eight bytes are read, the end of the
+     * stream is detected, or an exception is thrown.
      *
      * @return     the next eight bytes of this stream, interpreted as a
      *             <code>double</code>.
@@ -822,15 +822,15 @@
 
     /**
      * Reads a <code>double</code> from this stream in little-endian order.
-     * This method reads a 
-     * <code>long</code> value, starting at the current stream pointer, 
-     * as if by the <code>readLong</code> method 
-     * and then converts that <code>long</code> to a <code>double</code> 
-     * using the <code>longBitsToDouble</code> method in 
+     * This method reads a
+     * <code>long</code> value, starting at the current stream pointer,
+     * as if by the <code>readLong</code> method
+     * and then converts that <code>long</code> to a <code>double</code>
+     * using the <code>longBitsToDouble</code> method in
      * class <code>Double</code>.
      * <p>
-     * This method blocks until the eight bytes are read, the end of the 
-     * stream is detected, or an exception is thrown. 
+     * This method blocks until the eight bytes are read, the end of the
+     * stream is detected, or an exception is thrown.
      *
      * @return     the next eight bytes of this stream, interpreted as a
      *             <code>double</code>.
@@ -844,7 +844,7 @@
 
     /**
      * Reads the next line of text from this stream.  This method successively
-     * reads bytes from the stream, starting at the current stream pointer, 
+     * reads bytes from the stream, starting at the current stream pointer,
      * until it reaches a line terminator or the end
      * of the stream.  Each byte is converted into a character by taking the
      * byte's value for the lower eight bits of the character and setting the
@@ -896,25 +896,25 @@
     }
 
     /**
-     * Reads in a string from this stream. The string has been encoded 
-     * using a modified UTF-8 format. 
+     * Reads in a string from this stream. The string has been encoded
+     * using a modified UTF-8 format.
      * <p>
      * The first two bytes are read, starting from the current stream
-     * pointer, as if by 
-     * <code>readUnsignedShort</code>. This value gives the number of 
+     * pointer, as if by
+     * <code>readUnsignedShort</code>. This value gives the number of
      * following bytes that are in the encoded string, not
-     * the length of the resulting string. The following bytes are then 
-     * interpreted as bytes encoding characters in the UTF-8 format 
-     * and are converted into characters. 
+     * the length of the resulting string. The following bytes are then
+     * interpreted as bytes encoding characters in the UTF-8 format
+     * and are converted into characters.
      * <p>
-     * This method blocks until all the bytes are read, the end of the 
-     * stream is detected, or an exception is thrown. 
+     * This method blocks until all the bytes are read, the end of the
+     * stream is detected, or an exception is thrown.
      *
      * @return     a Unicode string.
      * @exception  EOFException            if this stream reaches the end before
      *               reading all the bytes.
      * @exception  IOException             if an I/O error occurs.
-     * @exception  java.io.UTFDataFormatException  if the bytes do not represent 
+     * @exception  java.io.UTFDataFormatException  if the bytes do not represent
      *               valid UTF-8 encoding of a Unicode string.
      */
     public final String readUTF() throws IOException {

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/util/SimpleRenderedImage.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/util/SimpleRenderedImage.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/util/SimpleRenderedImage.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/util/SimpleRenderedImage.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/image/codec/util/SingleTileRenderedImage.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/util/SingleTileRenderedImage.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/util/SingleTileRenderedImage.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/codec/util/SingleTileRenderedImage.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/image/loader/Image.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/Image.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/Image.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/Image.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.image.loader;
 
 import java.awt.color.ColorSpace;
@@ -29,39 +29,39 @@
 public interface Image {
 
     /**
-     * Returns an object with basic information (URI, MIME type, intrinsic size) about the image. 
+     * Returns an object with basic information (URI, MIME type, intrinsic size) about the image.
      * @return the image information object
      */
     ImageInfo getInfo();
-    
+
     /**
      * Returns the image's intrinsic size. This is a shortcut for getInfo().getSize().
      * @return the image's intrinsic size
      */
     ImageSize getSize();
-    
+
     /**
      * Returns the flavor of the image.
      * @return the image flavor
      */
     ImageFlavor getFlavor();
-    
+
     /**
      * Indicates whether the Image instance is cacheable in memory.
      * @return true if the Image is cacheable
      */
     boolean isCacheable();
- 
+
     /**
      * Returns the ICC color profile if one is associated with the image.
      * @return the ICC color profile or null if there's no profile
      */
     ICC_Profile getICCProfile();
-    
+
     /**
      * Returns the image's color space if the information is available.
      * @return the color space or null if the color space is unknown or undefined
      */
     ColorSpace getColorSpace();
-    
+
 }

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/ImageContext.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/ImageContext.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/ImageContext.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/ImageContext.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.image.loader;
 
 /**
@@ -31,5 +31,5 @@
      * @return the source resolution (in dpi)
      */
     float getSourceResolution();
-    
+
 }

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/ImageException.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/ImageException.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/ImageException.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/ImageException.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.image.loader;
 
 /**
@@ -54,5 +54,5 @@
     public ImageException(String message, Throwable cause) {
         super(message, cause);
     }
-    
+
 }

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/ImageInfo.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/ImageInfo.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/ImageInfo.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/ImageInfo.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.
@@ -58,7 +58,7 @@
      * Example: The DOM of an XML document.
      */
     private Map customObjects = new java.util.HashMap();
-    
+
     /**
      * Main constructor.
      * @param originalURI the original URI that was specified by the user (not the resolved URI!)
@@ -100,7 +100,7 @@
     public void setSize(ImageSize size) {
         this.size = size;
     }
-    
+
     /**
      * Returns a Map of custom objects associated with this instance.
      * @return the Map of custom objects
@@ -108,14 +108,14 @@
     public Map getCustomObjects() {
         return this.customObjects;
     }
-    
+
     /**
      * Returns the original Image instance if such an Image instance is created while building
      * this ImageInfo object. Some images cannot be "preloaded". They have to be fully loaded
      * in order to determine the intrinsic image size. This method allows access to that fully
      * loaded image so no additional re-loading has to be done later.
      * <p>
-     * This method is short for: (Image)this.customObjects.get(ORIGINAL_IMAGE); 
+     * This method is short for: (Image)this.customObjects.get(ORIGINAL_IMAGE);
      * @return the original Image instance or null if none is set
      * @see #ORIGINAL_IMAGE
      */
@@ -127,5 +127,5 @@
     public String toString() {
         return getOriginalURI() + " (" + getMimeType() + ")";
     }
-    
+
 }

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/ImageSessionContext.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/ImageSessionContext.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/ImageSessionContext.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/ImageSessionContext.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.image.loader;
 
 import java.io.FileNotFoundException;
@@ -37,22 +37,22 @@
      * @return the associated ImageContext instance
      */
     ImageContext getParentContext();
-    
+
     /**
      * Returns the resolution (in dpi) of the target device used when painting images.
      * @return the target resolution (in dpi)
      */
     float getTargetResolution();
-    
+
     /**
      * Attempts to create a Source object from the given URI. If possible this method returns
      * an ImageSource instance which provides the best possible method to access the image.
      * @param uri URI to access
      * @return A {@link javax.xml.transform.Source} object, or null if the URI
-     * cannot be resolved. 
+     * cannot be resolved.
      */
     Source newSource(String uri);
-    
+
     /**
      * Returns a Source object for a URI. This method is not guaranteed to return an instance.
      * Implementations normally return already created Sources from a pool (normally populated
@@ -61,7 +61,7 @@
      * @return the Source object to load the image from, or null
      */
     Source getSource(String uri);
-    
+
     /**
      * Returns a Source object for a URI. This method is guaranteed to return a Source object. If
      * the image cannot be found, a {@link FileNotFoundException} is thrown.
@@ -70,7 +70,7 @@
      * @throws FileNotFoundException if the image cannot be found
      */
     Source needSource(String uri) throws FileNotFoundException;
-    
+
     /**
      * Returns a Source object to a pool. This is provided in order to reuse a Source object
      * between the preloading and the final loading of an image. Note that not all Source objects
@@ -79,5 +79,5 @@
      * @param src the Source object belonging to the URI
      */
     void returnSource(String uri, Source src);
-    
+
 }

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/ImageSource.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/ImageSource.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/ImageSource.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/ImageSource.java Thu Mar  5 11:03:54 2009
@@ -30,7 +30,7 @@
  * Acts as a holder for the input to image loading operations.
  */
 public class ImageSource implements Source {
-    
+
     private String systemId;
     private ImageInputStream iin;
     private boolean fastSource;
@@ -67,7 +67,7 @@
     public ImageInputStream getImageInputStream() {
         return this.iin;
     }
-    
+
     /**
      * Sets the ImageInputStream.
      * @param in the ImageInputStream
@@ -75,7 +75,7 @@
     public void setImageInputStream(ImageInputStream in) {
         this.iin = in;
     }
-    
+
     /** {@inheritDoc} */
     public String getSystemId() {
         return this.systemId;
@@ -85,7 +85,7 @@
     public void setSystemId(String systemId) {
         this.systemId = systemId;
     }
-    
+
     /**
      * Indicates whether this ImageSource is a fast source, i.e. accesses local files rather than
      * network resources.
@@ -100,5 +100,5 @@
         return (isFastSource() ? "FAST " : "") + "ImageSource: "
             + getSystemId() + " " + getImageInputStream();
     }
-    
+
 }

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/SubImageNotFoundException.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/SubImageNotFoundException.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/SubImageNotFoundException.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/SubImageNotFoundException.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.image.loader;
 
 /**
@@ -54,5 +54,5 @@
     public SubImageNotFoundException(String message, Throwable cause) {
         super(message, cause);
     }
-    
+
 }

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/cache/ImageCache.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/cache/ImageCache.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/cache/ImageCache.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/cache/ImageCache.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.image.loader.cache;
 
 import java.io.FileNotFoundException;
@@ -49,12 +49,12 @@
 
     /** logger */
     protected static Log log = LogFactory.getLog(ImageCache.class);
-    
+
     private Set invalidURIs = Collections.synchronizedSet(new java.util.HashSet());
-    
+
     private SoftMapCache imageInfos = new SoftMapCache(true);
     private SoftMapCache images = new SoftMapCache(true);
-    
+
     private ImageCacheListener cacheListener;
 
     /**
@@ -64,7 +64,7 @@
     public void setCacheListener(ImageCacheListener listener) {
         this.cacheListener = listener;
     }
-    
+
     /**
      * Returns an ImageInfo instance for a given URI.
      * @param uri the image's URI
@@ -107,7 +107,7 @@
             return info;
         }
     }
-    
+
     /**
      * Indicates whether a URI has previously been identified as an invalid URI.
      * @param uri the image's URI
@@ -122,7 +122,7 @@
         }
         return false;
     }
-    
+
     /**
      * Returns an ImageInfo instance from the cache or null if none is found.
      * @param uri the image's URI
@@ -141,7 +141,7 @@
         }
         return info;
     }
-    
+
     /**
      * Registers an ImageInfo instance with the cache.
      * @param info the ImageInfo instance
@@ -150,7 +150,7 @@
         //An already existing ImageInfo is replaced.
         imageInfos.put(info.getOriginalURI(), info);
     }
-    
+
     /**
      * Registers a URI as invalid so getImageInfo can indicate that quickly with no I/O access.
      * @param uri the URI of the invalid image
@@ -164,7 +164,7 @@
             invalidURIs.add(uri);
         }
     }
-    
+
     /**
      * Returns an image from the cache or null if it wasn't found.
      * @param info the ImageInfo instance representing the image
@@ -174,7 +174,7 @@
     public Image getImage(ImageInfo info, ImageFlavor flavor) {
         return getImage(info.getOriginalURI(), flavor);
     }
-    
+
     /**
      * Returns an image from the cache or null if it wasn't found.
      * @param uri the image's URI
@@ -196,7 +196,7 @@
         }
         return img;
     }
-    
+
     /**
      * Registers an image with the cache.
      * @param img the image
@@ -224,7 +224,7 @@
         images.clear();
         doHouseKeeping();
     }
-    
+
     /**
      * Triggers some house-keeping, i.e. removes stale entries.
      */
@@ -232,5 +232,5 @@
         imageInfos.doHouseKeeping();
         images.doHouseKeeping();
     }
-    
+
 }

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/cache/ImageCacheListener.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/cache/ImageCacheListener.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/cache/ImageCacheListener.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/cache/ImageCacheListener.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.image.loader.cache;
 
 import java.util.EventListener;
@@ -32,29 +32,29 @@
      * @param uri the invalid URI
      */
     void invalidHit(String uri);
-    
+
     /**
      * An ImageInfo was found in the cache
      * @param uri the image's URI
      */
     void cacheHitImageInfo(String uri);
-    
+
     /**
      * An ImageInfo was not in the cache
      * @param uri the image's URI
      */
     void cacheMissImageInfo(String uri);
-    
+
     /**
      * An Image was found in the cache
      * @param key the image key
      */
     void cacheHitImage(ImageKey key);
-    
+
     /**
      * An Image was not in the cache
      * @param key the image key
      */
     void cacheMissImage(ImageKey key);
-    
+
 }

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/cache/ImageCacheStatistics.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/cache/ImageCacheStatistics.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/cache/ImageCacheStatistics.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/cache/ImageCacheStatistics.java Thu Mar  5 11:03:54 2009
@@ -34,7 +34,7 @@
     private int imageCacheMisses;
     private Map imageCacheHitMap;
     private Map imageCacheMissMap;
-    
+
     /**
      * Main constructor.
      * @param detailed true if the cache hits/misses for each Image instance should be recorded.
@@ -45,7 +45,7 @@
             imageCacheMissMap = new java.util.HashMap();
         }
     }
-    
+
     /**
      * Reset the gathered statistics information.
      */
@@ -54,7 +54,7 @@
         this.imageInfoCacheMisses = 0;
         this.invalidHits = 0;
     }
-    
+
     /** {@inheritDoc} */
     public void invalidHit(String uri) {
         invalidHits++;
@@ -87,7 +87,7 @@
             increaseEntry(imageCacheHitMap, key);
         }
     }
-    
+
     /** {@inheritDoc} */
     public void cacheMissImage(ImageKey key) {
         imageCacheMisses++;
@@ -151,5 +151,5 @@
     public Map getImageCacheMissMap() {
         return Collections.unmodifiableMap(imageCacheMissMap);
     }
-    
+
 }
\ No newline at end of file

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/cache/ImageKey.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/cache/ImageKey.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/cache/ImageKey.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/cache/ImageKey.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.image.loader.cache;
 
 import org.apache.xmlgraphics.image.loader.ImageFlavor;
@@ -25,10 +25,10 @@
  * Key class for Image instances in the cache.
  */
 public class ImageKey {
-    
+
     private String uri;
     private org.apache.xmlgraphics.image.loader.ImageFlavor flavor;
-    
+
     /**
      * Main constructor.
      * @param uri the original URI
@@ -79,5 +79,5 @@
     public String toString() {
         return uri + " (" + flavor + ")";
     }
-    
+
 }
\ No newline at end of file

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/AbstractImage.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/AbstractImage.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/AbstractImage.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/AbstractImage.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 abstract class AbstractImage implements Image {
 
     private ImageInfo info;
-    
+
     /**
      * Main constructor
      * @param info the image info object associated with this image
@@ -41,7 +41,7 @@
     public AbstractImage(ImageInfo info) {
         this.info = info;
     }
-    
+
     /** {@inheritDoc} */
     public ImageInfo getInfo() {
         return this.info;

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/AbstractImageConverter.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/AbstractImageConverter.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/AbstractImageConverter.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/AbstractImageConverter.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.image.loader.impl;
 
 import org.apache.xmlgraphics.image.loader.Image;
@@ -36,10 +36,10 @@
             throw new IllegalArgumentException("Incompatible image: " + img);
         }
     }
-    
+
     /** {@inheritDoc} */
     public int getConversionPenalty() {
         return MEDIUM_CONVERSION_PENALTY;
     }
-    
+
 }

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/AbstractImageLoader.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/AbstractImageLoader.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/AbstractImageLoader.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/AbstractImageLoader.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 abstract class AbstractImageLoader implements ImageLoader {
 
-    /** {@inheritDoc} */ 
+    /** {@inheritDoc} */
     public Image loadImage(ImageInfo info, ImageSessionContext session)
                 throws ImageException, IOException {
         return loadImage(info, null, session);

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/AbstractImageLoaderFactory.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/AbstractImageLoaderFactory.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/AbstractImageLoaderFactory.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/AbstractImageLoaderFactory.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/image/loader/impl/AbstractImagePreloader.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/AbstractImagePreloader.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/AbstractImagePreloader.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/AbstractImagePreloader.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.image.loader.impl;
 
 import java.io.IOException;
@@ -34,7 +34,7 @@
     /**
      * Allows to read an image header (usually just a magic number). The InputStream is reset
      * to the position before the header was read.
-     * @param in the ImageInputStream to read from 
+     * @param in the ImageInputStream to read from
      * @param size the size of the header
      * @return the loaded header
      * @throws IOException if an I/O error occurs while reading the header
@@ -55,5 +55,5 @@
     public int getPriority() {
         return DEFAULT_PRIORITY;
     }
-    
+
 }

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/AbstractImageSessionContext.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/AbstractImageSessionContext.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/AbstractImageSessionContext.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/AbstractImageSessionContext.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.image.loader.impl;
 
 import java.io.File;
@@ -52,7 +52,7 @@
     private static Log log = LogFactory.getLog(AbstractImageSessionContext.class);
 
     private static boolean noSourceReuse = false;
-    
+
     static {
         //TODO Temporary measure to track down a problem
         //See: http://markmail.org/message/k6mno3jsxmovaz2e
@@ -60,12 +60,12 @@
                 AbstractImageSessionContext.class.getName() + ".no-source-reuse");
         noSourceReuse = Boolean.valueOf(v).booleanValue();
     }
-    
+
     /**
      * Attempts to resolve the given URI.
      * @param uri URI to access
      * @return A {@link javax.xml.transform.Source} object, or null if the URI
-     * cannot be resolved. 
+     * cannot be resolved.
      */
     protected abstract Source resolveURI(String uri);
 
@@ -82,16 +82,16 @@
             //Return any non-stream Sources and let the ImageLoaders deal with them
             return source;
         }
-        
+
         ImageSource imageSource = null;
-        
+
         String resolvedURI = source.getSystemId();
         URL url;
         try {
             url = new URL(resolvedURI);
         } catch (MalformedURLException e) {
             url = null;
-        } 
+        }
         File f = /*FileUtils.*/toFile(url);
         if (f != null) {
             boolean directFileAccess = true;
@@ -121,7 +121,7 @@
                     return null;
                 }
             }
-            
+
             if (directFileAccess) {
                 //Close as the file is reopened in a more optimal way
                 IOUtils.closeQuietly(in);
@@ -147,7 +147,7 @@
                 }
             }
         }
-        
+
         if (imageSource == null) {
             if (ImageUtil.hasReader(source) && !ImageUtil.hasInputStream(source)) {
                 //We don't handle Reader instances here so return the Source unchanged
@@ -159,7 +159,7 @@
                 try {
                     in = url.openStream();
                 } catch (Exception ex) {
-                    log.error("Unable to obtain stream from system identifier '" 
+                    log.error("Unable to obtain stream from system identifier '"
                         + source.getSystemId() + "'");
                 }
             }
@@ -182,7 +182,7 @@
         }
         return imageSource;
     }
-    
+
     /**
      * Convert from a <code>URL</code> to a <code>File</code>.
      * <p>
@@ -224,21 +224,21 @@
             return f;
         }
     }
-    
+
     private SoftMapCache sessionSources = new SoftMapCache(false); //no need for synchronization
-    
+
     /** {@inheritDoc} */
     public Source getSource(String uri) {
         return (Source)sessionSources.remove(uri);
     }
-    
+
     /** {@inheritDoc} */
     public Source needSource(String uri) throws FileNotFoundException {
         Source src = getSource(uri);
         if (src == null) {
             if (log.isDebugEnabled()) {
                 log.debug("Creating new Source for " + uri);
-                
+
             }
             src = newSource(uri);
             if (src == null) {
@@ -251,7 +251,7 @@
         }
         return src;
     }
-    
+
     /** {@inheritDoc} */
     public void returnSource(String uri, Source src) {
         //Safety check to make sure the Preloaders behave
@@ -264,7 +264,7 @@
             //Ignore exception
             ImageUtil.closeQuietly(src);
         }
-        
+
         if (isReusable(src)) {
             //Only return the Source if it's reusable
             log.debug("Returning Source for " + uri);
@@ -274,7 +274,7 @@
             ImageUtil.closeQuietly(src);
         }
     }
-    
+
     /**
      * Indicates whether a Source is reusable. A Source object is reusable if it's an
      * {@link ImageSource} (containing an {@link ImageInputStream}) or a {@link DOMSource}.

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/CompositeImageLoader.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/CompositeImageLoader.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/CompositeImageLoader.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/CompositeImageLoader.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 @@
     protected static Log log = LogFactory.getLog(CompositeImageLoader.class);
 
     private ImageLoader[] loaders;
-    
+
     /**
      * Main constructor.
      * @param loaders the contained image loaders
@@ -59,7 +59,7 @@
         }
         this.loaders = loaders;
     }
-    
+
     /** {@inheritDoc} */
     public ImageFlavor getTargetFlavor() {
         return loaders[0].getTargetFlavor();
@@ -74,7 +74,7 @@
             try {
                 Image img = loader.loadImage(info, hints, session);
                 if (img != null && firstException != null) {
-                    log.debug("First ImageLoader failed (" + firstException.getMessage() 
+                    log.debug("First ImageLoader failed (" + firstException.getMessage()
                             + "). Fallback was successful.");
                 }
                 return img;
@@ -99,5 +99,5 @@
         sb.append("]");
         return sb.toString();
     }
-    
+
 }

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/DefaultImageContext.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/DefaultImageContext.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/DefaultImageContext.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/DefaultImageContext.java Thu Mar  5 11:03:54 2009
@@ -31,7 +31,7 @@
 public class DefaultImageContext implements ImageContext {
 
     private final float sourceResolution;
-    
+
     /**
      * Main constructor.
      */
@@ -43,7 +43,7 @@
                     .getScreenResolution();
         }
     }
-    
+
     /** {@inheritDoc} */
     public float getSourceResolution() {
         return this.sourceResolution;

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/DefaultImageSessionContext.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/DefaultImageSessionContext.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/DefaultImageSessionContext.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/DefaultImageSessionContext.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.image.loader.impl;
 
 import java.io.File;
@@ -38,7 +38,7 @@
 
     private ImageContext context;
     private File baseDir;
-    
+
     /**
      * Main constructor.
      * @param context the parent image context
@@ -48,12 +48,12 @@
         this.context = context;
         this.baseDir = baseDir;
     }
-    
+
     /** {@inheritDoc} */
     public ImageContext getParentContext() {
         return this.context;
     }
-    
+
     /**
      * Returns the base directory for resolving relative filenames.
      * @return the base directory

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageBuffered.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageBuffered.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageBuffered.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageBuffered.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.
@@ -39,7 +39,7 @@
     public ImageBuffered(ImageInfo info, BufferedImage buffered, Color transparentColor) {
         super(info, buffered, transparentColor);
     }
-    
+
     /** {@inheritDoc} */
     public ImageFlavor getFlavor() {
         return ImageFlavor.BUFFERED_IMAGE;

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageConverterBitmap2G2D.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageConverterBitmap2G2D.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageConverterBitmap2G2D.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageConverterBitmap2G2D.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.image.loader.impl;
 
 import java.awt.Dimension;
@@ -62,9 +62,9 @@
                 }
                 g2d.drawRenderedImage(ri, at);
             }
-            
+
         };
-        
+
         ImageGraphics2D g2dImage = new ImageGraphics2D(src.getInfo(), painter);
         return g2dImage;
     }

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageConverterBuffered2Rendered.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageConverterBuffered2Rendered.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageConverterBuffered2Rendered.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageConverterBuffered2Rendered.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.image.loader.impl;
 
 import java.util.Map;
@@ -51,5 +51,5 @@
     public int getConversionPenalty() {
         return NO_CONVERSION_PENALTY;
     }
-    
+
 }

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageConverterRendered2PNG.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageConverterRendered2PNG.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageConverterRendered2PNG.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageConverterRendered2PNG.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.image.loader.impl;
 
 import java.io.IOException;

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageLoaderEPS.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageLoaderEPS.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageLoaderEPS.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageLoaderEPS.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 @@
      * Main constructor.
      */
     public ImageLoaderEPS() {
-    }        
+    }
 
     /** {@inheritDoc} */
     public ImageFlavor getTargetFlavor() {
@@ -63,13 +63,13 @@
 
         PreloaderEPS.EPSBinaryFileHeader binaryHeader;
         binaryHeader = (PreloaderEPS.EPSBinaryFileHeader)info.getCustomObjects().get(
-                PreloaderEPS.EPS_BINARY_HEADER); 
+                PreloaderEPS.EPS_BINARY_HEADER);
         if (binaryHeader != null) {
             //Binary EPS: just extract the EPS part
             in.skip(binaryHeader.getPSStart());
             in = new SubInputStream(in, binaryHeader.getPSLength(), true);
         }
-        
+
         ImageRawEPS epsImage = new ImageRawEPS(info, in);
         return epsImage;
     }

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageLoaderFactoryEPS.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageLoaderFactoryEPS.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageLoaderFactoryEPS.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageLoaderFactoryEPS.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,16 +30,16 @@
 
     private static final String[] MIMES = new String[] {
         MimeConstants.MIME_EPS};
-    
+
     private static final ImageFlavor[] FLAVORS = new ImageFlavor[] {
         ImageFlavor.RAW_EPS};
 
-    
+
     /** {@inheritDoc} */
     public String[] getSupportedMIMETypes() {
         return MIMES;
     }
-    
+
     /** {@inheritDoc} */
     public ImageFlavor[] getSupportedFlavors(String mime) {
         if (MimeConstants.MIME_EPS.equals(mime)) {
@@ -47,12 +47,12 @@
         }
         throw new IllegalArgumentException("Unsupported MIME type: " + mime);
     }
-    
+
     /** {@inheritDoc} */
     public ImageLoader newImageLoader(ImageFlavor targetFlavor) {
         return new ImageLoaderEPS();
     }
-    
+
     /** {@inheritDoc} */
     public int getUsagePenalty(String mime, ImageFlavor flavor) {
         return 0;

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageLoaderFactoryInternalTIFF.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageLoaderFactoryInternalTIFF.java?rev=750418&r1=750417&r2=750418&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageLoaderFactoryInternalTIFF.java (original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/ImageLoaderFactoryInternalTIFF.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,16 +30,16 @@
 
     private static final String[] MIMES = new String[] {
         MimeConstants.MIME_TIFF};
-    
+
     private static final ImageFlavor[] FLAVORS = new ImageFlavor[] {
         ImageFlavor.RENDERED_IMAGE};
 
-    
+
     /** {@inheritDoc} */
     public String[] getSupportedMIMETypes() {
         return MIMES;
     }
-    
+
     /** {@inheritDoc} */
     public ImageFlavor[] getSupportedFlavors(String mime) {
         if (MimeConstants.MIME_TIFF.equals(mime)) {
@@ -47,12 +47,12 @@
         }
         throw new IllegalArgumentException("Unsupported MIME type: " + mime);
     }
-    
+
     /** {@inheritDoc} */
     public ImageLoader newImageLoader(ImageFlavor targetFlavor) {
         return new ImageLoaderInternalTIFF();
     }
-    
+
     /** {@inheritDoc} */
     public int getUsagePenalty(String mime, ImageFlavor flavor) {
         return 10000; //Provide this only as a fallback



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


Mime
View raw message