Interface FormatIdentifier
- All Known Implementing Classes:
FormatIdentifierSiegfried
public interface FormatIdentifier
Format identifier interface
-
Method Summary
Modifier and TypeMethodDescriptionanalysePath
(Path pathToFile) Identify the format of the file identified by its pathstatus()
Get format identifier status
-
Method Details
-
status
FormatIdentifierInfo status() throws FormatIdentifierTechnicalException, FormatIdentifierNotFoundExceptionGet format identifier status- Returns:
- The format identifier software information containing version
- Throws:
FormatIdentifierNotFoundException
- if the given identifier could not respondsFormatIdentifierTechnicalException
- for any other technical exception
-
analysePath
List<FormatIdentifierResponse> analysePath(Path pathToFile) throws FileFormatNotFoundException, FormatIdentifierTechnicalException, FormatIdentifierBadRequestException, FormatIdentifierNotFoundException Identify the format of the file identified by its path- Parameters:
pathToFile
- the path to the file to be identified- Returns:
- the FormatIdentifierResponse containing information about the format of the file
- Throws:
FileFormatNotFoundException
- if a file format is not found by the identifierFormatIdentifierBadRequestException
- if the given path dont match a fileFormatIdentifierNotFoundException
- if the given identifier could not respondsFormatIdentifierTechnicalException
- for any other technical exception
-