aos = new ArArchiveOutputStream(new FileOutputStream(archive));
long beforeArchiveWrite = tmp[0].lastModified();
ArArchiveEntry in = new ArArchiveEntry("foo", 0, 0, 0, 0,
tmp[1].lastModified() / 1000);
aos.putArchiveEntry(in);
aos.closeArchiveEntry();
aos.close();
aos = null;
ais = new ArArchiveInputStream(new FileInputStream(archive));
ArArchiveEntry out = ais.getNextArEntry();
ais.close();