com.graphaware.nlp.util.FileUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nlp Show documentation
Show all versions of nlp Show documentation
GraphAware Framework Module for adding NLP capabilities to Neo4j.
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