|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.xml.sax.helpers.DefaultHandler | +--edu.harvard.hul.ois.jhove.ConfigHandler
SAX Parser for the configuration file.
Field Summary | |
protected java.lang.StringBuffer |
_content
|
protected java.util.List |
_handlerParams
The list of handler parameters. |
protected boolean |
_isHandler
|
protected boolean |
_isModule
|
protected java.util.List |
_modParams
The list of module parameters. |
protected java.util.List |
_module
The list of modules. |
Constructor Summary | |
ConfigHandler()
Creates a ConfigHandler. |
Method Summary | |
void |
characters(char[] ch,
int start,
int length)
SAX parser callback method. |
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String rawName)
SAX parser callback method. |
int |
getBufferSize()
Returns the buffer size specified in the config file. |
java.lang.String |
getEncoding()
Returns the character encoding specified by the config file. |
java.util.Map |
getExtensions()
Return an associative map of configuration extensions. |
java.util.List |
getHandler()
Returns the List of OutputHandlers specified by the config file. |
java.util.List |
getHandlerParams()
Returns the List of handler parameters specified by the config file. |
java.lang.String |
getJhoveHome()
Returns the path to the application's home directory, with final path separator. |
java.lang.String |
getLogLevel()
Returns the name of the desired log level. |
java.lang.String |
getMixVsn()
Returns the MIX schema version specified by the config file. |
java.util.List |
getModule()
Returns the List of Modules specified by the config file. |
java.util.List |
getModuleParams()
Returns the List of module parameters specified by the config file. |
int |
getSigBytes()
Returns the number of bytes to examine when looking for an indefinitely positioned signature, or checking the first sigBytes bytes of a file in lieu of a signature. |
java.lang.String |
getTempDir()
Returns the temporary directory path specified by the config file, with final path separator. |
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String rawName,
org.xml.sax.Attributes atts)
SAX parser callback method. |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.StringBuffer _content
protected java.util.List _handlerParams
protected boolean _isHandler
protected boolean _isModule
protected java.util.List _module
protected java.util.List _modParams
Constructor Detail |
public ConfigHandler()
Method Detail |
public java.util.List getModule()
Module
public java.util.List getModuleParams()
getModuleParams()
are in
one-to-one correspondence with those return by getModule()
.
public java.util.List getHandlerParams()
getHandlerParams()
are in
one-to-one correspondence with those return by getHandler()
.
public java.util.List getHandler()
OutputHandler
public java.lang.String getTempDir()
public java.lang.String getMixVsn()
public int getSigBytes()
public java.lang.String getEncoding()
public int getBufferSize()
public java.util.Map getExtensions()
public java.lang.String getJhoveHome()
public java.lang.String getLogLevel()
public void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String rawName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
public void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String rawName) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |