com.googlecode.flyway.core.util
Class PropertiesUtils

java.lang.Object
  extended by com.googlecode.flyway.core.util.PropertiesUtils

public final class PropertiesUtils
extends java.lang.Object

Utility for dealing with property files. Necessary due to Java 5 compatibility.

Code inspired from Spring's DefaultPropertiesPersister.


Method Summary
static java.util.Properties loadPropertiesFromString(java.lang.String propertiesData)
          Loads this properties data from this string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

loadPropertiesFromString

public static java.util.Properties loadPropertiesFromString(java.lang.String propertiesData)
                                                     throws java.io.IOException
Loads this properties data from this string.

Parameters:
propertiesData - The string containing the properties data.
Returns:
The matching properties object.
Throws:
java.io.IOException - when the data could not be read.


Copyright © 2012. All Rights Reserved.