public class MetadataExtractorFactory extends Object
Constructor and Description |
---|
MetadataExtractorFactory() |
Modifier and Type | Method and Description |
---|---|
protected static IMetadataExtractor |
getDefaultExtractor(FileMacrotype fileMetadataType)
Returns the default
IMetadataExtractor instance, based on the
FileMacrotype . |
static IMetadataExtractor |
getExtractor(FileMacrotype type,
String serviceInstanceId)
Returns an
extractor based on service instance
and FileMacrotype . |
public static IMetadataExtractor getExtractor(FileMacrotype type, String serviceInstanceId) throws PortalException, IllegalArgumentException
extractor
based on service instance
and FileMacrotype
. To discover the correct IMetadataExtractor
implementation class for the given parameter, a search in custom
properties is done.#getDefaultMetadataExtractor(String)
.type
- the FileMacrotype
of the file.serviceInstanceId
- the service instance of the file.IMetadataExtractor
instancePortalException
- if the specified class is not found;IllegalArgumentException
- if any parameter is null.protected static IMetadataExtractor getDefaultExtractor(FileMacrotype fileMetadataType) throws PortalException
IMetadataExtractor
instance, based on the
FileMacrotype
.fileMetadataType
- the FileMacrotype
.IMetadataExtractor
instance, based on the
FileMacrotype
.PortalException
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.