com.fastchar.oss.FastOSSHelper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fastchar-oss Show documentation
Show all versions of fastchar-oss Show documentation
FastChar-OSS is a FastChar plugin.
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