Class TextHandler
- java.lang.Object
-
- edu.harvard.hul.ois.jhove.HandlerBase
-
- edu.harvard.hul.ois.jhove.handler.TextHandler
-
- All Implemented Interfaces:
OutputHandler
public class TextHandler extends HandlerBase
OutputHandler for plain text output.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class edu.harvard.hul.ois.jhove.HandlerBase
HandlerBase.SynchronizedDateFormat
-
-
Constructor Summary
Constructors Constructor Description TextHandler()Creates a TextHandler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidshow()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 objectvoidshowFooter()Do the final output.voidshowHeader()Do the initial output.protected voidshowNisoImageMetadata(NisoImageMetadata niso, String margin, boolean rawOutput)Display the NISO image metadata formatted according to the MIX schema.-
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
-
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.- 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.- Specified by:
showHeaderin interfaceOutputHandler- Specified by:
showHeaderin classHandlerBase
-
showNisoImageMetadata
protected void showNisoImageMetadata(NisoImageMetadata niso, String margin, boolean rawOutput)
Display the NISO image metadata formatted according to the MIX schema. The schema which is used may be 0.2 or 1.0, depending on the module parameters.- Parameters:
niso- NISO image metadata
-
-