public class ConfigHandler extends org.xml.sax.helpers.DefaultHandler
| Modifier and Type | Field and Description |
|---|---|
protected StringBuffer |
_content |
protected List<List<String>> |
_handlerParams
The list of handler parameters.
|
protected boolean |
_isHandler |
protected boolean |
_isModule |
protected List<List<String>> |
_modParams
The list of module parameters.
|
protected List<ModuleInfo> |
_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(String namespaceURI,
String localName,
String rawName)
SAX parser callback method.
|
int |
getBufferSize()
Returns the buffer size specified in the config file.
|
String |
getEncoding()
Returns the character encoding specified by the config file.
|
Map<String,String> |
getExtensions()
Return an associative map of configuration extensions.
|
List<String[]> |
getHandler()
Returns the List of OutputHandlers specified by the config file.
|
List<List<String>> |
getHandlerParams()
Returns the List of handler parameters specified by the config file.
|
String |
getJhoveHome()
Returns the path to the application's home directory,
with final path separator.
|
String |
getLogLevel()
Returns the name of the desired log level.
|
String |
getMixVsn()
Returns the MIX schema version specified by the config file.
|
List<ModuleInfo> |
getModule()
Returns the List of Modules specified by the config file.
|
List<List<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.
|
String |
getTempDir()
Returns the temporary directory path specified by the config file,
with final path separator.
|
InputSource |
resolveEntity(String publicId,
String systemId)
EntityResolver designed to locate the config schema.
|
void |
startElement(String namespaceURI,
String localName,
String rawName,
Attributes atts)
SAX parser callback method.
|
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningprotected StringBuffer _content
protected List<List<String>> _handlerParams
protected boolean _isHandler
protected boolean _isModule
protected List<ModuleInfo> _module
public List<ModuleInfo> getModule()
Modulepublic List<List<String>> getModuleParams()
getModuleParams() are in
one-to-one correspondence with those return by getModule().public List<List<String>> getHandlerParams()
getHandlerParams() are in
one-to-one correspondence with those return by getHandler().public List<String[]> getHandler()
OutputHandlerpublic String getTempDir()
public String getMixVsn()
public int getSigBytes()
public String getEncoding()
public int getBufferSize()
public Map<String,String> getExtensions()
public String getJhoveHome()
public String getLogLevel()
public void startElement(String namespaceURI, String localName, String rawName, Attributes atts) throws SAXException
startElement in interface ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void endElement(String namespaceURI, String localName, String rawName) throws SAXException
endElement in interface ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException
resolveEntity in interface EntityResolverresolveEntity in class org.xml.sax.helpers.DefaultHandlerSAXExceptionIOExceptionCopyright © 2008–2017 The Open Preservation Foundation. All rights reserved.