|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.report.util.Utility
public class Utility
Constructor Summary | |
---|---|
Utility()
|
Method Summary | |
---|---|
static String |
getAbsolutePath(String filePath)
Method to convert the file path to absolute, if relative |
static String |
getDateTime()
Get the current date time. |
static String |
getDirPath(String pathname)
Remove the filename/expression from the pathname and return base path TODO There is a FileUtil or File method that can do this for me |
static String |
getFileDate()
|
static String |
getHomeDirectory()
|
static List<String> |
getLocalFileList(String path)
|
static boolean |
getNodePropsBool(Properties nodeProps,
String key)
|
static String |
getNodePropsString(Properties nodeProps,
String key,
boolean needed)
|
static List<String> |
getValuesFromXML(File file,
String tagName,
String attributeName)
Utility method to extract values from an XML file. |
static File |
replaceStringInFile(String oldStr,
String newStr,
File in,
File out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Utility()
Method Detail |
---|
public static String getDateTime()
public static String getFileDate()
public static List<String> getLocalFileList(String path)
public static String getHomeDirectory()
public static String getAbsolutePath(String filePath)
filePath
- Current path given through the command-line
public static File replaceStringInFile(String oldStr, String newStr, File in, File out) throws IOException
IOException
public static List<String> getValuesFromXML(File file, String tagName, String attributeName) throws Exception
file
- tagName
- name of the tag we are looking forattributeName
- if applicable, else set to null
ParserConfigurationException
SAXException
IOException
Exception
public static String getNodePropsString(Properties nodeProps, String key, boolean needed) throws LogsManagerException
LogsManagerException
public static boolean getNodePropsBool(Properties nodeProps, String key) throws LogsManagerException
LogsManagerException
public static String getDirPath(String pathname)
pathname
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |