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.
|
FormatIdentifierSiegfried(SiegfriedClientFactory siegfriedClientFactory,
Path versionPath)
For JUnit ONLY
|
Modifier and Type | Method and Description |
---|---|
List<FormatIdentifierResponse> |
analysePath(Path path)
Identify the format of the file identified by its path
|
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 FormatIdentifierSiegfried(SiegfriedClientFactory siegfriedClientFactory, Path versionPath)
siegfriedClientFactory
- a custom instance of siegfried clientversionPath
- the version request pathpublic 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, FormatIdentifierBadRequestException, FormatIdentifierTechnicalException, FormatIdentifierNotFoundException
FormatIdentifier
analysePath
in interface FormatIdentifier
path
- 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 fileFormatIdentifierTechnicalException
- for any other technical exceptionFormatIdentifierNotFoundException
- if the given identifier could not respondsCopyright © 2019 Vitam. All rights reserved.