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