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"));
os = zos;
}
Iterator i = set.iterator();
String key;
if (i.hasNext()) {
key = i.next().toString();
os.write(key.getBytes());
}
while (i.hasNext()) {
key = i.next().toString();
for (Iterator i = set.iterator(); i.hasNext(); ) {
os.write((i.next().toString()).getBytes());
if (sep != null) os.write(sep.getBytes());
os.write(key.getBytes());
}
os.close();
file.delete();

Loading…
Cancel
Save