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
OutputHandler for XML output.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.harvard.hul.ois.jhove.HandlerBase
HandlerBase.SynchronizedDateFormat -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an XmlHandler.XmlHandler(String name, String release, int[] date, String note, String rights) Constructor for use by subclasses. -
Method Summary
Modifier and TypeMethodDescriptionvoidrationalToString(StringBuffer buf, String tag, String margin, Rational r) Appends a Rational value to a StringBuffervoidshow()Outputs minimal information about the applicationvoidOutputs detailed information about the application, including configuration, available modules and handlers, etc.voidOutputs information about a Modulevoidshow(OutputHandler handler) Outputs information about the OutputHandler specified in the parametervoidOutputs the information contained in a RepInfo objectprotected voidDisplay the audio metadata formatted according to the AES schema.protected voidPRIVATE 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) voidDo the final output.voidDo 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 voidDisplay the NISO image metadata formatted according to the MIX schema.protected voidDisplay the NISO image metadata formatted according to the MIX 0.2 schema.protected voidDisplay the NISO image metadata formatted according to the MIX 1.0 schema.protected voidDisplay 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
-
Constructor Details
-
XmlHandler
public XmlHandler()Creates an XmlHandler. -
XmlHandler
Constructor for use by subclasses.
-
-
Method Details
-
show
public void show()Outputs minimal information about the application- Specified by:
showin interfaceOutputHandler- Specified by:
showin classHandlerBase
-
show
Outputs detailed information about the application, including configuration, available modules and handlers, etc.- Specified by:
showin interfaceOutputHandler- Specified by:
showin classHandlerBase
-
show
Outputs information about the OutputHandler specified in the parameter- Specified by:
showin interfaceOutputHandler- Specified by:
showin classHandlerBase
-
show
Outputs information about a Module- Specified by:
showin interfaceOutputHandler- Specified by:
showin classHandlerBase
-
show
Outputs the information contained in a RepInfo object- Specified by:
showin interfaceOutputHandler- Specified by:
showin classHandlerBase
-
showAgent
PRIVATE INSTANCE METHODS. -
showChecksum
-
showDocument
-
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
-
showMessage
-
showSignature
-
valueToString
-
showProperty
-
showArrayProperty
-
showTextMDMetadata
Display the text metadata formatted according to the textMD schema (see http://www.loc.gov/standards/textMD).- Parameters:
textMD- textMD text metadata
-
showNisoImageMetadata
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
Display the NISO image metadata formatted according to the MIX 0.2 schema. -
showNisoBasicImageParameters02
-
showNisoImageCreation02
-
showNisoImagingPerformanceAssessment02
-
showNisoChangeHistory02
-
showNisoImageMetadata10
Display the NISO image metadata formatted according to the MIX 1.0 schema. -
showNisoBasicDigitalObjectInformation10
-
showNisoBasicImageInformation10
-
showNisoImageCaptureMetadata10
-
showNisoImageAssessmentMetadata10
-
showChangeHistory10
-
showNisoImageMetadata20
Display the NISO image metadata formatted according to the MIX 2.0 schema. -
showNisoBasicDigitalObjectInformation20
-
showNisoBasicImageInformation20
-
showNisoImageCaptureMetadata20
-
showNisoImageAssessmentMetadata20
-
showChangeHistory20
-
showAESAudioMetadata
Display the audio metadata formatted according to the AES schema.- Parameters:
aes- AES audio metadata
-
rationalToString
Appends a Rational value to a StringBuffer
-