public class FilenameTokenMetExtractor extends CmdLineMetExtractor implements FilenameTokenExtractorMetKeys
Metadata
using the File.getName()
and a
FilenameTokenConfig
to specify what pieces of the filename map to
particular Metadata key names.config, reader
COMMON_METADATA_GROUP, DATETIME_SCALAR, PRODUCTION_DATE_TIME_GROUP, SUBSTRING_OFFSET_GROUP, TIME_FORMAT_STRING_SCALAR, TOKEN_DELIMETER_SCALAR, TOKEN_LIST_GROUP, TOKEN_MET_KEYS_VECTOR
Constructor and Description |
---|
FilenameTokenMetExtractor()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Metadata |
extrMetadata(File file)
|
static void |
main(String[] args) |
processMain, processMain
extractMetadata, extractMetadata, extractMetadata, extractMetadata, extractMetadata, extractMetadata, extractMetadata, setConfigFile, setConfigFile, setConfigFile
public FilenameTokenMetExtractor()
protected Metadata extrMetadata(File file) throws MetExtractionException
AbstractMetExtractor
extrMetadata
in class AbstractMetExtractor
file
- The File
from which Metadata
will be extractedMetadata
extractedMetExtractionException
- If any error occursCopyright © 1999–2017 Apache OODT. All rights reserved.