small part of Bosts patch

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2517 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 19 years ago
parent 96c6e4e322
commit c2e6cc8c6b

@ -326,16 +326,9 @@ public final class serverFileUtils {
zos.putNextEntry(new ZipEntry(name + ".txt")); zos.putNextEntry(new ZipEntry(name + ".txt"));
os = zos; os = zos;
} }
Iterator i = set.iterator(); for (Iterator i = set.iterator(); i.hasNext(); ) {
String key; os.write((i.next().toString()).getBytes());
if (i.hasNext()) {
key = i.next().toString();
os.write(key.getBytes());
}
while (i.hasNext()) {
key = i.next().toString();
if (sep != null) os.write(sep.getBytes()); if (sep != null) os.write(sep.getBytes());
os.write(key.getBytes());
} }
os.close(); os.close();
file.delete(); file.delete();

Loading…
Cancel
Save