public class FormatIdentifierSiegfried extends Object implements FormatIdentifier
Modifier and Type | Field and Description |
---|---|
static String |
PRONOM_NAMESPACE
Pronom namespace
|
static String |
UNKNOW_NAMESPACE
Unknown namespace
|
Constructor and Description |
---|
FormatIdentifierSiegfried(Map<String,Object> configurationProperties)
Configuration should come with 'client', 'rootPath' and 'versionPath' mandatory parameters.
|
Modifier and Type | Method and Description |
---|---|
List<FormatIdentifierResponse> |
analysePath(Path path)
Identify the format of the file identified by its path
|
void |
close() |
FormatIdentifierInfo |
status()
Get format identifier status
|
public static final String PRONOM_NAMESPACE
public static final String UNKNOW_NAMESPACE
public FormatIdentifierSiegfried(Map<String,Object> configurationProperties) throws FormatIdentifierTechnicalException
configurationProperties
- the configuration properties needed to instantiate Siegfried format identifierFormatIdentifierTechnicalException
- If a technical error occures when the version path is createdIllegalArgumentException
- if mandatory parameter are not given or nullpublic FormatIdentifierInfo status() throws FormatIdentifierTechnicalException, FormatIdentifierNotFoundException
FormatIdentifier
status
in interface FormatIdentifier
FormatIdentifierTechnicalException
- for any other technical exceptionFormatIdentifierNotFoundException
- if the given identifier could not respondspublic List<FormatIdentifierResponse> analysePath(Path path) throws FileFormatNotFoundException, FormatIdentifierTechnicalException, FormatIdentifierBadRequestException, FormatIdentifierNotFoundException
FormatIdentifier
analysePath
in interface FormatIdentifier
path
- the path to the file to be identifiedFileFormatNotFoundException
- if a file format is not found by the identifierFormatIdentifierTechnicalException
- for any other technical exceptionFormatIdentifierBadRequestException
- if the given path dont match a fileFormatIdentifierNotFoundException
- if the given identifier could not respondspublic void close()
close
in interface VitamAutoCloseable
close
in interface AutoCloseable
Copyright © 2018 Vitam. All rights reserved.