com.atomikos.persistence
Class Utils

java.lang.Object
  extended by com.atomikos.persistence.Utils

public class Utils
extends Object


Constructor Summary
Utils()
           
 
Method Summary
static String findOrCreateFolder(String path)
          Utility method to find or create a given folder
static String getTrimmedProperty(String name, Properties p)
          Utility method to get and trim properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

findOrCreateFolder

public static String findOrCreateFolder(String path)
Utility method to find or create a given folder

Parameters:
path - The folder path.
Returns:
String The resulting file path, or a default if the given path is not valid as a folder.

getTrimmedProperty

public static String getTrimmedProperty(String name,
                                        Properties p)
Utility method to get and trim properties.

Parameters:
name - The name of the property to get.
p - The properties to look in.
Returns:
String The property without leading or trailing spaces, or null if not found.


Copyright © 2014. All Rights Reserved.