MaltParser 1.6.1

org.maltparser.core.helper
Class URLFinder

java.lang.Object
  extended by org.maltparser.core.helper.URLFinder

public class URLFinder
extends Object

Author:
Johan Hall

Constructor Summary
URLFinder()
           
 
Method Summary
 URL findURL(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
 URL findURLinJars(String fileString)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLFinder

public URLFinder()
Method Detail

findURL

public URL findURL(String fileString)
            throws MaltChainedException
Search for a file according the following priority:
  1. The local file system
  2. Specified as an URL (starting with http:, file:, ftp: or jar:
  3. MaltParser distribution file (malt.jar)
  4. MaltParser plugins
If the file string is found, an URL object is returned, otherwise null

Parameters:
fileString - the file string to convert into an URL.
Returns:
an URL object, if the file string is found, otherwise null
Throws:
MaltChainedException

findURLinJars

public URL findURLinJars(String fileString)
                  throws MaltChainedException
Throws:
MaltChainedException

MaltParser 1.6.1

Copyright 2007-2011 Johan Hall, Jens Nilsson and Joakim Nivre.