Class XmlHandler
- java.lang.Object
-
- edu.harvard.hul.ois.jhove.HandlerBase
-
- edu.harvard.hul.ois.jhove.handler.XmlHandler
-
- All Implemented Interfaces:
OutputHandler
- Direct Known Subclasses:
AuditHandler
public class XmlHandler extends HandlerBase
OutputHandler for XML output.- See Also:
- Schema for JHOVE XML output
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class edu.harvard.hul.ois.jhove.HandlerBase
HandlerBase.SynchronizedDateFormat
-
-
Constructor Summary
Constructors Constructor Description XmlHandler()Creates an XmlHandler.XmlHandler(String name, String release, int[] date, String note, String rights)Constructor for use by subclasses.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrationalToString(StringBuffer buf, String tag, String margin, Rational r)Appends a Rational value to a StringBuffervoidshow()Outputs minimal information about the applicationvoidshow(App app)Outputs detailed information about the application, including configuration, available modules and handlers, etc.voidshow(Module module)Outputs information about a Modulevoidshow(OutputHandler handler)Outputs information about the OutputHandler specified in the parametervoidshow(RepInfo info)Outputs the information contained in a RepInfo objectprotected voidshowAESAudioMetadata(AESAudioMetadata aes)Display the audio metadata formatted according to the AES schema.protected voidshowAgent(Agent agent, String label)PRIVATE INSTANCE METHODS.protected voidshowArrayProperty(Property property, String margin)protected voidshowChangeHistory10(NisoImageMetadata niso, String margin)protected voidshowChangeHistory20(NisoImageMetadata niso, String margin)protected voidshowChecksum(Checksum checksum)protected voidshowDocument(Document document)voidshowFooter()Do the final output.voidshowHeader()Do the initial output.protected voidshowIdentifier(Identifier identifier)protected voidshowMessage(Message message)protected voidshowNisoBasicDigitalObjectInformation10(NisoImageMetadata niso, String margin)protected voidshowNisoBasicDigitalObjectInformation20(NisoImageMetadata niso, String margin)protected voidshowNisoBasicImageInformation10(NisoImageMetadata niso, String margin)protected voidshowNisoBasicImageInformation20(NisoImageMetadata niso, String margin)protected voidshowNisoBasicImageParameters02(NisoImageMetadata niso, String margin)protected voidshowNisoChangeHistory02(NisoImageMetadata niso, String margin)protected voidshowNisoImageAssessmentMetadata10(NisoImageMetadata niso, String margin)protected voidshowNisoImageAssessmentMetadata20(NisoImageMetadata niso, String margin)protected voidshowNisoImageCaptureMetadata10(NisoImageMetadata niso, String margin)protected voidshowNisoImageCaptureMetadata20(NisoImageMetadata niso, String margin)protected voidshowNisoImageCreation02(NisoImageMetadata niso, String margin)protected voidshowNisoImageMetadata(NisoImageMetadata niso)Display the NISO image metadata formatted according to the MIX schema.protected voidshowNisoImageMetadata02(NisoImageMetadata niso)Display the NISO image metadata formatted according to the MIX 0.2 schema.protected voidshowNisoImageMetadata10(NisoImageMetadata niso)Display the NISO image metadata formatted according to the MIX 1.0 schema.protected voidshowNisoImageMetadata20(NisoImageMetadata niso)Display the NISO image metadata formatted according to the MIX 2.0 schema.protected voidshowNisoImagingPerformanceAssessment02(NisoImageMetadata niso, String margin)protected voidshowProperty(Property property)protected voidshowSignature(Signature signature)protected voidshowTextMDMetadata(TextMDMetadata textMD)Display the text metadata formatted according to the textMD schema (see http://www.loc.gov/standards/textMD).protected StringvalueToString(Object obj)-
Methods inherited from class edu.harvard.hul.ois.jhove.HandlerBase
analyze, applyDefaultParams, close, doctype, doctype, doubleArray, element, element, element, element, elementEnd, elementStart, elementStart, endDirectory, getDate, getEncoding, getIndent, getName, getNote, getRelease, getRights, getSpecification, getVendor, init, integerArray, integerArray, longArray, okToProcess, param, rationalArray, rationalArray10, reset, resetParams, setApp, setBase, setDefaultParams, setEncoding, setWriter, startDirectory, toDateTime, xmlDecl, xmlDecl
-
-
-
-
Method Detail
-
show
public void show()
Outputs minimal information about the application- Specified by:
showin interfaceOutputHandler- Specified by:
showin classHandlerBase
-
show
public void show(App app)
Outputs detailed information about the application, including configuration, available modules and handlers, etc.- Specified by:
showin interfaceOutputHandler- Specified by:
showin classHandlerBase
-
show
public void show(OutputHandler handler)
Outputs information about the OutputHandler specified in the parameter- Specified by:
showin interfaceOutputHandler- Specified by:
showin classHandlerBase
-
show
public void show(Module module)
Outputs information about a Module- Specified by:
showin interfaceOutputHandler- Specified by:
showin classHandlerBase
-
show
public void show(RepInfo info)
Outputs the information contained in a RepInfo object- Specified by:
showin interfaceOutputHandler- Specified by:
showin classHandlerBase
-
showChecksum
protected void showChecksum(Checksum checksum)
-
showDocument
protected void showDocument(Document document)
-
showFooter
public void showFooter()
Do the final output. This should be in a suitable format for including multiple files between the header and the footer, and the XML of the header and footer must balance out.- Specified by:
showFooterin interfaceOutputHandler- Specified by:
showFooterin classHandlerBase
-
showHeader
public void showHeader()
Do the initial output. This should be in a suitable format for including multiple files between the header and the footer, and the XML of the header and footer must balance out.- Specified by:
showHeaderin interfaceOutputHandler- Specified by:
showHeaderin classHandlerBase
-
showIdentifier
protected void showIdentifier(Identifier identifier)
-
showMessage
protected void showMessage(Message message)
-
showSignature
protected void showSignature(Signature signature)
-
showProperty
protected void showProperty(Property property)
-
showTextMDMetadata
protected void showTextMDMetadata(TextMDMetadata textMD)
Display the text metadata formatted according to the textMD schema (see http://www.loc.gov/standards/textMD).- Parameters:
textMD- textMD text metadata
-
showNisoImageMetadata
protected void showNisoImageMetadata(NisoImageMetadata niso)
Display the NISO image metadata formatted according to the MIX schema. The schema which is used may be 0.2 or 1.0 or 2.0, depending on the module parameters.- Parameters:
niso- NISO image metadata
-
showNisoImageMetadata02
protected void showNisoImageMetadata02(NisoImageMetadata niso)
Display the NISO image metadata formatted according to the MIX 0.2 schema.
-
showNisoBasicImageParameters02
protected void showNisoBasicImageParameters02(NisoImageMetadata niso, String margin)
-
showNisoImageCreation02
protected void showNisoImageCreation02(NisoImageMetadata niso, String margin)
-
showNisoImagingPerformanceAssessment02
protected void showNisoImagingPerformanceAssessment02(NisoImageMetadata niso, String margin)
-
showNisoChangeHistory02
protected void showNisoChangeHistory02(NisoImageMetadata niso, String margin)
-
showNisoImageMetadata10
protected void showNisoImageMetadata10(NisoImageMetadata niso)
Display the NISO image metadata formatted according to the MIX 1.0 schema.
-
showNisoBasicDigitalObjectInformation10
protected void showNisoBasicDigitalObjectInformation10(NisoImageMetadata niso, String margin)
-
showNisoBasicImageInformation10
protected void showNisoBasicImageInformation10(NisoImageMetadata niso, String margin)
-
showNisoImageCaptureMetadata10
protected void showNisoImageCaptureMetadata10(NisoImageMetadata niso, String margin)
-
showNisoImageAssessmentMetadata10
protected void showNisoImageAssessmentMetadata10(NisoImageMetadata niso, String margin)
-
showChangeHistory10
protected void showChangeHistory10(NisoImageMetadata niso, String margin)
-
showNisoImageMetadata20
protected void showNisoImageMetadata20(NisoImageMetadata niso)
Display the NISO image metadata formatted according to the MIX 2.0 schema.
-
showNisoBasicDigitalObjectInformation20
protected void showNisoBasicDigitalObjectInformation20(NisoImageMetadata niso, String margin)
-
showNisoBasicImageInformation20
protected void showNisoBasicImageInformation20(NisoImageMetadata niso, String margin)
-
showNisoImageCaptureMetadata20
protected void showNisoImageCaptureMetadata20(NisoImageMetadata niso, String margin)
-
showNisoImageAssessmentMetadata20
protected void showNisoImageAssessmentMetadata20(NisoImageMetadata niso, String margin)
-
showChangeHistory20
protected void showChangeHistory20(NisoImageMetadata niso, String margin)
-
showAESAudioMetadata
protected void showAESAudioMetadata(AESAudioMetadata aes)
Display the audio metadata formatted according to the AES schema.- Parameters:
aes- AES audio metadata
-
rationalToString
public void rationalToString(StringBuffer buf, String tag, String margin, Rational r)
Appends a Rational value to a StringBuffer
-
-