|
andyLib v0.9.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.andynaz.utils.UtilsProgram
public class UtilsProgram
Useful method to manage a program that uses the andyLib project.
Field Summary | |
---|---|
private static Properties |
versionData
Keeps informations about the program versions. |
Constructor Summary | |
---|---|
private |
UtilsProgram()
|
Method Summary | |
---|---|
static String |
getBuildDate()
Returns the build date of the project. |
static String |
getVersion()
Returns the version of the project. |
private static void |
loadVersionData()
Reads the version data from the file. |
static void |
printHeader()
Print a program header. |
static void |
printHelp()
Print a program help. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static Properties versionData
Constructor Detail |
---|
private UtilsProgram()
Method Detail |
---|
public static void printHeader()
header.txt
file in the package it/andynaz/resources
(it has to be stored somewhere in the classpath).
To be printed "well" on most terminal, each line should have a maximum length of 80 characters.
public static void printHelp() throws Exception
help.txt
file in the package it/andynaz/resources
(it has to be stored somewhere in the classpath).
To be printed "well" on most terminal, each line should have a maximum length of 80 characters.
Exception
private static void loadVersionData() throws IOException
getVersion
or getBuildDate
.
IOException
- if the version data could not be readpublic static String getVersion() throws IOException
IOException
- if the version data could not be readpublic static String getBuildDate() throws IOException
IOException
- if the version data could not be read
|
andyLib v0.9.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |