JCas
v0.3.1

cas.util
Class MiscUtils

java.lang.Object
  extended bycas.util.MiscUtils

public class MiscUtils
extends Object

Misc utility functions.

Version:
1.0
Author:
Ralph Schuster

Constructor Summary
MiscUtils()
           
 
Method Summary
static Properties loadProperties(File file)
          Loads a property file.
static void loadProperties(Properties props, File file)
          Loads a property file.
static void loadProperties(Properties props, String file)
          Loads a property file.
static Properties loadProperties(String file)
          Loads a property file.
static void storeProperties(Properties props, File file)
          Stores a property file.
static void storeProperties(Properties props, String file)
          Stores a property file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MiscUtils

public MiscUtils()
Method Detail

loadProperties

public static Properties loadProperties(File file)
                                 throws IOException
Loads a property file.

Parameters:
file - the file to load
Returns:
the properties
Throws:
IOException

loadProperties

public static Properties loadProperties(String file)
                                 throws IOException
Loads a property file.

Parameters:
file - the file to load
Returns:
the properties
Throws:
IOException

loadProperties

public static void loadProperties(Properties props,
                                  File file)
                           throws IOException
Loads a property file.

Parameters:
props - the properties object
file - the file to load
Returns:
the properties
Throws:
IOException

loadProperties

public static void loadProperties(Properties props,
                                  String file)
                           throws IOException
Loads a property file.

Parameters:
props - the properties object
file - the file to load
Returns:
the properties
Throws:
IOException

storeProperties

public static void storeProperties(Properties props,
                                   File file)
                            throws IOException
Stores a property file.

Parameters:
props - the properties object
file - the file to load
Returns:
the properties
Throws:
IOException

storeProperties

public static void storeProperties(Properties props,
                                   String file)
                            throws IOException
Stores a property file.

Parameters:
props - the properties object
file - the file to load
Returns:
the properties
Throws:
IOException

JCas
v0.3.1