Trailing spaces

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/compress/trunk@1307789 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/main/java/org/apache/commons/compress/archivers/ArchiveInputStream.java b/src/main/java/org/apache/commons/compress/archivers/ArchiveInputStream.java
index dae2396..fef3095 100644
--- a/src/main/java/org/apache/commons/compress/archivers/ArchiveInputStream.java
+++ b/src/main/java/org/apache/commons/compress/archivers/ArchiveInputStream.java
@@ -41,7 +41,7 @@
 
     private byte[] SINGLE = new byte[1];
     private static final int BYTE_MASK = 0xFF;
-    
+
     /** holds the number of bytes read in this stream */
     private long bytesRead = 0;
 
@@ -81,7 +81,7 @@
         int num = read(SINGLE, 0, 1);
         return num == -1 ? -1 : SINGLE[0] & BYTE_MASK;
     }
-    
+
     /**
      * Increments the counter of already read bytes.
      * Doesn't increment if the EOF has been hit (read == -1)
@@ -104,7 +104,7 @@
             bytesRead = bytesRead + read;
         }
     }
-    
+
     /**
      * Decrements the counter of already read bytes.
      * 
@@ -114,7 +114,7 @@
     protected void pushedBackBytes(long pushedBack) {
         bytesRead -= pushedBack;
     }
-    
+
     /**
      * Returns the current number of bytes read from this stream.
      * @return the number of read bytes
diff --git a/src/main/java/org/apache/commons/compress/archivers/ArchiveOutputStream.java b/src/main/java/org/apache/commons/compress/archivers/ArchiveOutputStream.java
index acb3a64..a03b01b 100644
--- a/src/main/java/org/apache/commons/compress/archivers/ArchiveOutputStream.java
+++ b/src/main/java/org/apache/commons/compress/archivers/ArchiveOutputStream.java
@@ -47,7 +47,7 @@
  * </p>
  */
 public abstract class ArchiveOutputStream extends OutputStream {
-    
+
     /** Temporary buffer used for the {@link #write(int)} method */
     private final byte[] oneByte = new byte[1];
     static final int BYTE_MASK = 0xFF;
@@ -55,7 +55,7 @@
     /** holds the number of bytes written to this stream */
     private long bytesWritten = 0;
     // Methods specific to ArchiveOutputStream
-    
+
     /**
      * Writes the headers for an archive entry to the output stream.
      * The caller must then write the content to the stream and call
@@ -72,7 +72,7 @@
      * @throws IOException
      */
     public abstract void closeArchiveEntry() throws IOException;
-    
+
     /**
      * Finishes the addition of entries to this stream, without closing it.
      * Additional data can be written, if the format supports it.
@@ -93,9 +93,9 @@
      * @throws IOException
      */
     public abstract ArchiveEntry createArchiveEntry(File inputFile, String entryName) throws IOException;
-    
+
     // Generic implementations of OutputStream methods that may be useful to sub-classes
-    
+
     /**
      * Writes a byte to the current archive entry.
      *
@@ -135,7 +135,7 @@
             bytesWritten = bytesWritten + written;
         }
     }
-    
+
     /**
      * Returns the current number of bytes written to this stream.
      * @return the number of written bytes
diff --git a/src/main/java/org/apache/commons/compress/archivers/ArchiveStreamFactory.java b/src/main/java/org/apache/commons/compress/archivers/ArchiveStreamFactory.java
index 7cfec8f..9ba4210 100644
--- a/src/main/java/org/apache/commons/compress/archivers/ArchiveStreamFactory.java
+++ b/src/main/java/org/apache/commons/compress/archivers/ArchiveStreamFactory.java
@@ -116,11 +116,11 @@
     public ArchiveInputStream createArchiveInputStream(
             final String archiverName, final InputStream in)
             throws ArchiveException {
-        
+
         if (archiverName == null) {
             throw new IllegalArgumentException("Archivername must not be null.");
         }
-        
+
         if (in == null) {
             throw new IllegalArgumentException("InputStream must not be null.");
         }
@@ -143,7 +143,7 @@
         if (DUMP.equalsIgnoreCase(archiverName)) {
             return new DumpArchiveInputStream(in);
         }
-        
+
         throw new ArchiveException("Archiver: " + archiverName + " not found.");
     }
 
diff --git a/src/main/java/org/apache/commons/compress/archivers/Lister.java b/src/main/java/org/apache/commons/compress/archivers/Lister.java
index 2f05097..c7e0220 100644
--- a/src/main/java/org/apache/commons/compress/archivers/Lister.java
+++ b/src/main/java/org/apache/commons/compress/archivers/Lister.java
@@ -33,7 +33,7 @@
  */
 public final class Lister {
     private static final ArchiveStreamFactory factory = new ArchiveStreamFactory();
-    
+
     public static void main(String[] args) throws Exception {
         if (args.length == 0) {
             usage();
@@ -62,7 +62,6 @@
 
     private static void usage() {
         System.out.println("Parameters: archive-name [archive-type]");
-        
     }
 
 }
\ No newline at end of file
diff --git a/src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveInputStream.java b/src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveInputStream.java
index 1d7ba71..41b3433 100644
--- a/src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveInputStream.java
+++ b/src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveInputStream.java
@@ -363,7 +363,7 @@
         ret.setInode(readBinaryLong(2, swapHalfWord));
         final long mode = readBinaryLong(2, swapHalfWord);
         if (mode != 0){
-            ret.setMode(mode);            
+            ret.setMode(mode);
         }
         ret.setUID(readBinaryLong(2, swapHalfWord));
         ret.setGID(readBinaryLong(2, swapHalfWord));
@@ -433,7 +433,7 @@
      * Checks if the signature matches one of the following magic values:
      * 
      * Strings:
-     *  
+     *
      * "070701" - MAGIC_NEW
      * "070702" - MAGIC_NEW_CRC
      * "070707" - MAGIC_OLD_ASCII
@@ -446,7 +446,7 @@
         if (length < 6) {
             return false;
         }
-        
+
         // Check binary values
         if (signature[0] == 0x71 && (signature[1] & 0xFF) == 0xc7) {
             return true;
diff --git a/src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveOutputStream.java b/src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveOutputStream.java
index 9f85786..239aced 100644
--- a/src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveOutputStream.java
+++ b/src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveOutputStream.java
@@ -108,7 +108,7 @@
      *            The format of the stream
      * @param blockSize
      *            The block size of the archive.
-     *            
+     * 
      * @since Apache Commons Compress 1.1
      */
     public CpioArchiveOutputStream(final OutputStream out, final short format,
diff --git a/src/main/java/org/apache/commons/compress/archivers/cpio/CpioConstants.java b/src/main/java/org/apache/commons/compress/archivers/cpio/CpioConstants.java
index 0f4b2f2..98fa12a 100644
--- a/src/main/java/org/apache/commons/compress/archivers/cpio/CpioConstants.java
+++ b/src/main/java/org/apache/commons/compress/archivers/cpio/CpioConstants.java
@@ -38,7 +38,7 @@
     final int MAGIC_OLD_BINARY = 070707;
 
     // These FORMAT_ constants are internal to the code
-    
+
     /** write/read a CPIOArchiveEntry in the new format */
     final short FORMAT_NEW = 1;
 
@@ -60,7 +60,7 @@
     /*
      * Constants for the MODE bits
      */
-    
+
     /** Mask for all file type bits. */
     final int S_IFMT   = 0170000;
 
@@ -130,7 +130,6 @@
 
     /** Permits others to execute the file or to search the directory */
     final int C_IXOTH  = 0000001;
-    
 
     /** The special trailer marker */
     final String CPIO_TRAILER = "TRAILER!!!";
diff --git a/src/main/java/org/apache/commons/compress/archivers/cpio/CpioUtil.java b/src/main/java/org/apache/commons/compress/archivers/cpio/CpioUtil.java
index facc559..e214826 100644
--- a/src/main/java/org/apache/commons/compress/archivers/cpio/CpioUtil.java
+++ b/src/main/java/org/apache/commons/compress/archivers/cpio/CpioUtil.java
@@ -68,7 +68,7 @@
      * 
      * @param number 
      *            the input long number to be converted
-     *            
+     * 
      * @param length
      *            The length of the returned array
      * @param swapHalfWord
diff --git a/src/main/java/org/apache/commons/compress/archivers/dump/DumpArchiveConstants.java b/src/main/java/org/apache/commons/compress/archivers/dump/DumpArchiveConstants.java
index 26c8d97..87ca8d9 100644
--- a/src/main/java/org/apache/commons/compress/archivers/dump/DumpArchiveConstants.java
+++ b/src/main/java/org/apache/commons/compress/archivers/dump/DumpArchiveConstants.java
@@ -46,7 +46,7 @@
         ADDR(4),
         END(5),
         CLRI(6);
-   
+
         int code;
 
         private SEGMENT_TYPE(int code) {
diff --git a/src/main/java/org/apache/commons/compress/archivers/dump/DumpArchiveEntry.java b/src/main/java/org/apache/commons/compress/archivers/dump/DumpArchiveEntry.java
index 2deb670..eabe73c 100644
--- a/src/main/java/org/apache/commons/compress/archivers/dump/DumpArchiveEntry.java
+++ b/src/main/java/org/apache/commons/compress/archivers/dump/DumpArchiveEntry.java
@@ -768,7 +768,7 @@
             return type;
         }
     }
-    
+
     public enum PERMISSION {
         SETUID(04000),
         SETGUI(02000),
diff --git a/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveOutputStream.java b/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveOutputStream.java
index 7b12357..2ee5544 100644
--- a/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveOutputStream.java
+++ b/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveOutputStream.java
@@ -72,10 +72,10 @@
 
     /** Indicates if putArchiveEntry has been called without closeArchiveEntry */
     private boolean haveUnclosedEntry = false;
-    
+
     /** indicates if this archive is finished */
     private boolean finished = false;
-    
+
     private final OutputStream out;
 
     private final ZipEncoding encoding;
@@ -208,7 +208,7 @@
         if (finished) {
             throw new IOException("This archive has already been finished");
         }
-        
+
         if(haveUnclosedEntry) {
             throw new IOException("This archives contains unclosed entries.");
         }
@@ -227,7 +227,7 @@
         if(!finished) {
             finish();
         }
-        
+
         if (!closed) {
             buffer.close();
             out.close();
diff --git a/src/main/java/org/apache/commons/compress/archivers/tar/TarBuffer.java b/src/main/java/org/apache/commons/compress/archivers/tar/TarBuffer.java
index 859fb02..a2d0a9a 100644
--- a/src/main/java/org/apache/commons/compress/archivers/tar/TarBuffer.java
+++ b/src/main/java/org/apache/commons/compress/archivers/tar/TarBuffer.java
@@ -54,7 +54,7 @@
 
     private int             currBlkIdx;
     private int             currRecIdx;
-    
+
     /**
      * Constructor for a TarBuffer on an input stream.
      * @param inStream the input stream to use
@@ -114,7 +114,7 @@
      */
     private TarBuffer(InputStream inStream, OutputStream outStream, int blockSize, int recordSize) {
         this.inStream = inStream;
-        this.outStream = outStream;        
+        this.outStream = outStream;
         this.blockSize = blockSize;
         this.recordSize = recordSize;
         this.recsPerBlock = (this.blockSize / this.recordSize);
diff --git a/src/main/java/org/apache/commons/compress/archivers/tar/TarConstants.java b/src/main/java/org/apache/commons/compress/archivers/tar/TarConstants.java
index ad84490..e83b8c6 100644
--- a/src/main/java/org/apache/commons/compress/archivers/tar/TarConstants.java
+++ b/src/main/java/org/apache/commons/compress/archivers/tar/TarConstants.java
@@ -252,14 +252,14 @@
      * @since Apache Commons Compress 1.1
      */
     byte LF_PAX_EXTENDED_HEADER_UC = (byte) 'X';
-    
+
     /**
      * Identifies the entry as a Pax global extended header.
      *
      * @since Apache Commons Compress 1.1
      */
     byte LF_PAX_GLOBAL_EXTENDED_HEADER = (byte) 'g';
-    
+
     /**
      * The magic tag representing a POSIX tar archive.
      */
@@ -280,7 +280,7 @@
      * @since Apache Commons Compress 1.1
      */
     String MAGIC_ANT = "ustar\0";
-    
+
     /**
      * The "version" representing an Ant tar archive.
      *
diff --git a/src/main/java/org/apache/commons/compress/archivers/tar/TarUtils.java b/src/main/java/org/apache/commons/compress/archivers/tar/TarUtils.java
index 13f7b6c..6cff3d5 100644
--- a/src/main/java/org/apache/commons/compress/archivers/tar/TarUtils.java
+++ b/src/main/java/org/apache/commons/compress/archivers/tar/TarUtils.java
@@ -72,7 +72,7 @@
         };
 
     /** Private constructor to prevent instantiation of this utility class. */
-    private TarUtils(){    
+    private TarUtils(){
     }
 
     /**
@@ -437,7 +437,7 @@
     public static int formatLongOctalBytes(final long value, byte[] buf, final int offset, final int length) {
 
         int idx=length-1; // For space
-        
+
         formatUnsignedOctalString(value, buf, offset, idx);
         buf[offset + idx] = (byte) ' '; // Trailing space
 
diff --git a/src/main/java/org/apache/commons/compress/archivers/zip/UnsupportedZipFeatureException.java b/src/main/java/org/apache/commons/compress/archivers/zip/UnsupportedZipFeatureException.java
index bc25fcd..c66abbe 100644
--- a/src/main/java/org/apache/commons/compress/archivers/zip/UnsupportedZipFeatureException.java
+++ b/src/main/java/org/apache/commons/compress/archivers/zip/UnsupportedZipFeatureException.java
@@ -75,7 +75,7 @@
          * The entry uses a data descriptor.
          */
         public static final Feature DATA_DESCRIPTOR = new Feature("data descriptor");
-        
+
         private final String name;
 
         private Feature(String name) {
diff --git a/src/main/java/org/apache/commons/compress/changes/ChangeSet.java b/src/main/java/org/apache/commons/compress/changes/ChangeSet.java
index eb4996a..31155f6 100644
--- a/src/main/java/org/apache/commons/compress/changes/ChangeSet.java
+++ b/src/main/java/org/apache/commons/compress/changes/ChangeSet.java
@@ -55,7 +55,7 @@
     public void deleteDir(final String dirName) {
         addDeletion(new Change(dirName, Change.TYPE_DELETE_DIR));
     }
-    
+
     /**
      * Adds a new archive entry to the archive.
      * 
@@ -67,7 +67,7 @@
     public void add(final ArchiveEntry pEntry, final InputStream pInput) {
         this.add(pEntry, pInput, true);
     }
-    
+
     /**
      * Adds a new archive entry to the archive.
      * If replace is set to true, this change will replace all other additions
@@ -78,7 +78,7 @@
      * @param pInput
      *            the datastream to add
      * @param replace
-     *            indicates the this change should replace existing entries            
+     *            indicates the this change should replace existing entries
      */
     public void add(final ArchiveEntry pEntry, final InputStream pInput, final boolean replace) {
         addAddition(new Change(pEntry, pInput, replace));
@@ -91,7 +91,7 @@
      *            the change which should result in an addition
      */
     private void addAddition(Change pChange) {
-        if (Change.TYPE_ADD != pChange.type() ||    
+        if (Change.TYPE_ADD != pChange.type() ||
             pChange.getInput() == null) {
             return;
         }
@@ -118,7 +118,7 @@
         }
         changes.add(pChange);
     }
-    
+
     /**
      * Adds an delete change.
      * 
@@ -127,7 +127,7 @@
      */
     private void addDeletion(Change pChange) {
         if ((Change.TYPE_DELETE != pChange.type() &&
-            Change.TYPE_DELETE_DIR != pChange.type()) ||    
+            Change.TYPE_DELETE_DIR != pChange.type()) ||
             pChange.targetFile() == null) {
             return;
         }
diff --git a/src/main/java/org/apache/commons/compress/changes/ChangeSetPerformer.java b/src/main/java/org/apache/commons/compress/changes/ChangeSetPerformer.java
index 5045fd1..3c12edc 100644
--- a/src/main/java/org/apache/commons/compress/changes/ChangeSetPerformer.java
+++ b/src/main/java/org/apache/commons/compress/changes/ChangeSetPerformer.java
@@ -40,7 +40,7 @@
  */
 public class ChangeSetPerformer {
     private final Set<Change> changes;
-    
+
     /**
      * Constructs a ChangeSetPerformer with the changes from this ChangeSet
      * @param changeSet the ChangeSet which operations are used for performing
@@ -48,7 +48,7 @@
     public ChangeSetPerformer(final ChangeSet changeSet) {
         changes = changeSet.getChanges();
     }
-    
+
     /**
      * Performs all changes collected in this ChangeSet on the input stream and
      * streams the result to the output stream. Perform may be called more than once.
@@ -67,9 +67,9 @@
     public ChangeSetResults perform(ArchiveInputStream in, ArchiveOutputStream out)
             throws IOException {
         ChangeSetResults results = new ChangeSetResults();
-        
+
         Set<Change> workingSet = new LinkedHashSet<Change>(changes);
-        
+
         for (Iterator<Change> it = workingSet.iterator(); it.hasNext();) {
             Change change = it.next();
 
@@ -113,7 +113,7 @@
                 results.addedFromStream(entry.getName());
             }
         }
-        
+
         // Adds files which hasn't been added from the original and do not have replace mode on
         for (Iterator<Change> it = workingSet.iterator(); it.hasNext();) {
             Change change = it.next();
diff --git a/src/main/java/org/apache/commons/compress/changes/ChangeSetResults.java b/src/main/java/org/apache/commons/compress/changes/ChangeSetResults.java
index ac824cb..d4f4cc2 100644
--- a/src/main/java/org/apache/commons/compress/changes/ChangeSetResults.java
+++ b/src/main/java/org/apache/commons/compress/changes/ChangeSetResults.java
@@ -28,7 +28,7 @@
     private final List<String> addedFromChangeSet = new ArrayList<String>();
     private final List<String> addedFromStream = new ArrayList<String>();
     private final List<String> deleted = new ArrayList<String>();
-    
+
     /**
      * Adds the filename of a recently deleted file to the result list.
      * @param fileName the file which has been deleted
@@ -36,7 +36,7 @@
     void deleted(String fileName) {
         deleted.add(fileName);
     }
-    
+
     /**
      * Adds the name of a file to the result list which has been 
      * copied from the source stream to the target stream.
@@ -45,7 +45,7 @@
     void addedFromStream(String fileName) {
         addedFromStream.add(fileName);
     }
-    
+
     /**
      * Adds the name of a file to the result list which has been
      * copied from the changeset to the target stream
@@ -78,7 +78,7 @@
     public List<String> getDeleted() {
         return deleted;
     }
-    
+
     /**
      * Checks if an filename already has been added to the result list
      * @param filename the filename to check
diff --git a/src/main/java/org/apache/commons/compress/compressors/CompressorInputStream.java b/src/main/java/org/apache/commons/compress/compressors/CompressorInputStream.java
index 073a098..91f2711 100644
--- a/src/main/java/org/apache/commons/compress/compressors/CompressorInputStream.java
+++ b/src/main/java/org/apache/commons/compress/compressors/CompressorInputStream.java
@@ -22,7 +22,7 @@
 
 public abstract class CompressorInputStream extends InputStream {
     private long bytesRead = 0;
-    
+
     /**
      * Increments the counter of already read bytes.
      * Doesn't increment if the EOF has been hit (read == -1)
@@ -34,7 +34,7 @@
     protected void count(int read) {
         count((long) read);
     }
-    
+
     /**
      * Increments the counter of already read bytes.
      * Doesn't increment if the EOF has been hit (read == -1)
diff --git a/src/main/java/org/apache/commons/compress/compressors/FileNameUtil.java b/src/main/java/org/apache/commons/compress/compressors/FileNameUtil.java
index 72e5a30..228eb53 100644
--- a/src/main/java/org/apache/commons/compress/compressors/FileNameUtil.java
+++ b/src/main/java/org/apache/commons/compress/compressors/FileNameUtil.java
@@ -35,7 +35,7 @@
      * versions of those file types. For example: from ".tar" to ".tgz".
      */
     private final Map<String, String> compressSuffix =
-        new HashMap<String, String>();        
+        new HashMap<String, String>();
 
     /**
      * Map from common filename suffixes of compressed files to the
diff --git a/src/main/java/org/apache/commons/compress/compressors/bzip2/BZip2CompressorInputStream.java b/src/main/java/org/apache/commons/compress/compressors/bzip2/BZip2CompressorInputStream.java
index a4ab7d1..e17644c 100644
--- a/src/main/java/org/apache/commons/compress/compressors/bzip2/BZip2CompressorInputStream.java
+++ b/src/main/java/org/apache/commons/compress/compressors/bzip2/BZip2CompressorInputStream.java
@@ -1035,7 +1035,7 @@
         if (length < 3) {
             return false;
         }
-        
+
         if (signature[0] != 'B') {
             return false;
         }
@@ -1047,7 +1047,7 @@
         if (signature[2] != 'h') {
             return false;
         }
-        
+
         return true;
     }
 }
diff --git a/src/main/java/org/apache/commons/compress/utils/ArchiveUtils.java b/src/main/java/org/apache/commons/compress/utils/ArchiveUtils.java
index e3c8c40..fc84a4b 100644
--- a/src/main/java/org/apache/commons/compress/utils/ArchiveUtils.java
+++ b/src/main/java/org/apache/commons/compress/utils/ArchiveUtils.java
@@ -26,9 +26,9 @@
  * Generic Archive utilities
  */
 public class ArchiveUtils {
-    
+
     /** Private constructor to prevent instantiation of this utility class. */
-    private ArchiveUtils(){    
+    private ArchiveUtils(){
     }
 
     /**
@@ -73,7 +73,7 @@
         }
         return isEqual(buffer1, 0, buffer1.length, buffer, offset, length, false);
     }
-    
+
     /**
      * Check if buffer contents matches Ascii String.
      * 
@@ -84,7 +84,7 @@
     public static boolean matchAsciiBuffer(String expected, byte[] buffer){
         return matchAsciiBuffer(expected, buffer, 0, buffer.length);
     }
-    
+
     /**
      * Convert a string to Ascii bytes.
      * Used for comparing "magic" strings which need to be independent of the default Locale.
@@ -167,13 +167,13 @@
                     if (buffer2[offset2+i] != 0){
                         return false;
                     }
-                }                
+                }
             }
             return true;
         }
         return false;
     }
-    
+
     /**
      * Compare byte buffers
      * 
@@ -190,7 +190,7 @@
             final byte[] buffer2, final int offset2, final int length2){
         return isEqual(buffer1, offset1, length1, buffer2, offset2, length2, false);
     }
-    
+
     /**
      * Compare byte buffers
      * 
@@ -201,7 +201,7 @@
     public static boolean isEqual(final byte[] buffer1, final byte[] buffer2 ){
         return isEqual(buffer1, 0, buffer1.length, buffer2, 0, buffer2.length, false);
     }
-    
+
     /**
      * Compare byte buffers, optionally ignoring trailing nulls
      * 
@@ -213,7 +213,7 @@
     public static boolean isEqual(final byte[] buffer1, final byte[] buffer2, boolean ignoreTrailingNulls){
         return isEqual(buffer1, 0, buffer1.length, buffer2, 0, buffer2.length, ignoreTrailingNulls);
     }
-    
+
     /**
      * Compare byte buffers, ignoring trailing nulls
      * 
@@ -230,5 +230,5 @@
             final byte[] buffer2, final int offset2, final int length2){
         return isEqual(buffer1, offset1, length1, buffer2, offset2, length2, true);
     }
-    
+
 }
diff --git a/src/main/java/org/apache/commons/compress/utils/CountingInputStream.java b/src/main/java/org/apache/commons/compress/utils/CountingInputStream.java
index 09e96be..ce42aae 100644
--- a/src/main/java/org/apache/commons/compress/utils/CountingInputStream.java
+++ b/src/main/java/org/apache/commons/compress/utils/CountingInputStream.java
@@ -65,7 +65,7 @@
             bytesRead += read;
         }
     }
-    
+
     /**
      * Returns the current number of bytes read from this stream.
      * @return the number of read bytes
diff --git a/src/main/java/org/apache/commons/compress/utils/CountingOutputStream.java b/src/main/java/org/apache/commons/compress/utils/CountingOutputStream.java
index f886d48..8713ca4 100644
--- a/src/main/java/org/apache/commons/compress/utils/CountingOutputStream.java
+++ b/src/main/java/org/apache/commons/compress/utils/CountingOutputStream.java
@@ -60,7 +60,7 @@
             bytesWritten += written;
         }
     }
-    
+
     /**
      * Returns the current number of bytes written to this stream.
      * @return the number of written bytes
diff --git a/src/test/java/org/apache/commons/compress/AbstractTestCase.java b/src/test/java/org/apache/commons/compress/AbstractTestCase.java
index 8d2e078..2bc3fdc 100644
--- a/src/test/java/org/apache/commons/compress/AbstractTestCase.java
+++ b/src/test/java/org/apache/commons/compress/AbstractTestCase.java
@@ -46,7 +46,7 @@
 
     private File archive; // used to delete the archive in tearDown
     protected List<String> archiveList; // Lists the content of the archive as originally created
-    
+
     protected ArchiveStreamFactory factory = new ArchiveStreamFactory();
 
     public AbstractTestCase() {
@@ -300,7 +300,7 @@
             throws Exception {
         checkArchiveContent(in, expected, true);
     }
-    
+
     /**
      * Checks that an archive input stream can be read, and that the file data matches file sizes.
      * 
@@ -330,7 +330,7 @@
                         copied=IOUtils.copy(in, out);
                     } finally {
                         out.close();
-                    }                    
+                    }
                 }
                 final long size = entry.getSize();
                 if (size != ArchiveEntry.SIZE_UNKNOWN) {
@@ -389,6 +389,6 @@
             return new File[] {tmpDir, tmpFile};
         } finally {
             fos.close();
-        }            
+        }
     }
 }
diff --git a/src/test/java/org/apache/commons/compress/ArchiveReadTests.java b/src/test/java/org/apache/commons/compress/ArchiveReadTests.java
index c836b5c..75a49d5 100644
--- a/src/test/java/org/apache/commons/compress/ArchiveReadTests.java
+++ b/src/test/java/org/apache/commons/compress/ArchiveReadTests.java
@@ -42,21 +42,21 @@
  * as JUnit does not allow one to change the display name of a test.
  */
 public class ArchiveReadTests extends AbstractTestCase {
-    
+
     final static ClassLoader classLoader = ArchiveReadTests.class.getClassLoader();
 
     private File file;
     private static final ArrayList<String> fileList = new ArrayList<String>();
-    
+
     public ArchiveReadTests(String name) {
         super(name);
     }
-    
+
     private ArchiveReadTests(String name, File file){
         super(name);
         this.file = file;
     }
-    
+
     public static TestSuite suite() throws IOException{
         TestSuite suite = new TestSuite("ArchiveReadTests");
         File arcdir =new File(classLoader.getResource("archives").getFile());
@@ -83,10 +83,10 @@
             Test test = new ArchiveReadTests("testArchive", file);
             namedSuite.addTest(test);
             suite.addTest(namedSuite);
-        }        
+        }
         return suite;
     }
-    
+
     // files.txt contains size and filename
     @Override
     protected String getExpectedString(ArchiveEntry entry) {
diff --git a/src/test/java/org/apache/commons/compress/ArchiveUtilsTest.java b/src/test/java/org/apache/commons/compress/ArchiveUtilsTest.java
index 3d03a18..abc663d 100644
--- a/src/test/java/org/apache/commons/compress/ArchiveUtilsTest.java
+++ b/src/test/java/org/apache/commons/compress/ArchiveUtilsTest.java
@@ -44,16 +44,16 @@
         assertTrue(ArchiveUtils.isEqual(buffer1, buffer3));
         assertTrue(ArchiveUtils.isEqual(buffer3, buffer1));
     }
-    
+
     public void testCompareAscii(){
         byte[] buffer1 = {'a','b','c'};
         byte[] buffer2 = {'d','e','f',0};
         assertTrue(ArchiveUtils.matchAsciiBuffer("abc", buffer1));
         assertFalse(ArchiveUtils.matchAsciiBuffer("abc\0", buffer1));
-        assertTrue(ArchiveUtils.matchAsciiBuffer("def\0", buffer2));        
+        assertTrue(ArchiveUtils.matchAsciiBuffer("def\0", buffer2));
         assertFalse(ArchiveUtils.matchAsciiBuffer("def", buffer2));
     }
-    
+
     public void testAsciiConversions() {
         asciiToByteAndBackOK("");
         asciiToByteAndBackOK("abcd");
diff --git a/src/test/java/org/apache/commons/compress/DetectArchiverTestCase.java b/src/test/java/org/apache/commons/compress/DetectArchiverTestCase.java
index 14bc271..6de6f8f 100644
--- a/src/test/java/org/apache/commons/compress/DetectArchiverTestCase.java
+++ b/src/test/java/org/apache/commons/compress/DetectArchiverTestCase.java
@@ -75,7 +75,7 @@
         assertNotNull(cpio);
         assertTrue(cpio instanceof CpioArchiveInputStream);
 
-// Not yet implemented        
+// Not yet implemented
 //        final ArchiveInputStream tgz = getStreamFor("bla.tgz");
 //        assertNotNull(tgz);
 //        assertTrue(tgz instanceof TarArchiveInputStream);
@@ -90,9 +90,9 @@
                    new BufferedInputStream(new FileInputStream(
                        new File(rsc.getFile()))));
     }
-    
+
     // Check that the empty archives created by the code are readable
-    
+
     // Not possible to detect empty "ar" archive as it is completely empty
 //    public void testEmptyArArchive() throws Exception {
 //        emptyArchive("ar");
diff --git a/src/test/java/org/apache/commons/compress/DetectCompressorTestCase.java b/src/test/java/org/apache/commons/compress/DetectCompressorTestCase.java
index 87ab57c..ffeba44 100644
--- a/src/test/java/org/apache/commons/compress/DetectCompressorTestCase.java
+++ b/src/test/java/org/apache/commons/compress/DetectCompressorTestCase.java
@@ -62,5 +62,5 @@
                    new BufferedInputStream(new FileInputStream(
                        new File(rsc.getFile()))));
     }
-    
+
 }
diff --git a/src/test/java/org/apache/commons/compress/IOMethodsTest.java b/src/test/java/org/apache/commons/compress/IOMethodsTest.java
index eabf80d..f161f9d 100644
--- a/src/test/java/org/apache/commons/compress/IOMethodsTest.java
+++ b/src/test/java/org/apache/commons/compress/IOMethodsTest.java
@@ -48,7 +48,7 @@
             i += 2;
         }
     }
-    
+
     public void testWriteAr() throws Exception {
         ArchiveEntry entry = new ArArchiveEntry("dummy", bytesToTest);
         compareWrites("ar", entry);
@@ -102,7 +102,7 @@
         ArchiveOutputStream aos3 = factory.createArchiveOutputStream(archiverName, out3);
         aos3.putArchiveEntry(entry);
         for (int i=0; i<byteTest.length; i++){
-            aos1.write(byteTest[i]);            
+            aos1.write(byteTest[i]);
         }
         aos1.closeArchiveEntry();
         aos1.close();
@@ -110,32 +110,32 @@
         aos2.write(byteTest);
         aos2.closeArchiveEntry();
         aos2.close();
-        
+
         aos3.write(byteTest, 0, byteTest.length);
         aos3.closeArchiveEntry();
         aos3.close();
         assertEquals("out1!=out2",out1.toString(),out2.toString());
         assertEquals("out1!=out3",out1.toString(),out3.toString());
     }
-    
+
     private void compareReads(String archiverName) throws Exception {
         OutputStream out1 = new ByteArrayOutputStream();
         OutputStream out2 = new ByteArrayOutputStream();
         OutputStream out3 = new ByteArrayOutputStream();
         File file = createSingleEntryArchive(archiverName);
         file.deleteOnExit();
-        
+
         InputStream is1 = new FileInputStream(file);
         ArchiveInputStream ais1 = factory.createArchiveInputStream(archiverName, is1);
         final ArchiveEntry nextEntry = ais1.getNextEntry();
         assertNotNull(nextEntry);
-        
+
         byte [] buff = new byte[10]; // small so multiple reads are needed;
         long size = nextEntry.getSize();
         if (size != ArchiveEntry.SIZE_UNKNOWN) {
             assertTrue("Size should be > 0, found: "+size, size > 0);
         }
-        
+
         InputStream is2 = new FileInputStream(file);
         ArchiveInputStream ais2 = factory.createArchiveInputStream(archiverName, is2);
         final ArchiveEntry nextEntry2 = ais2.getNextEntry();
@@ -159,7 +159,7 @@
             out2.write(buff, 0, bytes);
         }
         ais2.close();
-        
+
         while((bytes=ais3.read(buff, 0 , buff.length)) > 0){
             out3.write(buff, 0, bytes);
         }
diff --git a/src/test/java/org/apache/commons/compress/archivers/ArchiveOutputStreamTest.java b/src/test/java/org/apache/commons/compress/archivers/ArchiveOutputStreamTest.java
index 744d529..42da535 100644
--- a/src/test/java/org/apache/commons/compress/archivers/ArchiveOutputStreamTest.java
+++ b/src/test/java/org/apache/commons/compress/archivers/ArchiveOutputStreamTest.java
@@ -47,7 +47,7 @@
 
     public void testFinish() throws Exception {
         OutputStream out1 = new ByteArrayOutputStream();
-        
+
         ArchiveOutputStream aos1 = factory.createArchiveOutputStream("zip", out1);
         aos1.putArchiveEntry(new ZipArchiveEntry("dummy"));
         try {
@@ -56,7 +56,7 @@
         } catch (IOException io) {
             // Exception expected
         }
-        
+
         aos1 = factory.createArchiveOutputStream("jar", out1);
         aos1.putArchiveEntry(new JarArchiveEntry("dummy"));
         try {
@@ -65,7 +65,7 @@
         } catch (IOException io) {
             // Exception expected
         }
-        
+
         aos1 = factory.createArchiveOutputStream("ar", out1);
         aos1.putArchiveEntry(new ArArchiveEntry("dummy", 100));
         try {
@@ -74,7 +74,7 @@
         } catch (IOException io) {
             // Exception expected
         }
-        
+
         aos1 = factory.createArchiveOutputStream("cpio", out1);
         aos1.putArchiveEntry(new CpioArchiveEntry("dummy"));
         try {
@@ -83,7 +83,7 @@
         } catch (IOException io) {
             // Exception expected
         }
-        
+
         aos1 = factory.createArchiveOutputStream("tar", out1);
         aos1.putArchiveEntry(new TarArchiveEntry("dummy"));
         try {
@@ -96,12 +96,12 @@
 
     public void testOptionalFinish() throws Exception {
         OutputStream out1 = new ByteArrayOutputStream();
-        
+
         ArchiveOutputStream aos1 = factory.createArchiveOutputStream("zip", out1);
         aos1.putArchiveEntry(new ZipArchiveEntry("dummy"));
         aos1.closeArchiveEntry();
         aos1.close();
-        
+
         aos1 = factory.createArchiveOutputStream("jar", out1);
         aos1.putArchiveEntry(new JarArchiveEntry("dummy"));
         aos1.closeArchiveEntry();
@@ -113,7 +113,7 @@
             // Exception expected
         }
     }
-    
+
     public void testCallSequenceAr() throws Exception{
         doCallSequence("Ar");
     }
@@ -137,7 +137,7 @@
     private void doCallSequence(String archiveType) throws Exception {
         OutputStream out1 = new ByteArrayOutputStream();
         File dummy = getFile("test1.xml"); // need a real file
-        
+
         ArchiveOutputStream aos1;
         aos1 = factory.createArchiveOutputStream(archiveType, out1);
         aos1.putArchiveEntry(aos1.createArchiveEntry(dummy, "dummy"));
@@ -148,7 +148,7 @@
         aos1.close(); // omitted finish
 
         // TODO - check if archives ensure that data has been written to the stream?
-        
+
         aos1 = factory.createArchiveOutputStream(archiveType, out1);
         try {
             aos1.closeArchiveEntry();
@@ -162,7 +162,7 @@
         is.close();
 
         // TODO check if second putArchiveEntry() can follow without closeAE?
-        
+
         try {
             aos1.finish();
             fail("Should have raised IOException - finish() called before closeArchiveEntry()");
diff --git a/src/test/java/org/apache/commons/compress/archivers/CpioTestCase.java b/src/test/java/org/apache/commons/compress/archivers/CpioTestCase.java
index 23ee488..5e5c96e 100644
--- a/src/test/java/org/apache/commons/compress/archivers/CpioTestCase.java
+++ b/src/test/java/org/apache/commons/compress/archivers/CpioTestCase.java
@@ -61,7 +61,7 @@
         final File file2 = getFile("test2.xml");
         final long file1Length = file1.length();
         final long file2Length = file2.length();
-        
+
         {
             final OutputStream out = new FileOutputStream(output);
             final ArchiveOutputStream os = new ArchiveStreamFactory().createArchiveOutputStream("cpio", out);
diff --git a/src/test/java/org/apache/commons/compress/archivers/ExceptionMessageTest.java b/src/test/java/org/apache/commons/compress/archivers/ExceptionMessageTest.java
index 136e333..30ab60e 100644
--- a/src/test/java/org/apache/commons/compress/archivers/ExceptionMessageTest.java
+++ b/src/test/java/org/apache/commons/compress/archivers/ExceptionMessageTest.java
@@ -24,9 +24,9 @@
 public class ExceptionMessageTest extends TestCase {
 
     private static final String ARCHIVER_NULL_MESSAGE = "Archivername must not be null.";
-    
+
     private static final String INPUTSTREAM_NULL_MESSAGE = "InputStream must not be null.";
-    
+
     private static final String OUTPUTSTREAM_NULL_MESSAGE = "OutputStream must not be null.";
 
 
diff --git a/src/test/java/org/apache/commons/compress/archivers/LongPathTest.java b/src/test/java/org/apache/commons/compress/archivers/LongPathTest.java
index 8a7d92e..c828fea 100644
--- a/src/test/java/org/apache/commons/compress/archivers/LongPathTest.java
+++ b/src/test/java/org/apache/commons/compress/archivers/LongPathTest.java
@@ -44,7 +44,7 @@
  * as JUnit does not allow one to change the display name of a test.
  */
 public class LongPathTest extends AbstractTestCase {
-    
+
     private static final ClassLoader classLoader = LongPathTest.class.getClassLoader();
 
     private File file;
@@ -54,12 +54,12 @@
     public LongPathTest(String name) {
         super(name);
     }
-    
+
     private LongPathTest(String name, File file){
         super(name);
         this.file = file;
     }
-    
+
     public static TestSuite suite() throws IOException{
         TestSuite suite = new TestSuite("LongPathTests");
         URL resource = classLoader.getResource("longpath");
@@ -88,10 +88,10 @@
             Test test = new LongPathTest("testArchive", file);
             namedSuite.addTest(test);
             suite.addTest(namedSuite);
-        }        
+        }
         return suite;
     }
-    
+
     public void testArchive() throws Exception {
         @SuppressWarnings("unchecked") // fileList is of correct type
         ArrayList<String> expected = (ArrayList<String>) fileList.clone();
@@ -124,7 +124,7 @@
                 if (!ent.endsWith("/")){// not a directory
                     final int lastSlash = ent.lastIndexOf('/');
                     if (lastSlash >= 0) { // extract path name
-                        expected.add(ent.substring(lastSlash+1, ent.length()));                        
+                        expected.add(ent.substring(lastSlash+1, ent.length()));
                     } else {
                         expected.add(ent);
                     }
diff --git a/src/test/java/org/apache/commons/compress/archivers/ZipTestCase.java b/src/test/java/org/apache/commons/compress/archivers/ZipTestCase.java
index 95f604a..a3a1a52 100644
--- a/src/test/java/org/apache/commons/compress/archivers/ZipTestCase.java
+++ b/src/test/java/org/apache/commons/compress/archivers/ZipTestCase.java
@@ -167,7 +167,7 @@
      */
     public void testListAllFilesWithNestedArchive() throws Exception {
         final File input = getFile("OSX_ArchiveWithNestedArchive.zip");
-       
+
         List<String> results = new ArrayList<String>();
 
         final InputStream is = new FileInputStream(input);
@@ -192,7 +192,7 @@
             }
         }
         is.close();
-        
+
         results.contains("NestedArchiv.zip");
         results.contains("test1.xml");
         results.contains("test2.xml");
diff --git a/src/test/java/org/apache/commons/compress/archivers/cpio/CpioArchiveInputStreamTest.java b/src/test/java/org/apache/commons/compress/archivers/cpio/CpioArchiveInputStreamTest.java
index f6aeea5..bcef7f7 100644
--- a/src/test/java/org/apache/commons/compress/archivers/cpio/CpioArchiveInputStreamTest.java
+++ b/src/test/java/org/apache/commons/compress/archivers/cpio/CpioArchiveInputStreamTest.java
@@ -29,12 +29,12 @@
         expected.append("./test1.xml<?xml version=\"1.0\"?>\n");
         expected.append("<empty/>./test2.xml<?xml version=\"1.0\"?>\n");
         expected.append("<empty/>\n");
-        
+
 
         CpioArchiveInputStream in = 
                 new CpioArchiveInputStream(new FileInputStream(getFile("bla.cpio")));
         CpioArchiveEntry entry= null;
-        
+
         StringBuffer result = new StringBuffer();
         while ((entry = (CpioArchiveEntry) in.getNextEntry()) != null) {
             result.append(entry.getName());
@@ -45,5 +45,5 @@
          }
          in.close();
          assertEquals(result.toString(), expected.toString());
-    }    
+    }
 }
diff --git a/src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveEntryTest.java b/src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveEntryTest.java
index 7d1c501..07401ad 100644
--- a/src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveEntryTest.java
+++ b/src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveEntryTest.java
@@ -98,7 +98,7 @@
             AbstractTestCase.tryHardToDelete(f);
         }
     }
-    
+
     public void testMaxFileSize(){
         TarArchiveEntry t = new TarArchiveEntry("");
         t.setSize(0);
diff --git a/src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStreamTest.java b/src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStreamTest.java
index 35a4055..151522c 100644
--- a/src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStreamTest.java
+++ b/src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStreamTest.java
@@ -78,7 +78,7 @@
                 in.close();
             }
         }
-    }        
+    }
 
     @Test
     public void datePriorToEpochInGNUFormat() throws Exception {
@@ -107,6 +107,6 @@
                 in.close();
             }
         }
-    }        
+    }
 
 }
