All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fastchar.oss.FastOSSHelper Maven / Gradle / Ivy

The newest version!
package com.fastchar.oss;

import com.fastchar.core.FastChar;
import com.fastchar.oss.interfaces.IFastOSSOperate;
import com.fastchar.utils.FastStringUtils;

public class FastOSSHelper {

    public static boolean exists(String url) {
        if (FastStringUtils.isEmpty(url)) {
            return false;
        }
        return FastChar.getOverrides().newInstance(IFastOSSOperate.class).doExists(url);
    }

    public static boolean exists(String blockName, String url) {
        if (FastStringUtils.isEmpty(blockName) || FastStringUtils.isEmpty(url)) {
            return false;
        }
        return FastChar.getOverrides().newInstance(IFastOSSOperate.class).doExists(blockName, url);
    }

    public static boolean existsByKey(String fileKey) {
        if (FastStringUtils.isEmpty(fileKey)) {
            return false;
        }
        return FastChar.getOverrides().newInstance(IFastOSSOperate.class).doExists("/" + fileKey);
    }

    public static boolean existsByKey(String blockName, String fileKey) {
        if (FastStringUtils.isEmpty(blockName) || FastStringUtils.isEmpty(fileKey)) {
            return false;
        }
        return FastChar.getOverrides().newInstance(IFastOSSOperate.class).doExists(blockName, "/" + fileKey);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy