- public static String unbase64s(String data, boolean zip) throws IOException {
- return new String(unbase64(data, zip), "UTF-8");
- }
-
- /**
- * Unconvert the given data from Base64 format back into a {@link String}.
- *
- * @param data
- * the data to unconvert
- * @param offset
- * the offset at which to start taking the data (do not take the
- * data before it into account)
- * @param count
- * the number of bytes to take into account (do not process after
- * this number of bytes has been processed)
- * @param zip
- * TRUE to also uncompress the data from a GZIP format; take care
- * about this flag, as it could easily cause errors in the
- * returned content or an {@link IOException}
- *
- * @return the {@link String} represented by the given Base64 {@link String}
- * , optionally compressed with GZIP
- *
- * @throws IOException
- * in case of I/O errors
- */
- public static String unbase64s(byte[] data, int offset, int count,
- boolean zip) throws IOException {
- return new String(unbase64(data, offset, count, zip), "UTF-8");