public interface FormatIdentifier extends VitamAutoCloseable
| Modifier and Type | Method and Description |
|---|---|
List<FormatIdentifierResponse> |
analysePath(Path pathToFile)
Identify the format of the file identified by its path
|
FormatIdentifierInfo |
status()
Get format identifier status
|
closeFormatIdentifierInfo status() throws FormatIdentifierTechnicalException, FormatIdentifierNotFoundException
FormatIdentifierNotFoundException - if the given identifier could not respondsFormatIdentifierTechnicalException - for any other technical exceptionList<FormatIdentifierResponse> analysePath(Path pathToFile) throws FileFormatNotFoundException, FormatIdentifierTechnicalException, FormatIdentifierBadRequestException, FormatIdentifierNotFoundException
pathToFile - the path to the file to be identifiedFileFormatNotFoundException - 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 exceptionCopyright © 2018 Vitam. All rights reserved.