This commit is contained in:
zzz
2011-12-18 13:28:57 +00:00
parent fb4d85ff8b
commit 61810b7215
2 changed files with 1 additions and 3 deletions

View File

@@ -440,8 +440,6 @@ public class DataHelper {
String val = (String) entry.getValue();
out.println(name + "=" + val);
}
out.flush();
out.close();
} finally {
if (out != null) out.close();
}

View File

@@ -372,7 +372,7 @@ public class FileUtil {
String rootDirStr = rootDir.getCanonicalPath();
if (!targetStr.startsWith(rootDirStr)) throw new FileNotFoundException("Requested file is outside the root dir: " + path);
byte buf[] = new byte[1024];
byte buf[] = new byte[4*1024];
FileInputStream in = null;
try {
in = new FileInputStream(target);