Interface FormatIdentifier
-
- All Known Implementing Classes:
FormatIdentifierSiegfried
public interface FormatIdentifierFormat identifier interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<FormatIdentifierResponse>analysePath(java.nio.file.Path pathToFile)Identify the format of the file identified by its pathFormatIdentifierInfostatus()Get format identifier status
-
-
-
Method Detail
-
status
FormatIdentifierInfo status() throws FormatIdentifierTechnicalException, FormatIdentifierNotFoundException
Get 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
java.util.List<FormatIdentifierResponse> analysePath(java.nio.file.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
-
-