|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.clearsilver.CSUtil
public final class CSUtil
Utility class containing helper methods
Field Summary | |
---|---|
static String |
HDF_LOADPATHS
|
Method Summary | |
---|---|
static List<String> |
getLoadPaths(HDF hdf)
Helper function that returns a concatenation of the loadpaths in the provided HDF. |
static List<String> |
getLoadPaths(HDF hdf,
boolean allowEmpty)
Helper function that returns a concatenation of the loadpaths in the provided HDF. |
static File |
locateFile(List<String> loadpaths,
String filename)
Given an ordered list of directories to look in, locate the specified file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String HDF_LOADPATHS
Method Detail |
---|
public static List<String> getLoadPaths(HDF hdf)
hdf
- an HDF structure containing load paths.
NullPointerException
- if no loadpaths are found.public static List<String> getLoadPaths(HDF hdf, boolean allowEmpty)
hdf
- an HDF structure containing load paths.allowEmpty
- if true
then this will return an empty list when
no loadpaths are found in the HDF object, otherwise a
NullPointerException
is thrown. Loadpaths are not needed if
no files are read in or are all specified by absolute paths.
NullPointerException
- if no loadpaths are found and allowEmpty is
false
.public static File locateFile(List<String> loadpaths, String filename)
null
if file not found.
loadpaths
- the ordered list of paths to search.filename
- the name of the file.
null
if
file not found.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |