|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.unidu.is.util.SystemUtilities
A collection of system utility methods.
| Constructor Summary | |
SystemUtilities()
|
|
| Method Summary | |
static java.lang.String |
currentISODate()
Returns the current date in ISO format "yyyymmdd". |
static java.io.Reader |
getConfAsStream(java.lang.String relativePath)
Returns a reader for the first file with the given name (prefixed with conf/). |
static java.io.Reader[] |
getConfAsStreams(java.lang.String relativePath)
Returns an array of readers for all files with the given name (prefixed with conf/). |
static java.net.URL |
getConfURL(java.lang.String relativePath)
Returns a URL for the first file with the given name (prefixed with conf/). |
static java.net.URL[] |
getConfURLs(java.lang.String relativePath)
Returns an array of URLs for all files with the given name (prefixed with conf/). |
static java.io.Reader |
getResourceAsStream(java.lang.String relativePath)
Returns a reader for the first file with the given name. |
static java.io.Reader[] |
getResourceAsStreams(java.lang.String relativePath)
Returns an array of readers for all files with the given name. |
static java.net.URL |
getResourceURL(java.lang.String relativePath)
Returns a URL for the first file with the given name. |
static java.net.URL[] |
getResourceURLs(java.lang.String relativePath)
Returns an array of URLs for all files with the given name. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SystemUtilities()
| Method Detail |
public static java.io.Reader getConfAsStream(java.lang.String relativePath)
conf/).
This method scans the classpath. For each JAR, the file must be
located in the beginning (jar:file://...!/file). For
each directory, the file must be located in that directoy or in its
direct parent directory.
- Parameters:
relativePath - relative path, without "conf" prefix
- Returns:
- corresponding reader
public static java.net.URL getConfURL(java.lang.String relativePath)
conf/).
This method scans the classpath. For each JAR, the file must be
located in the beginning (jar:file://...!/file). For
each directory, the file must be located in that directoy or in its
- Parameters:
relativePath - relative path, without "conf" prefix
- Returns:
- corresponding URL
public static java.net.URL[] getConfURLs(java.lang.String relativePath)
conf/).
This method scans the classpath. For each JAR, the file must be
located in the beginning (jar:file://...!/file). For
each directory, the file must be located in that directoy or in its
direct parent directory.
- Parameters:
relativePath - relative path, without "conf" prefix
- Returns:
- array of corresponding URLs
public static java.io.Reader[] getConfAsStreams(java.lang.String relativePath)
conf/).
This method scans the classpath. For each JAR, the file must be
located in the beginning (jar:file://...!/file). For
each directory, the file must be located in that directoy or in its
direct parent directory.
- Parameters:
relativePath - relative path, without "conf" prefix
- Returns:
- array of corresponding readers
public static java.io.Reader getResourceAsStream(java.lang.String relativePath)
This method scans the classpath. For each JAR, the file must be
located in the beginning (jar:file://...!/file). For
each directory, the file must be located in that directoy or in its
direct parent directory.
relativePath - relative path
public static java.net.URL getResourceURL(java.lang.String relativePath)
This method scans the classpath. For each JAR, the file must be
located in the beginning (jar:file://...!/file). For
each directory, the file must be located in that directoy or in its
direct parent directory.
relativePath - relative path
public static java.net.URL[] getResourceURLs(java.lang.String relativePath)
This method scans the classpath. For each JAR, the file must be
located in the beginning (jar:file://...!/file). For
each directory, the file must be located in that directoy or in its
direct parent directory.
relativePath - relative path
public static java.io.Reader[] getResourceAsStreams(java.lang.String relativePath)
This method scans the classpath. For each JAR, the file must be
located in the beginning (jar:file://...!/file). For
each directory, the file must be located in that directoy or in its
direct parent directory.
relativePath - relative path
public static java.lang.String currentISODate()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||