|
|
|
@ -107,12 +107,9 @@ public final class FileUtils
|
|
|
|
|
dest.flush();
|
|
|
|
|
total += c;
|
|
|
|
|
|
|
|
|
|
if ( count > 0 ) {
|
|
|
|
|
chunkSize = (int) Math.min(count - total, DEFAULT_BUFFER_SIZE);
|
|
|
|
|
if ( chunkSize == 0 ) {
|
|
|
|
|
if ( count > 0 && count == total) {
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
dest.flush();
|
|
|
|
@ -130,7 +127,7 @@ public final class FileUtils
|
|
|
|
|
if ( fis != null ) {
|
|
|
|
|
try {
|
|
|
|
|
fis.close();
|
|
|
|
|
} catch ( final Exception e ) {
|
|
|
|
|
} catch (Exception e ) {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|