@@ -0,0 +1,889 @@
+package com.bryanjswift.swiftnote.util;%0A%0Aimport android.util.Log;%0Aimport com.bryanjswift.swiftnote.Constants;%0A%0Aimport java.io.IOException;%0Aimport java.io.InputStream;%0A%0A/** @author bryanjswift */%0Apublic class IOUtils %7B%0A    private static final String LOGGING_TAG = Constants.TAG + %22IOUtils%22;%0A    /**%0A     * Convert InputStream to String by reading all the data from it%0A     * @param in InputStream to read%0A     * @return String containing the bytes of in%0A     */%0A    public static String slurp(InputStream in) %7B%0A        final StringBuilder out = new StringBuilder();%0A        try %7B%0A            byte%5B%5D b = new byte%5B4096%5D;%0A            for (int n; (n = in.read(b)) != -1;) %7B%0A                out.append(new String(b, 0, n));%0A            %7D%0A        %7D catch (IOException ioe) %7B%0A            Log.e(LOGGING_TAG, %22Unable to read stream contents%22, ioe);%0A        %7D%0A        return out.toString();%0A    %7D%0A%7D%0A

Add IOUtils with slurp method to turn InputStreams into Strings