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,
9 OutputStream destination) throws IOException {
11 byte[] buffer = new byte[8192];
13 int bytesRead = source.read(buffer);
16 destination.write(buffer, 0, bytesRead);
21 } catch (IOException e) {
25 } catch (IOException e) {