|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.armatiek.infofuze.config.Config
public class Config
A singleton class that reads, validates and stores Infofuze's configuration file, infofuze-config.xml.
Method Summary | |
---|---|
void |
error(org.xml.sax.SAXParseException exception)
|
void |
fatalError(org.xml.sax.SAXParseException exception)
|
java.io.File |
getConfigFile()
Returns a file object denoting the configuration file infofuze-config.xml |
java.io.File |
getConfigSchema()
Returns a file object denoting the XML Schema file for infofuze-config.xml |
java.lang.String |
getDefaultSourceName()
|
int |
getDeferredOutputStreamThreshold()
|
java.io.File |
getHomeDir()
Returns a file object denoting the Infofuze home directory |
static Config |
getInstance()
Returns the singleton Config instance. |
java.io.File |
getJobsFile()
Returns a file object denoting the Quartz jobs configuration file jobs.xml |
java.lang.String |
getMimeType(java.lang.String name)
Returns the mime type for a file with specified name using Apache Tika. |
java.io.File |
getTasksFile()
Returns a file object denoting the tasks configuration file tasks.xml |
boolean |
isDevelopmentMode()
Returns whether this Infofuze instance is in development mode or not. |
void |
warning(org.xml.sax.SAXParseException exception)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Config getInstance()
public java.io.File getConfigFile() throws java.io.FileNotFoundException
java.io.FileNotFoundException
public java.io.File getJobsFile() throws java.io.FileNotFoundException
java.io.FileNotFoundException
public java.io.File getTasksFile() throws java.io.FileNotFoundException
java.io.FileNotFoundException
public java.io.File getConfigSchema() throws java.io.FileNotFoundException
java.io.FileNotFoundException
public java.io.File getHomeDir()
java.io.FileNotFoundException
public java.lang.String getMimeType(java.lang.String name)
name
- The name to get the mime type forpublic boolean isDevelopmentMode()
public java.lang.String getDefaultSourceName()
public int getDeferredOutputStreamThreshold()
public void error(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
error
in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException
public void fatalError(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
fatalError
in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException
public void warning(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
warning
in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |