template-marketplace/hertzbeat-template-hub/src/main/java/org/apache/hertzbeat/templatehub/util/Base64Util.java [30:41]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public static boolean isBase64(String base64) {

        if (base64 == null || base64.isEmpty()) {
            return false;
        }

        try {
            return Base64.getDecoder().decode(base64) != null;
        } catch (Exception e) {
            return false;
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



hertzbeat-common/src/main/java/org/apache/hertzbeat/common/util/Base64Util.java [31:42]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public static boolean isBase64(String base64) {

        if (base64 == null || base64.isEmpty()) {
            return false;
        }

        try {
            return Base64.getDecoder().decode(base64) != null;
        } catch (Exception e) {
            return false;
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



