package com.nostra13.universalimageloader.utils;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

/**
 * Provides operations with files
 * 
 * @author Sergey Tarasevich (nostra13[at]gmail[dot]com)
 */
public final class FileUtils {

	private FileUtils() {
	}

	public static void copyStream(InputStream is, OutputStream os) throws IOException {
		final int buffer_size = 1024;
		byte[] bytes = new byte[buffer_size];
		while (true) {
			int count = is.read(bytes, 0, buffer_size);
			if (count == -1) {
				break;
			}
			os.write(bytes, 0, count);
		}
	}
}

@@ -277,16 +277,78 @@
 ls %7B%0D%0A%0D%0A
+%09private static final int BUFFER_SIZE = 8 * 1024; // 8 KB %0D%0A%0D%0A
 %09private
@@ -459,41 +459,8 @@
  %7B%0D%0A
-%09%09final int buffer_size = 1024;%0D%0A
 %09%09by
@@ -481,27 +481,27 @@
 ew byte%5B
-buffer_size
+BUFFER_SIZE
 %5D;%0D%0A%09%09wh
@@ -551,19 +551,19 @@
  0, 
-buffer_size
+BUFFER_SIZE
 );%0D%0A

Copy files with 8KB buffer size (instead of 1KB)