public class UtilsProgram extends Object
Modifier and Type | Field and Description |
---|---|
private static Properties |
versionData
Keeps informations about the program versions.
|
Modifier | Constructor and Description |
---|---|
private |
UtilsProgram() |
Modifier and Type | Method and Description |
---|---|
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.
|
private static Properties versionData
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© 2013 andynaz - http://andynaz.altervista.org