1 package net.sourceforge.phpdt.internal.ui.util;
3 import java.io.IOException;
4 import java.io.InputStream;
5 import java.io.OutputStream;
7 public class StreamUtil {
8 public static void transferStreams(InputStream source, OutputStream destination) throws IOException {
10 byte[] buffer = new byte[8192];
12 int bytesRead = source.read(buffer);
15 destination.write(buffer, 0, bytesRead);
20 } catch (IOException e) {
24 } catch (IOException e) {