Clean up single char indexOf()

This commit is contained in:
zzz
2016-12-03 16:00:09 +00:00
parent f461d4881d
commit 42efed578a
16 changed files with 42 additions and 101 deletions

View File

@@ -22,11 +22,8 @@ try {
response.addHeader("Content-Disposition", "attachment; filename=\"i2preseed.zip\"");
byte buf[] = new byte[16*1024];
in = new java.io.FileInputStream(zip);
int read = 0;
java.io.OutputStream cout = response.getOutputStream();
while ( (read = in.read(buf)) != -1) {
cout.write(buf, 0, read);
}
net.i2p.data.DataHelper.copy(in, cout);
} finally {
if (in != null)
try { in.close(); } catch (java.io.IOException ioe) {}