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

com.graphaware.nlp.util.FileUtils Maven / Gradle / Ivy

There is a newer version: 3.5.4.53.18
Show newest version
package com.graphaware.nlp.util;

import java.net.URI;

public class FileUtils {

    public static String getFileUri(String path) {
        if (path.startsWith("file:///")) {
            return (path.replaceAll("file:///", ""));
        }

        return path;
    }

    public static String resolveFilePath(String rootPath, String file) {
        return !rootPath.endsWith("/") ? rootPath + "/" + file : rootPath + file;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy