A massive organize imports and formatting of the sources using default Eclipse code...
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / ui / util / StreamUtil.java
index 55c8865..5cdf1b9 100644 (file)
@@ -5,24 +5,25 @@ import java.io.InputStream;
 import java.io.OutputStream;
 
 public class StreamUtil {
-  public static void transferStreams(InputStream source, OutputStream destination) throws IOException {
-    try {
-      byte[] buffer = new byte[8192];
-      while (true) {
-        int bytesRead = source.read(buffer);
-        if (bytesRead == -1)
-          break;
-        destination.write(buffer, 0, bytesRead);
-      }
-    } finally {
-      try {
-        source.close();
-      } catch (IOException e) {
-      }
-      try {
-        destination.close();
-      } catch (IOException e) {
-      }
-    }
-  }
+       public static void transferStreams(InputStream source,
+                       OutputStream destination) throws IOException {
+               try {
+                       byte[] buffer = new byte[8192];
+                       while (true) {
+                               int bytesRead = source.read(buffer);
+                               if (bytesRead == -1)
+                                       break;
+                               destination.write(buffer, 0, bytesRead);
+                       }
+               } finally {
+                       try {
+                               source.close();
+                       } catch (IOException e) {
+                       }
+                       try {
+                               destination.close();
+                       } catch (IOException e) {
+                       }
+               }
+       }
 }
\ No newline at end of file