Changeset 13320


Ignore:
Timestamp:
06/10/11 10:12:02 (10 years ago)
Author:
Mark Evenson
Message:

Untabify.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/src/org/armedbear/lisp/zip.java

    r13307 r13320  
    8585                }
    8686                File file = new File(namestring);
    87     makeEntry(out, file);
     87                makeEntry(out, file);
    8888                list = list.cdr();
    8989            }
     
    145145                    continue;
    146146                }
    147     makeEntry(out, file, directory + file.getName());
     147                makeEntry(out, file, directory + file.getName());
    148148                list = list.cdr();
    149149            }
     
    159159
    160160    private void makeEntry(ZipOutputStream zip, File file)
    161   throws FileNotFoundException, IOException
     161        throws FileNotFoundException, IOException
    162162    {
    163   makeEntry(zip, file, file.getName());
     163        makeEntry(zip, file, file.getName());
    164164    }
    165165
    166166    private void makeEntry(ZipOutputStream zip, File file, String name)
    167   throws FileNotFoundException, IOException
     167        throws FileNotFoundException, IOException
    168168    {
    169169        byte[] buffer = new byte[4096];
    170   long lastModified = file.lastModified();
    171   FileInputStream in = new FileInputStream(file);
    172   ZipEntry entry = new ZipEntry(name);
    173   if (lastModified > 0) {
    174       entry.setTime(lastModified);
    175   }
    176   zip.putNextEntry(entry);
    177   int n;
    178   while ((n = in.read(buffer)) > 0)
    179       zip.write(buffer, 0, n);
    180   zip.closeEntry();
    181   in.close();
     170        long lastModified = file.lastModified();
     171        FileInputStream in = new FileInputStream(file);
     172        ZipEntry entry = new ZipEntry(name);
     173        if (lastModified > 0) {
     174            entry.setTime(lastModified);
     175        }
     176        zip.putNextEntry(entry);
     177        int n;
     178        while ((n = in.read(buffer)) > 0)
     179            zip.write(buffer, 0, n);
     180        zip.closeEntry();
     181        in.close();
    182182    }
    183  
     183       
    184184}
Note: See TracChangeset for help on using the changeset viewer.