|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectanl.aida.util.AIDAUtils
public class AIDAUtils
General static utility methods.
Field Summary | |
---|---|
private static java.text.SimpleDateFormat |
longFormat
|
private static java.text.SimpleDateFormat |
shortFormat
|
Constructor Summary | |
---|---|
AIDAUtils()
|
Method Summary | |
---|---|
static java.lang.String |
formatDate(java.util.Date date)
Formats the specified data in long format "MMMMM dd, yyyy HH:mm:ss z". |
static java.lang.String |
formatShortDate(java.util.Date date)
Formats the specified data in short format "MM/dd/yyyy". |
static java.util.Date |
getDate(java.lang.String strDate)
Gets a date for the specified string. |
static java.util.Map<java.lang.String,java.lang.String> |
loadMap(java.lang.String fileName,
java.lang.String delimiter)
Creates a hash map from the specified file. |
static java.lang.String |
toInternalFormat(java.lang.String term)
Converts a term to the internal format used by AIDA. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static java.text.SimpleDateFormat shortFormat
private static java.text.SimpleDateFormat longFormat
Constructor Detail |
---|
public AIDAUtils()
Method Detail |
---|
public static java.lang.String formatDate(java.util.Date date)
date
- the date to format
public static java.lang.String formatShortDate(java.util.Date date)
date
- the date to format
public static java.lang.String toInternalFormat(java.lang.String term)
term
- the term to convert.
public static java.util.Date getDate(java.lang.String strDate)
strDate
- the date in YYYYMMDD
public static java.util.Map<java.lang.String,java.lang.String> loadMap(java.lang.String fileName, java.lang.String delimiter) throws java.io.IOException
fileName
- delimiter
-
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |