类 URLParseChecks
java.lang.Object
com.google.common.base.URLParseChecks
URL解析检查工具类
- 作者:
- guyadong
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static voidcheckURLParse(boolean b, String errorMessageTemplate, Object p1) 执行表达式,为false时抛出BaseColumnStore.URLParseException异常static voidcheckURLParse(boolean b, String errorMessageTemplate, Object... errorMessageArgs) 执行表达式,为false时抛出BaseColumnStore.URLParseException异常
-
构造器详细资料
-
URLParseChecks
public URLParseChecks()
-
-
方法详细资料
-
checkURLParse
public static void checkURLParse(boolean b, @Nullable String errorMessageTemplate, @Nullable Object... errorMessageArgs) throws BaseColumnStore.URLParseException 执行表达式,为false时抛出BaseColumnStore.URLParseException异常- 参数:
b-errorMessageTemplate- a template for the exception message should the check fail. The message is formed by replacing each%splaceholder in the template with an argument. These are matched by position - the first%sgetserrorMessageArgs[0], etc. Unmatched arguments will be appended to the formatted message in square braces. Unmatched placeholders will be left as-is.errorMessageArgs- the arguments to be substituted into the message template. Arguments are converted to strings usingString.valueOf(Object).- 抛出:
BaseColumnStore.URLParseException
-
checkURLParse
public static void checkURLParse(boolean b, @Nullable String errorMessageTemplate, @Nullable Object p1) throws BaseColumnStore.URLParseException 执行表达式,为false时抛出BaseColumnStore.URLParseException异常See
checkURLParse(boolean, String, Object...)for details.
-