Package edu.harvard.hul.ois.jhove
Class App
- java.lang.Object
-
- edu.harvard.hul.ois.jhove.App
-
public final class App extends Object
The application class for JHOVE. One instance of this class is generated by the application. Various utility and informational methods are contained here.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DategetDate()Returns application code creation dateStringgetName()Returns the name of this applicationStringgetRelease()Returns the release identifier for this application.StringgetRights()Returns the rights string.StringgetUsage()Returns the usage string, which should be output when the user enters a command line with only the application name.static AppnewAppWithName(String name)voidshow(OutputHandler handler)Outputs detailed information about the application, including configuration, available modules and handlers, etc.
-
-
-
Constructor Detail
-
App
public App(String name, String release, int[] date, String usage, String rights)
Creates an App object.- Parameters:
name- Name of the application.release- Release identifier.date- Last modification date of the application code, in the form of an array of three numbers.date[0]is the year,date[1]the month, anddate[2]the day.usage- String summarizing command line usage, to output when app name is typed with no arguments or flags.rights- Copyright or other rights statement.
-
-
Method Detail
-
getDate
public Date getDate()
Returns application code creation date
-
getName
public String getName()
Returns the name of this application
-
getRelease
public String getRelease()
Returns the release identifier for this application.
-
getRights
public String getRights()
Returns the rights string.
-
getUsage
public String getUsage()
Returns the usage string, which should be output when the user enters a command line with only the application name.
-
show
public void show(OutputHandler handler)
Outputs detailed information about the application, including configuration, available modules and handlers, etc.
-
-