Package com.logicaldoc.impex
Class ArchiveVerifier
java.lang.Object
com.logicaldoc.impex.ArchiveVerifier
- Direct Known Subclasses:
- DefaultVerifier
Abstract class to verify an archive. Concrete implementations must check the
 validity for a specific archive format.
- Since:
- 4.5
- Author:
- Matteo Caruso - LogicalDOC
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetIndex()static ArchiveVerifiergetInstance(File dir) Factory method for the verifier.static ArchiveVerifiergetInstance(File dir, IndexHandler handler) Factory method for the verifierbooleanbooleanbooleanbooleanbooleanisValid()voidsetLogsLocale(Locale logsLocale) voidabstract booleanverify()It is the abstract method of the class.
- 
Constructor Details- 
ArchiveVerifierpublic ArchiveVerifier()
 
- 
- 
Method Details- 
isCheckResourcespublic boolean isCheckResources()
- 
isCheckDocsNumberpublic boolean isCheckDocsNumber()
- 
isCheckDocspublic boolean isCheckDocs()
- 
isCheckHashespublic boolean isCheckHashes()
- 
getInstancepublic static ArchiveVerifier getInstance(File dir) throws ParserConfigurationException, SAXException, IOException Factory method for the verifier. The IndexHandler is used.- Parameters:
- dir- The archive directory
- Returns:
- The verifier that match with the directory structure
- Throws:
- IOException- I/O error
- SAXException- XML error
- ParserConfigurationException- XML error
- See Also:
 
- 
getInstancepublic static ArchiveVerifier getInstance(File dir, IndexHandler handler) throws ParserConfigurationException, SAXException, IOException Factory method for the verifier- Parameters:
- dir- The archive directory
- handler- The handler to be used to read the index file
- Returns:
- The verifier that match with the directory structure
- Throws:
- IOException- I/O error
- SAXException- XML error
- ParserConfigurationException- XML error
 
- 
verifypublic abstract boolean verify()It is the abstract method of the class. It is implemented by the inherit classes DefaultVerifier and StoreVerifier- Returns:
- true if all checks are successfully
 
- 
isValidpublic boolean isValid()
- 
getDocsDir
- 
getReport
- 
setReport
- 
setLogsLocale
- 
getArchiveName
- 
getIndex
 
-