\ No newline at end of file
diff --git a/src/test/java/org/apache/commons/compress/archivers/tar/TarUtilsTest.java b/src/test/java/org/apache/commons/compress/archivers/tar/TarUtilsTest.java
index f6ff8c0..fb793c8 100644
--- a/src/test/java/org/apache/commons/compress/archivers/tar/TarUtilsTest.java
+++ b/src/test/java/org/apache/commons/compress/archivers/tar/TarUtilsTest.java
@@ -24,7 +24,7 @@
 
 public class TarUtilsTest extends TestCase {
 
-    
+
     public void testName(){
         byte [] buff = new byte[20];
         String sb1 = "abcdefghijklmnopqrstuvwxyz";
@@ -40,7 +40,7 @@
         sb2 = TarUtils.parseName(buff, 1, buff.length-1);
         assertEquals(sb1, sb2);
     }
-    
+
     public void testParseOctal() throws Exception{
         long value; 
         byte [] buffer;
@@ -54,10 +54,10 @@
         assertEquals(MAX_OCTAL, value);
         buffer=new byte[]{0,0};
         value = TarUtils.parseOctal(buffer,0, buffer.length);
-        assertEquals(0, value);        
+        assertEquals(0, value);
         buffer=new byte[]{0,' '};
         value = TarUtils.parseOctal(buffer,0, buffer.length);
-        assertEquals(0, value);        
+        assertEquals(0, value);
     }
 
     public void testParseOctalInvalid() throws Exception{
@@ -113,7 +113,7 @@
         parseValue = TarUtils.parseOctal(buffer,0, buffer.length);
         assertEquals(value,parseValue);
     }
-    
+
     private void checkRoundTripOctal(final long value) {
         checkRoundTripOctal(value, TarConstants.SIZELEN);
     }
@@ -155,7 +155,7 @@
         checkRoundTripOctalOrBinary(-1, length); // will need binary format
         checkRoundTripOctalOrBinary(0xff00000000000001l, length);
     }
-    
+
     // Check correct trailing bytes are generated
     public void testTrailers() {
         byte [] buffer = new byte[12];
@@ -171,7 +171,7 @@
         assertEquals(0  , buffer[buffer.length-2]);
         assertEquals('3', buffer[buffer.length-3]); // end of number
     }
-    
+
     public void testNegative() throws Exception {
         byte [] buffer = new byte[22];
         TarUtils.formatUnsignedOctalString(-1, buffer, 0, buffer.length);
@@ -181,14 +181,14 @@
     public void testOverflow() throws Exception {
         byte [] buffer = new byte[8-1]; // a lot of the numbers have 8-byte buffers (nul term)
         TarUtils.formatUnsignedOctalString(07777777L, buffer, 0, buffer.length);
-        assertEquals("7777777", new String(buffer, "UTF-8"));        
+        assertEquals("7777777", new String(buffer, "UTF-8"));
         try {
             TarUtils.formatUnsignedOctalString(017777777L, buffer, 0, buffer.length);
             fail("Should have cause IllegalArgumentException");
         } catch (IllegalArgumentException expected) {
         }
     }
-    
+
     public void testRoundTripNames(){
         checkName("");
         checkName("The quick brown fox\n");
diff --git a/src/test/java/org/apache/commons/compress/archivers/zip/UTF8ZipFilesTest.java b/src/test/java/org/apache/commons/compress/archivers/zip/UTF8ZipFilesTest.java
index 99b5127..a2d28c6 100644
--- a/src/test/java/org/apache/commons/compress/archivers/zip/UTF8ZipFilesTest.java
+++ b/src/test/java/org/apache/commons/compress/archivers/zip/UTF8ZipFilesTest.java
@@ -312,7 +312,7 @@
             zos.putArchiveEntry(ze);
             zos.write("ascii".getBytes("US-ASCII"));
             zos.closeArchiveEntry();
-            
+
             zos.finish();
         } finally {
             if (zos != null) {
diff --git a/src/test/java/org/apache/commons/compress/changes/ChangeSetTestCase.java b/src/test/java/org/apache/commons/compress/changes/ChangeSetTestCase.java
index 3871e20..49823d5 100644
--- a/src/test/java/org/apache/commons/compress/changes/ChangeSetTestCase.java
+++ b/src/test/java/org/apache/commons/compress/changes/ChangeSetTestCase.java
@@ -43,7 +43,7 @@
  * Checks several ChangeSet business logics.
  */
 public final class ChangeSetTestCase extends AbstractTestCase {
-    
+
     // Delete a directory tree
     private void archiveListDeleteDir(String prefix){
         Iterator<String> it = archiveList.iterator();
@@ -79,14 +79,14 @@
         try {
             in = new FileInputStream(getFile("test.txt"));
             in2 = new FileInputStream(getFile("test2.xml"));
-       
+
             ArchiveEntry e = new ZipArchiveEntry("test.txt");
             ArchiveEntry e2 = new ZipArchiveEntry("test.txt");
-            
+
             ChangeSet changes = new ChangeSet();
             changes.add(e, in);
             changes.add(e2, in2);
-            
+
             assertEquals(1, changes.getChanges().size());
             Change c = changes.getChanges().iterator().next();
             assertEquals(in2, c.getInput());
@@ -97,7 +97,7 @@
                 in2.close();
         }
     }
-    
+
     /**
      * Adds an ArchiveEntry with the same name two times.
      * Only the first addition should be found in the ChangeSet,
@@ -111,14 +111,14 @@
         try {
             in = new FileInputStream(getFile("test.txt"));
             in2 = new FileInputStream(getFile("test2.xml"));
-       
+
             ArchiveEntry e = new ZipArchiveEntry("test.txt");
             ArchiveEntry e2 = new ZipArchiveEntry("test.txt");
-            
+
             ChangeSet changes = new ChangeSet();
             changes.add(e, in, true);
             changes.add(e2, in2, false);
-            
+
             assertEquals(1, changes.getChanges().size());
             Change c = changes.getChanges().iterator().next();
             assertEquals(in, c.getInput());
@@ -129,7 +129,7 @@
                 in2.close();
         }
     }
-    
+
     /**
      * Tries to delete the folder "bla" from an archive file. This should result in
      * the deletion of bla/*, which actually means bla/test4.xml should be
@@ -274,7 +274,7 @@
             ChangeSet changes = new ChangeSet();
             changes.delete("bla/test5.xml");
             archiveListDelete("bla/test5.xml");
-            
+
             ChangeSetPerformer performer = new ChangeSetPerformer(changes);
             performer.perform(ais, out);
             is.close();
@@ -314,7 +314,7 @@
             ChangeSet changes = new ChangeSet();
             changes.delete("bla");
             //archiveListDelete("bla");
-            
+
             ChangeSetPerformer performer = new ChangeSetPerformer(changes);
             performer.perform(ais, out);
             is.close();
@@ -344,7 +344,7 @@
         ArchiveInputStream ais = null;
         File result = File.createTempFile("test", "."+archivename);
         result.deleteOnExit();
-        
+
         File testtxt = null;
         try {
 
@@ -384,7 +384,7 @@
             check = this.checkArchiveContent(in, archiveList, false);
             File test3xml = new File(check,"result/test/test3.xml");
             assertEquals(testtxt.length(), test3xml.length());
-            
+
             BufferedReader reader = new BufferedReader(new FileReader(test3xml));
             String str;
             while ((str = reader.readLine()) != null) {
@@ -399,7 +399,7 @@
             rmdir(check);
         } 
     }
-    
+
     /**
      * Checks for the correct ChangeSetResults
      * 
@@ -441,7 +441,7 @@
             assertTrue(results.getDeleted().contains("bla/test4.xml"));
             assertTrue(results.getDeleted().contains("bla/test5.xml"));
             assertTrue(results.getDeleted().contains("bla/blubber/test6.xml"));
-            
+
             assertTrue(results.getAddedFromStream().contains("testdata/test1.xml"));
             assertTrue(results.getAddedFromStream().contains("testdata/test2.xml"));
             assertTrue(results.getAddedFromStream().contains("test/test3.xml"));
@@ -458,7 +458,7 @@
 
         this.checkArchiveContent(result, archiveList);
     }
-    
+
     /**
      * Tries to delete a directory with a file and adds a new directory with a
      * new file and with the same name. Should delete dir1/* and add
@@ -582,7 +582,7 @@
 
             ChangeSetPerformer performer = new ChangeSetPerformer(changes);
             performer.perform(ais, out);
-            
+
             is.close();
 
         } finally {
@@ -630,7 +630,7 @@
 
             ChangeSetPerformer performer = new ChangeSetPerformer(changes);
             performer.perform(ais, out);
-            
+
             is.close();
 
         } finally {
@@ -667,7 +667,7 @@
 
             ChangeSetPerformer performer = new ChangeSetPerformer(changes);
             performer.perform(ais, out);
-            
+
         } finally {
             if (out != null)
                 out.close();
@@ -704,7 +704,7 @@
 
             ChangeSetPerformer performer = new ChangeSetPerformer(changes);
             performer.perform(ais, out);
-            
+
         } finally {
             if (out != null)
                 out.close();
@@ -742,7 +742,7 @@
 
             ChangeSetPerformer performer = new ChangeSetPerformer(changes);
             performer.perform(ais, out);
-            
+
         } finally {
             if (out != null)
                 out.close();
@@ -786,7 +786,7 @@
 
             ChangeSetPerformer performer = new ChangeSetPerformer(changes);
             performer.perform(ais, out);
-            
+
         } finally {
             if (out != null)
                 out.close();
@@ -830,7 +830,7 @@
 
             ChangeSetPerformer performer = new ChangeSetPerformer(changes);
             performer.perform(ais, out);
-            
+
         } finally {
             if (out != null)
                 out.close();
@@ -866,7 +866,7 @@
 
             ChangeSetPerformer performer = new ChangeSetPerformer(changes);
             performer.perform(ais, out);
-            
+
         } finally {
             if (out != null)
                 out.close();
@@ -909,7 +909,7 @@
 
             ChangeSetPerformer performer = new ChangeSetPerformer(changes);
             performer.perform(ais, out);
-            
+
         } finally {
             if (out != null)
                 out.close();
@@ -945,7 +945,7 @@
      */
     public void testAddMoveDelete() throws Exception {
     }
-    
+
     /**
      * Check can add a file to an empty archive.
      * 
@@ -1015,12 +1015,12 @@
                     new FileOutputStream(result));
             changes.delete("test1.xml");
             archiveListDelete("test1.xml");
-            
+
             final File file = getFile("test.txt");
             ArchiveEntry entry = out.createArchiveEntry(file,"bla/test.txt");
             changes.add(entry, new FileInputStream(file));
             archiveList.add("bla/test.txt");
-            
+
             ChangeSetPerformer performer = new ChangeSetPerformer(changes);
             performer.perform(ais, out);
             is.close();
@@ -1068,7 +1068,7 @@
 
             changes.delete("test1.xml");
             archiveListDelete("test1.xml");
-            
+
             ChangeSetPerformer performer = new ChangeSetPerformer(changes);
             performer.perform(ais, out);
             is.close();
@@ -1086,7 +1086,7 @@
 
         this.checkArchiveContent(result, archiveList);
     }
-    
+
     /**
      * Adds a file with the same filename as an existing file from the stream.
      * Should lead to a replacement.
@@ -1113,7 +1113,7 @@
             final File file1 = getFile("test.txt");
             ArchiveEntry entry = new ZipArchiveEntry("testdata/test1.xml");
             changes.add(entry, new FileInputStream(file1), true);
-            
+
             ChangeSetPerformer performer = new ChangeSetPerformer(changes);
             ChangeSetResults results = performer.perform(ais, out);
             assertTrue(results.getAddedFromChangeSet().contains("testdata/test1.xml"));
@@ -1128,7 +1128,7 @@
 
         this.checkArchiveContent(result, archiveList);
     }
-    
+
     /**
      * Adds a file with the same filename as an existing file from the stream.
      * Should lead to a replacement.
@@ -1155,7 +1155,7 @@
             final File file1 = getFile("test.txt");
             ArchiveEntry entry = new ZipArchiveEntry("testdata/test1.xml");
             changes.add(entry, new FileInputStream(file1), false);
-            
+
             ChangeSetPerformer performer = new ChangeSetPerformer(changes);
             ChangeSetResults results = performer.perform(ais, out);
             assertTrue(results.getAddedFromStream().contains("testdata/test1.xml"));
@@ -1172,5 +1172,5 @@
 
         this.checkArchiveContent(result, archiveList);
     }
-    
+
 }
diff --git a/src/test/java/org/apache/commons/compress/compressors/BZip2TestCase.java b/src/test/java/org/apache/commons/compress/compressors/BZip2TestCase.java
index 3dd689e..21f7ad1 100644
--- a/src/test/java/org/apache/commons/compress/compressors/BZip2TestCase.java
+++ b/src/test/java/org/apache/commons/compress/compressors/BZip2TestCase.java
@@ -124,5 +124,5 @@
             is.close();
         }
     }
-    
+
 }