Class JhoveRepInfoReport
java.lang.Object
com.adobe.epubcheck.api.MasterReport
org.ithaka.portico.jhove.module.epub.JhoveRepInfoReport
- All Implemented Interfaces:
com.adobe.epubcheck.api.LocalizableReport,com.adobe.epubcheck.api.Report
public class JhoveRepInfoReport
extends com.adobe.epubcheck.api.MasterReport
This is a custom report to extend the EPUBCheck
MasterReport. Its
purpose is to collect the properties needed to producing a JHOVE RepInfo
object while the EPUB is being validated.- Author:
- Karen Hanson
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected longprotected Stringprotected Stringprotected List<com.adobe.epubcheck.reporting.CheckMessage>protected static final Stringprotected List<com.adobe.epubcheck.reporting.CheckMessage>protected Stringprotected Stringprotected static final Stringprotected Stringprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected Stringprotected List<com.adobe.epubcheck.reporting.CheckMessage>protected static final Stringprotected Stringprotected Stringprotected longprotected Stringprotected List<com.adobe.epubcheck.reporting.CheckMessage>protected List<com.adobe.epubcheck.reporting.CheckMessage>Fields inherited from class com.adobe.epubcheck.api.MasterReport
allReportedMessageIds -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgenerate()List<com.adobe.epubcheck.reporting.CheckMessage>Get all messages generated during validationlongGet EPUB character count.String[]Get EPUB contributors as string array.Get EPUB file creation dateString[]Get EPUB creators as string arraygetDate()Get EPUB publication dateGet EPUB embedded fontsintintGet set of features identified in the EPUBGet format of file validated (application/octet-stream if not an EPUB)Get EPUB identifier.intGet EPUB language.Get EPUB file last modified dateString[]Get list of media types present in the EPUB packagelongGet EPUB page count.Get EPUB publisherString[]Get all EPUB references - this array includes both referenced and embedded material.Get EPUB referenced fonts - these fonts are not embeddedString[]Get a list of all EPUB resources - files that are either stored in the EPUB package or else stored outside of the EPUB but used as a key component e.g.String[]Get EPUB rights statements as string arrayString[]Get EPUB subject headingsString[]Get EPUB titles as string arrayintGet EPUB version validated against - EPUBcheck will use the most recent minor release version for the EPUB's major version e.g.intvoidvoidvoidmessage(com.adobe.epubcheck.messages.Message message, com.adobe.epubcheck.api.EPUBLocation location, Object... args) Methods inherited from class com.adobe.epubcheck.api.MasterReport
close, getCustomMessageFile, getDictionary, getEpubFileName, getLocale, getMessages, getReportingLevel, message, setCustomMessageFile, setEpubFileName, setLocale, setOverrideFile, setReportingLevel
-
Field Details
-
generationDate
-
creationDate
-
lastModifiedDate
-
identifier
-
titles
-
creators
-
contributors
-
subjects
-
publisher
-
rights
-
date
-
mediaTypes
-
formatName
-
formatVersion
-
pagesCount
protected long pagesCount -
charsCount
protected long charsCount -
language
-
embeddedFonts
-
refFonts
-
references
-
resources
-
hasEncryption
protected boolean hasEncryption -
hasSignatures
protected boolean hasSignatures -
hasAudio
protected boolean hasAudio -
hasVideo
protected boolean hasVideo -
hasFixedLayout
protected boolean hasFixedLayout -
hasScripts
protected boolean hasScripts -
warns
-
errors
-
fatalErrors
-
usageMsgs
-
infoMsgs
-
ISO_DATE_PATTERN
- See Also:
-
FALLBACK_FORMAT
- See Also:
-
FRAGMENT_START
- See Also:
-
-
Constructor Details
-
JhoveRepInfoReport
-
-
Method Details
-
message
public void message(com.adobe.epubcheck.messages.Message message, com.adobe.epubcheck.api.EPUBLocation location, Object... args) -
info
-
getCreationDate
Get EPUB file creation date- Returns:
-
getLastModifiedDate
Get EPUB file last modified date- Returns:
-
getFormat
Get format of file validated (application/octet-stream if not an EPUB)- Returns:
-
getVersion
Get EPUB version validated against - EPUBcheck will use the most recent minor release version for the EPUB's major version e.g. for EPUBCheck 4.2.0, all EPUB 2s will be validated against the 2.0.1 spec, all EPUB 3s will be validated against the EPUB 3.2 spec.- Returns:
- version validated as
-
getAllMessages
Get all messages generated during validation- Returns:
-
getPageCount
public long getPageCount()Get EPUB page count.- Returns:
-
getCharacterCount
public long getCharacterCount()Get EPUB character count.- Returns:
-
getLanguage
Get EPUB language.- Returns:
-
getIdentifier
Get EPUB identifier.- Returns:
-
getTitles
Get EPUB titles as string array- Returns:
-
getCreators
Get EPUB creators as string array- Returns:
-
getContributors
Get EPUB contributors as string array.- Returns:
-
getDate
Get EPUB publication date- Returns:
-
getPublisher
Get EPUB publisher- Returns:
-
getSubjects
Get EPUB subject headings- Returns:
-
getRights
Get EPUB rights statements as string array- Returns:
-
getEmbeddedFonts
Get EPUB embedded fonts- Returns:
-
getRefFonts
Get EPUB referenced fonts - these fonts are not embedded- Returns:
-
getReferences
Get all EPUB references - this array includes both referenced and embedded material.- Returns:
-
getResources
Get a list of all EPUB resources - files that are either stored in the EPUB package or else stored outside of the EPUB but used as a key component e.g. embedded video or audio.- Returns:
-
getMediaTypes
Get list of media types present in the EPUB package- Returns:
-
getFeatures
Get set of features identified in the EPUB- Returns:
-
getErrorCount
public int getErrorCount()- Specified by:
getErrorCountin interfacecom.adobe.epubcheck.api.Report- Overrides:
getErrorCountin classcom.adobe.epubcheck.api.MasterReport
-
getWarningCount
public int getWarningCount()- Specified by:
getWarningCountin interfacecom.adobe.epubcheck.api.Report- Overrides:
getWarningCountin classcom.adobe.epubcheck.api.MasterReport
-
getFatalErrorCount
public int getFatalErrorCount()- Specified by:
getFatalErrorCountin interfacecom.adobe.epubcheck.api.Report- Overrides:
getFatalErrorCountin classcom.adobe.epubcheck.api.MasterReport
-
getUsageCount
public int getUsageCount()- Specified by:
getUsageCountin interfacecom.adobe.epubcheck.api.Report- Overrides:
getUsageCountin classcom.adobe.epubcheck.api.MasterReport
-
getInfoCount
public int getInfoCount()- Specified by:
getInfoCountin interfacecom.adobe.epubcheck.api.Report- Overrides:
getInfoCountin classcom.adobe.epubcheck.api.MasterReport
-
generate
public int generate() -
initialize
public void initialize()
-