|
TelnetD at SF | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.wimpi.telnetd.util.PropertiesLoader
Utility class implementing two simple yet powerful methods for loading properties (i.e. settings/configurations).
Method Summary | |
static java.util.Properties |
loadProperties(java.lang.String url)
Loads a properties file from an URL given as String. |
static java.util.Properties |
loadProperties(java.net.URL url)
Loads a properties file from a given URL. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.util.Properties loadProperties(java.lang.String url) throws java.net.MalformedURLException, java.io.IOException
url
- the string representing the URL.
java.net.MalformedURLException
- if the URL is invalid.
java.io.IOException
- if the properties cannot be loaded from
the given URL.public static java.util.Properties loadProperties(java.net.URL url) throws java.io.IOException
url
- an URL instance.
java.io.IOException
- if the properties cannot be loaded from
the given URL.
|
TelnetD at SF | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |