
io.github.espresso4j.espresso.internal.IoUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of espresso Show documentation
Show all versions of espresso Show documentation
The soul of a modern Java web ecosystem.
The newest version!
package io.github.espresso4j.espresso.internal;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
public class IoUtils {
public static void copyStream(InputStream in, OutputStream out) throws IOException {
byte[] buffer = new byte[4096];
int size = 0;
while ((size = in.read(buffer)) > 0) {
out.write(buffer, 0 , size);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy