org.maltparser.core.helper
Class Util
java.lang.Object
   org.maltparser.core.helper.Util
org.maltparser.core.helper.Util
- public class Util 
- extends Object
- Author:
- Johan Hall
| Constructor Summary | 
| Util()
 | 
 
| Method Summary | 
| static void | copyfile(String source,
                 String destination)
 | 
| static void | endTicer(org.apache.log4j.Logger logger,
                 long startTime,
                 int nTicxRow,
                 int inTic,
                 int subject)
 | 
| static 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
 | 
| static URL | findURLinJars(String fileString)
 | 
| static int | simpleTicer(org.apache.log4j.Logger logger,
                       long startTime,
                       int nTicxRow,
                       int inTic,
                       int subject)
 | 
| static void | startTicer(org.apache.log4j.Logger logger,
                     long startTime,
                     int nTicxRow,
                     int subject)
 | 
| static String | xmlEscape(String str)
 | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
Util
public Util()
xmlEscape
public static String xmlEscape(String str)
- 
 
findURL
public static URL findURL(String fileString)
                   throws MaltChainedException
- 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
 
- 
- 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 static URL findURLinJars(String fileString)
                         throws MaltChainedException
- 
- Throws:
- MaltChainedException
 
simpleTicer
public static int simpleTicer(org.apache.log4j.Logger logger,
                              long startTime,
                              int nTicxRow,
                              int inTic,
                              int subject)
- 
 
startTicer
public static void startTicer(org.apache.log4j.Logger logger,
                              long startTime,
                              int nTicxRow,
                              int subject)
- 
 
endTicer
public static void endTicer(org.apache.log4j.Logger logger,
                            long startTime,
                            int nTicxRow,
                            int inTic,
                            int subject)
- 
 
copyfile
public static void copyfile(String source,
                            String destination)
                     throws MaltChainedException
- 
- Throws:
- MaltChainedException
 
Copyright 2007-2010 Johan Hall, Jens Nilsson and Joakim Nivre.