public final class CSUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
HDF_LOADPATHS |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static final String HDF_LOADPATHS
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.Copyright © 2010-2012 Google. All Rights Reserved.