Java URI to File Name getFile(String ontURI)

Here you can find the source of getFile(String ontURI)

Description

Creates a file object for the given local ontology file URI.

License

Apache License

Parameter

Parameter Description
ontURI URI of the local file.

Exception

Parameter Description
URISyntaxException an exception

Return

file object for the ontology.

Declaration

public static File getFile(String ontURI) throws URISyntaxException 

Method Source Code


//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));
    }
}

Related

  1. getFile(java.net.URI uri)
  2. getFile(String uri)
  3. getFile(URI uri)
  4. getFile(URI uri)
  5. getFile(URI uri)