public class ConfigHandler
extends org.xml.sax.helpers.DefaultHandler
| Modifier and Type | Field and Description |
|---|---|
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<java.lang.String[]> |
_module
The list of modules.
|
| Constructor and Description |
|---|
ConfigHandler()
Creates a ConfigHandler.
|
| Modifier and Type | Method and Description |
|---|---|
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<java.lang.String[]> |
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.
|
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<java.lang.String[]> _module
protected java.util.List<java.util.List<java.lang.String>> _modParams
public java.util.List<java.lang.String[]> getModule()
Modulepublic 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()
OutputHandlerpublic 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.ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
characters in interface org.xml.sax.ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXExceptionpublic 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.ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXExceptionpublic 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.EntityResolverresolveEntity in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXExceptionjava.io.IOException