|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.oodt.cas.metadata.AbstractMetExtractor
public abstract class AbstractMetExtractor
A core MetExtractor implementation, implementing all methods but {extractMetadata(File)
| Field Summary | |
|---|---|
protected MetExtractorConfig |
config
|
protected static Logger |
LOG
|
protected MetExtractorConfigReader |
reader
|
| Constructor Summary | |
|---|---|
AbstractMetExtractor(MetExtractorConfigReader reader)
|
|
| Method Summary | |
|---|---|
Metadata |
extractMetadata(File f)
Extracts Metadata from a given File. |
Metadata |
extractMetadata(File f,
File configFile)
Extracts Metadata from the given File using the specified
config file. |
Metadata |
extractMetadata(File f,
MetExtractorConfig config)
Extracts Metadata from the given File using the specified
MetExtractorConfig. |
Metadata |
extractMetadata(File f,
String configFilePath)
Extracts Metadata from the given File using the specified
config file path. |
Metadata |
extractMetadata(String filePath)
Extracts Metadata from a given /path/to/some/file. |
Metadata |
extractMetadata(URL fileUrl)
Extracts Metadata from a given URL pointer to a
File. |
Metadata |
extractMetadata(URL fileUrl,
MetExtractorConfig config)
Extracts Metadata from the given URL using the specified
MetExtractorConfig. |
protected abstract Metadata |
extrMetadata(File file)
Extracts Metadata from the given File |
void |
setConfigFile(File f)
Sets the config file for this MetExtractor to the specified File
f. |
void |
setConfigFile(MetExtractorConfig config)
Sets the MetExtractorConfig for the MetExtractor |
void |
setConfigFile(String filePath)
Sets the config file for this MetExtractor to the specified File
identified by filePath. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected MetExtractorConfig config
protected MetExtractorConfigReader reader
protected static final Logger LOG
| Constructor Detail |
|---|
public AbstractMetExtractor(MetExtractorConfigReader reader)
| Method Detail |
|---|
protected abstract Metadata extrMetadata(File file)
throws MetExtractionException
Metadata from the given File
file - The File from which Metadata will be extracted
Metadata extracted
MetExtractionException - If any error occurs
public Metadata extractMetadata(File f)
throws MetExtractionException
MetExtractorMetadata from a given File.
extractMetadata in interface MetExtractorf - File object to extract Metadata from.
Metadata from the given File.
MetExtractionException - If any error occurs.
public Metadata extractMetadata(String filePath)
throws MetExtractionException
MetExtractorMetadata from a given /path/to/some/file.
extractMetadata in interface MetExtractorfilePath - Path to a given file to extract Metadata from.
Metadata from the given filePath.
MetExtractionException - If any error occurs.
public Metadata extractMetadata(URL fileUrl)
throws MetExtractionException
MetExtractorMetadata from a given URL pointer to a
File.
extractMetadata in interface MetExtractorfileUrl - The URL pointer to a File.
Metadata from the given File URL.
MetExtractionException - If any error occurs.
public Metadata extractMetadata(File f,
File configFile)
throws MetExtractionException
MetExtractorMetadata from the given File using the specified
config file.
extractMetadata in interface MetExtractorf - The File to extract Metadata from.configFile - The config file for this MetExtractor.
Metadata from the given File using the
specified config file.
MetExtractionException - If any error occurs.
public Metadata extractMetadata(File f,
String configFilePath)
throws MetExtractionException
MetExtractorMetadata from the given File using the specified
config file path.
extractMetadata in interface MetExtractorf - The File to extract Metadata from.configFilePath - The path to the config file for this MetExtractor.
Metadata from the given File using the
specified config file path.
MetExtractionException - If any error occurs.
public Metadata extractMetadata(File f,
MetExtractorConfig config)
throws MetExtractionException
MetExtractorMetadata from the given File using the specified
MetExtractorConfig.
extractMetadata in interface MetExtractorf - The File from which Metadata will be extracted
fromconfig - The config file for the extractor
Metadata extracted from the File
MetExtractionException - If any error occurs
public Metadata extractMetadata(URL fileUrl,
MetExtractorConfig config)
throws MetExtractionException
MetExtractorMetadata from the given URL using the specified
MetExtractorConfig.
extractMetadata in interface MetExtractorfileUrl - The URL from which Metadata will be extracted
fromconfig - The config file for the extractor
Metadata extracted from the URL
MetExtractionException - If any error occurs
public void setConfigFile(File f)
throws MetExtractionException
MetExtractorFile
f.
setConfigFile in interface MetExtractorf - The config file for this MetExtractor.
MetExtractionExceptionpublic void setConfigFile(MetExtractorConfig config)
MetExtractor
setConfigFile in interface MetExtractorconfig - The MetExtractorConfig
public void setConfigFile(String filePath)
throws MetExtractionException
MetExtractorFile
identified by filePath.
setConfigFile in interface MetExtractorfilePath - The config file path for this MetExtractor.
MetExtractionException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||