@@ -0,0 +1,733 @@
+package net.nordu.mdx.utils;%0A%0Aimport java.io.IOException;%0Aimport java.io.InputStream;%0Aimport java.io.OutputStream;%0A%0Apublic class StreamUtils %7B%0A%0A        private static final int BUFSZ = 8196;%0A        %0A        public static void copyStream(OutputStream out, InputStream in, int bufsz)%0A                throws IOException%0A        %7B%0A                byte%5B%5D buf = new byte%5Bbufsz%5D;%0A                int n = 0;%0A                while ( (n = in.read(buf)) %3E 0 )%0A                %7B%0A                        out.write(buf,0,n);%0A                %7D%0A        %7D%0A        %0A        public static void copyStream(OutputStream out, InputStream in)%0A                throws IOException%0A        %7B%0A                copyStream(out, in, BUFSZ);%0A        %7D%09        %0A%09%0A%7D%0A

copy a stream