[armedbear-cvs] r13320 - trunk/abcl/src/org/armedbear/lisp
mevenson at common-lisp.net
mevenson at common-lisp.net
Fri Jun 10 10:12:03 UTC 2011
Author: mevenson
Date: Fri Jun 10 03:12:02 2011
New Revision: 13320
Log:
Untabify.
Modified:
trunk/abcl/src/org/armedbear/lisp/zip.java
Modified: trunk/abcl/src/org/armedbear/lisp/zip.java
==============================================================================
--- trunk/abcl/src/org/armedbear/lisp/zip.java Fri Jun 10 02:28:30 2011 (r13319)
+++ trunk/abcl/src/org/armedbear/lisp/zip.java Fri Jun 10 03:12:02 2011 (r13320)
@@ -84,7 +84,7 @@
pathname.writeToString()));
}
File file = new File(namestring);
- makeEntry(out, file);
+ makeEntry(out, file);
list = list.cdr();
}
out.close();
@@ -144,7 +144,7 @@
list = list.cdr();
continue;
}
- makeEntry(out, file, directory + file.getName());
+ makeEntry(out, file, directory + file.getName());
list = list.cdr();
}
out.close();
@@ -158,27 +158,27 @@
private static final Primitive zip = new zip();
private void makeEntry(ZipOutputStream zip, File file)
- throws FileNotFoundException, IOException
+ throws FileNotFoundException, IOException
{
- makeEntry(zip, file, file.getName());
+ makeEntry(zip, file, file.getName());
}
private void makeEntry(ZipOutputStream zip, File file, String name)
- throws FileNotFoundException, IOException
+ throws FileNotFoundException, IOException
{
byte[] buffer = new byte[4096];
- long lastModified = file.lastModified();
- FileInputStream in = new FileInputStream(file);
- ZipEntry entry = new ZipEntry(name);
- if (lastModified > 0) {
- entry.setTime(lastModified);
- }
- zip.putNextEntry(entry);
- int n;
- while ((n = in.read(buffer)) > 0)
- zip.write(buffer, 0, n);
- zip.closeEntry();
- in.close();
+ long lastModified = file.lastModified();
+ FileInputStream in = new FileInputStream(file);
+ ZipEntry entry = new ZipEntry(name);
+ if (lastModified > 0) {
+ entry.setTime(lastModified);
+ }
+ zip.putNextEntry(entry);
+ int n;
+ while ((n = in.read(buffer)) > 0)
+ zip.write(buffer, 0, n);
+ zip.closeEntry();
+ in.close();
}
-
+
}
More information about the armedbear-cvs
mailing list