|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.harvard.hul.ois.jhove.HandlerBase
edu.harvard.hul.ois.jhove.handler.XmlHandler
edu.harvard.hul.ois.jhove.handler.AuditHandler
public class AuditHandler
JHOVE audit output handler, derived from the standard JHOVE XML handler. It is expected that this class will be used as the parent for other, more interesting output handlers. Subclasses should override the implementations of the Impl methods, e.g., endDirectoryImpl ().
Nested Class Summary |
---|
Nested classes/interfaces inherited from class edu.harvard.hul.ois.jhove.HandlerBase |
---|
HandlerBase.SynchronizedDateFormat |
Field Summary | |
---|---|
protected java.lang.String |
_home
Home directory of the audit. |
protected java.util.Map |
_mimeType
Number of files processed by MIME type. |
protected int |
_nAudit
Number of files audited. |
protected java.util.Map |
_stateMap
State map. |
protected java.util.Stack |
_stateStack
State stack. |
protected long |
_t0
Initial time. |
Fields inherited from class edu.harvard.hul.ois.jhove.HandlerBase |
---|
_app, _base, _date, _defaultParams, _encoding, _init, _je, _level, _logger, _name, _note, _param, _release, _rights, _specification, _vendor, _writer, date, dateTime, iso8601 |
Constructor Summary | |
---|---|
AuditHandler()
Instantiate a AudiHandler object. |
Method Summary | |
---|---|
void |
endDirectory()
Callback indicating a directory is finished being processed. |
void |
endDirectoryImpl(AuditState state)
Local extension to the standard callback indicating a directory is finished being processed. |
boolean |
okToProcess(java.lang.String filepath)
Determine whether or not to process the file. |
boolean |
okToProcessImpl(java.lang.String filepath,
AuditState state)
Local extension to standard callback that determines whether or not to process the file. |
void |
show(RepInfo info)
Outputs the information contained in a RepInfo object |
void |
showFooter()
Do the final output. |
void |
showFooterImpl(AuditState state)
Local extension to the standard callback that does the final output. |
void |
showHeader()
Do the initial output. |
AuditState |
showHeaderImpl(java.lang.String directory)
Local extension to the standard callback that does the initial output. |
void |
showImpl(RepInfo info,
AuditState state)
Local extension to the standard callback that outputs the information contained in a RepInfo object |
void |
startDirectory(java.lang.String directory)
Callback indicating a new directory is being processed. |
void |
startDirectoryImpl(AuditState state)
Local extension to the standard callback indicating a new directory is being processed. |
Methods inherited from class edu.harvard.hul.ois.jhove.HandlerBase |
---|
analyze, applyDefaultParams, close, doctype, doctype, doubleArray, element, element, element, element, elementEnd, elementStart, elementStart, getDate, getEncoding, getIndent, getName, getNote, getRelease, getRights, getSpecification, getVendor, init, integerArray, integerArray, longArray, param, rationalArray, rationalArray10, reset, resetParams, setApp, setBase, setDefaultParams, setEncoding, setWriter, toDateTime, xmlDecl, xmlDecl |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String _home
protected java.util.Map _mimeType
protected java.util.Map _stateMap
protected java.util.Stack _stateStack
protected long _t0
protected int _nAudit
Constructor Detail |
---|
public AuditHandler()
Method Detail |
---|
public final void endDirectory()
endDirectory
in interface OutputHandler
endDirectory
in class HandlerBase
public void endDirectoryImpl(AuditState state)
state
- Audit handler statepublic final boolean okToProcess(java.lang.String filepath)
okToProcess
in interface OutputHandler
okToProcess
in class HandlerBase
filepath
- File pathnamepublic boolean okToProcessImpl(java.lang.String filepath, AuditState state)
filepath
- File pathnamestate
- Audit handler statepublic void show(RepInfo info)
show
in interface OutputHandler
show
in class XmlHandler
info
- Object representation informationpublic void showImpl(RepInfo info, AuditState state)
info
- Object representation informationstate
- Audit handler statepublic void showFooter()
showFooter
in interface OutputHandler
showFooter
in class XmlHandler
public void showFooterImpl(AuditState state)
state
- Audit handler statepublic void showHeader()
showHeader
in interface OutputHandler
showHeader
in class XmlHandler
public AuditState showHeaderImpl(java.lang.String directory)
directory
- Current directory filepathpublic void startDirectory(java.lang.String directory)
startDirectory
in interface OutputHandler
startDirectory
in class HandlerBase
directory
- Directory pathpublic void startDirectoryImpl(AuditState state)
state
- Audit handler state
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |