public static String encodeBase64StringLocal()

in src/main/java/com/microsoft/azure/proton/transport/ws/impl/Base64.java [248:262]


    public static String encodeBase64StringLocal(byte[] dataValues) throws IllegalArgumentException {
        /* Codes_SRS_BASE64_21_009: [If the `dataValues` is null, the encodeBase64StringLocal shall throw IllegalArgumentException.] */
        if (dataValues == null) {
            throw new IllegalArgumentException("null or empty dataValues");
        }

        /* Codes_SRS_BASE64_21_010: [If the `dataValues` is empty, the encodeBase64StringLocal shall return a empty string.] */
        if (dataValues.length == 0) {
            return "";
        }

        /* Codes_SRS_BASE64_21_008: [The encodeBase64StringLocal shall encoded the provided `dataValues`
        in a string using the Base64 format define in the RFC2045.] */
        return new String(encodeBase64Internal(dataValues), StandardCharsets.US_ASCII);
    }