org.sonatype.sisu.goodies.common
Class Properties2
java.lang.Object
org.sonatype.sisu.goodies.common.Properties2
public class Properties2
- extends Object
Provides static methods for working with Properties
instances.
- Since:
- 1.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Properties2
public Properties2()
load
public static Properties load(File file)
throws IOException
- Throws:
IOException
load
public static Properties load(URL url)
throws IOException
- Throws:
IOException
getSystemProperty
public static String getSystemProperty(Class<?> type,
@NonNls
String name,
@Nullable
Object defaultValue)
getSystemProperty
public static String getSystemProperty(Class<?> type,
@NonNls
String name)
sortKeys
public static Collection<String> sortKeys(Properties source)
sortKeys
public static Collection<String> sortKeys(Map<String,String> source)
Copyright © 2008-2012 Sonatype, Inc.. All Rights Reserved.