Here you can find the source of getFile(String ontURI)
Parameter | Description |
---|---|
ontURI | URI of the local file. |
Parameter | Description |
---|---|
URISyntaxException | an exception |
public static File getFile(String ontURI) throws URISyntaxException
//package com.java2s; //License from project: Apache License import java.io.File; import java.net.URI; import java.net.URISyntaxException; public class Main { /**/*from w w w.j a v a 2 s. c o m*/ * Creates a file object for the given local ontology file URI. * * @param ontURI * URI of the local file. * @return file object for the ontology. * @throws URISyntaxException */ public static File getFile(String ontURI) throws URISyntaxException { return new File(new URI(ontURI)); } }