@@ -0,0 +1,737 @@
+package com.xnrand.glowcrypt.core;%0A%0Aimport java.io.IOException;%0Aimport java.io.InputStream;%0Aimport java.io.OutputStream;%0A%0A/**%0A * Utility functions for glowcrypt%0A * %0A * @author xnrand %3Chttp://xnrand.com/%3E %3Chttps://github.com/xnrand%3E%0A */%0Apublic class Util %7B%0A%09/**%0A%09 * Copies everything from %3Ccode%3Ein%3C/code%3E to %3Ccode%3Eout%3C/code%3E%0A%09 * %0A%09 * @param in%0A%09 *            the %7B@link InputStream%7D to copy from%0A%09 * @param out%0A%09 *            the %7B@link OutputStream%7D to copy to%0A%09 * @param bufsize%0A%09 *            buffer size%0A%09 */%0A%09public static void copyStream(InputStream in, OutputStream out, int bufsize)%0A%09%09%09throws IOException %7B%0A%09%09byte%5B%5D buffer = new byte%5Bbufsize%5D;%0A%09%09int len;%0A%09%09while ((len = in.read(buffer)) != -1)%0A%09%09%09out.write(buffer, 0, len);%0A%09%7D%0A%7D%0A

Add utility class