edu.harvard.hul.ois.jhove
Class DefaultConfigurationBuilder
java.lang.Object
edu.harvard.hul.ois.jhove.DefaultConfigurationBuilder
public class DefaultConfigurationBuilder
- extends java.lang.Object
This class creates a default configuration if no valid configuration file
is found.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultConfigurationBuilder
public DefaultConfigurationBuilder(java.io.File location)
- Constructor. A location for the file may be specified or
left null,
writeDefaultConfigFile
public void writeDefaultConfigFile()
throws java.io.IOException
- Throws:
java.io.IOException
getConfigFile
public java.io.File getConfigFile()
getModules
protected java.util.List<ModuleInfo> getModules()
getDefaultConfigParameters
protected java.lang.String[] getDefaultConfigParameters(java.lang.Class<?> c)
- We can't have a static method in an Interface and override it, so we
have to get a bit ugly to fake static inheritance. The advantage of
this is that only the Modules with non-null default config file
parameters have to implement the defaultConfigParams static field.