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

com.mogudiandian.util.javac.URIUtils Maven / Gradle / Ivy

The newest version!
package com.mogudiandian.util.javac;

import lombok.SneakyThrows;

import java.net.URI;

/**
 * URI工具类
 * @author Joshua Sun
 * @since 1.0.0
 */
final class URIUtils {

    private URIUtils() {
        super();
    }

    /**
     * 创建URI对象 避免抛异常
     * @param uri URI
     * @return URI对象
     */
    @SneakyThrows
    public static URI create(String uri) {
        return new URI(uri);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy