java source code formatting

This commit is contained in:
honfika
2014-06-22 09:52:54 +02:00
parent 38335ec2e4
commit 6e7e92ddf2
63 changed files with 3160 additions and 3196 deletions

View File

@@ -462,7 +462,7 @@ public class Helper {
while ((cnt = is.read(buf)) > 0) {
os.write(buf, 0, cnt);
maxLength -= cnt;
// last chunk is smaller
if (maxLength < bufSize) {
buf = new byte[(int) maxLength];
@@ -472,7 +472,7 @@ public class Helper {
Logger.getLogger(Helper.class.getName()).log(Level.SEVERE, null, ex);
}
}
public static void writeFile(String file, byte[]
... data) {
try (FileOutputStream fos = new FileOutputStream(file)) {