Class EpubChecker
java.lang.Object
com.adobe.epubcheck.tool.EpubChecker
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) File(package private) boolean(package private) booleanprivate static final String(package private) boolean(package private) boolean(package private) File(package private) boolean(package private) boolean(package private) boolean(package private) Fileprivate Localeprivate Messages(package private) String(package private) String(package private) EPUBProfile(package private) int(package private) boolean(package private) EPUBVersion(package private) boolean(package private) boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate Reportprivate voidThis method displays a short help message that describes the command-line usage of this toolprivate voidThis method displays the EpubCheck version.private voiddumpMessageDictionary(Report report) private voidprintEpubCheckCompleted(Report report) private booleanprocessArguments(String[] args) This method iterates through all of the arguments passed to main to find accepted flags and the name of the file to check.intprocessEpubFile(String[] args) Deprecated.private intprocessFile(Report report) intprivate void(package private) intvalidateFile(String path, EPUBVersion version, Report report, EPUBProfile profile)
-
Field Details
-
path
String path -
mode
String mode -
profile
EPUBProfile profile -
version
EPUBVersion version -
expanded
boolean expanded -
keep
boolean keep -
jsonOutput
boolean jsonOutput -
xmlOutput
boolean xmlOutput -
xmpOutput
boolean xmpOutput -
fileOut
File fileOut -
listChecksOut
File listChecksOut -
customMessageFile
File customMessageFile -
listChecks
boolean listChecks -
displayHelp
boolean displayHelp -
displayVersion
boolean displayVersion -
useCustomMessageFile
boolean useCustomMessageFile -
failOnWarnings
boolean failOnWarnings -
messages
-
locale
-
reportingLevel
int reportingLevel -
modeMimeTypeMap
-
EPUBCHECK_CUSTOM_MESSAGE_FILE
- See Also:
-
-
Constructor Details
-
EpubChecker
public EpubChecker()
-
-
Method Details
-
getLocale
-
run
-
processEpubFile
Deprecated. -
validateFile
-
processFile
-
printEpubCheckCompleted
-
dumpMessageDictionary
- Throws:
IOException
-
createReport
- Throws:
IOException
-
processArguments
This method iterates through all of the arguments passed to main to find accepted flags and the name of the file to check. This method returns the last argument that ends with ".epub" (which is assumed to be the file to check) Here are the currently accepted flags:
-? or -help = display usage instructions
-v or -version = display tool version number- Parameters:
args- String[] containing arguments passed to main- Returns:
- the name of the file to check
-
setCustomMessageFileFromEnvironment
private void setCustomMessageFileFromEnvironment() -
displayHelp
private void displayHelp()This method displays a short help message that describes the command-line usage of this tool -
displayVersion
private void displayVersion()This method displays the EpubCheck version.
-