com.sun.enterprise.universal.io.FileUtils Maven / Gradle / Ivy
package com.sun.enterprise.universal.io;
import java.io.*;
/**
* static utility methods
* @author bnevins
*/
public class FileUtils {
private FileUtils() {
}
public static void copyStream(InputStream in, OutputStream out) throws IOException {
byte[] buf = new byte[4096];
int len;
while ((len = in.read(buf)) >= 0) {
out.write(buf, 0, len);
}
out.close();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy