]> WPIA git - gigi.git/blobdiff - tests/org/cacert/gigi/testUtils/IOUtils.java
[EMPTY] Formatting with configured formatter.
[gigi.git] / tests / org / cacert / gigi / testUtils / IOUtils.java
index ab18ee2ed6ba38068bc0900da6bddeb5ad92b180..b7452d2a4422d8acc1fd18d6d8b6fc54fa2e6c64 100644 (file)
@@ -10,11 +10,11 @@ public class IOUtils {
        private IOUtils() {
 
        }
+
        public static String readURL(URLConnection in) {
                try {
                        if (!in.getContentType().equals("text/html; charset=UTF-8")) {
-                               throw new Error("Unrecognized content-type: "
-                                               + in.getContentType());
+                               throw new Error("Unrecognized content-type: " + in.getContentType());
                        }
                        return readURL(new InputStreamReader(in.getInputStream(), "UTF-8"));
                } catch (IOException e) {
@@ -22,6 +22,7 @@ public class IOUtils {
                }
 
        }
+
        public static String readURL(Reader in) {
                CharArrayWriter caw = new CharArrayWriter();
                char[] buffer = new char[1024];