org.sonatype.sisu.goodies.common
Class Properties2

java.lang.Object
  extended by org.sonatype.sisu.goodies.common.Properties2

public class Properties2
extends Object

Provides static methods for working with Properties instances.

Since:
1.0

Constructor Summary
Properties2()
           
 
Method Summary
static String getSystemProperty(Class<?> type, String name)
           
static String getSystemProperty(Class<?> type, String name, Object defaultValue)
           
static Properties load(File file)
           
static Properties load(URL url)
           
static Collection<String> sortKeys(Map<String,String> source)
           
static Collection<String> sortKeys(Properties source)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Properties2

public Properties2()
Method Detail

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.