public class URLFinder extends java.lang.Object
Constructor and Description |
---|
URLFinder() |
Modifier and Type | Method and Description |
---|---|
java.net.URL |
findURL(java.lang.String fileString)
Search for a file according the following priority:
The local file system
Specified as an URL (starting with http:, file:, ftp: or jar:
MaltParser distribution file (malt.jar)
MaltParser plugins
If the file string is found, an URL object is returned, otherwise null
|
java.net.URL |
findURLinJars(java.lang.String fileString) |
public URLFinder()
public java.net.URL findURL(java.lang.String fileString) throws MaltChainedException
fileString
- the file string to convert into an URL.MaltChainedException
public java.net.URL findURLinJars(java.lang.String fileString) throws MaltChainedException
MaltChainedException
Copyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.