|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
edu.harvard.hul.ois.jhove.ConfigHandler
public class ConfigHandler
SAX Parser for the configuration file.
Field Summary | |
---|---|
protected java.lang.StringBuffer |
_content
|
protected java.util.List<java.util.List<java.lang.String>> |
_handlerParams
The list of handler parameters. |
protected boolean |
_isHandler
|
protected boolean |
_isModule
|
protected java.util.List<java.util.List<java.lang.String>> |
_modParams
The list of module parameters. |
protected java.util.List<ModuleInfo> |
_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<java.lang.String,java.lang.String> |
getExtensions()
Return an associative map of configuration extensions. |
java.util.List<java.lang.String[]> |
getHandler()
Returns the List of OutputHandlers specified by the config file. |
java.util.List<java.util.List<java.lang.String>> |
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<ModuleInfo> |
getModule()
Returns the List of Modules specified by the config file. |
java.util.List<java.util.List<java.lang.String>> |
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. |
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId)
EntityResolver designed to locate the config schema. |
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, 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<java.util.List<java.lang.String>> _handlerParams
protected boolean _isHandler
protected boolean _isModule
protected java.util.List<ModuleInfo> _module
protected java.util.List<java.util.List<java.lang.String>> _modParams
Constructor Detail |
---|
public ConfigHandler()
Method Detail |
---|
public java.util.List<ModuleInfo> getModule()
Module
public java.util.List<java.util.List<java.lang.String>> getModuleParams()
getModuleParams()
are in
one-to-one correspondence with those return by getModule()
.
public java.util.List<java.util.List<java.lang.String>> getHandlerParams()
getHandlerParams()
are in
one-to-one correspondence with those return by getHandler()
.
public java.util.List<java.lang.String[]> 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<java.lang.String,java.lang.String> 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
public org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId) throws org.xml.sax.SAXException, java.io.IOException
resolveEntity
in interface org.xml.sax.EntityResolver
resolveEntity
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |