|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FileExtractor
FileExtractors extract information from files. FileExtractors are typically specific for a single MIME type or a number of closely related MIME types. They are used in cases where efficient metadata extraction is difficult or impossible to implement with an InputStream.
Method Summary | |
---|---|
void |
extract(URI id,
File file,
Charset charset,
String mimeType,
RDFContainer result)
Extracts full-text and metadata from the specified file and stores the extracted information as RDF statements in the specified RDFContainer. |
Method Detail |
---|
void extract(URI id, File file, Charset charset, String mimeType, RDFContainer result) throws ExtractorException
id
- the URI identifying the object (e.g. a file or web page) from which the file was obtained.
The generated statements should describe this URI. Note that it doesn't have to be
the URI of the file that is passed as the second argument.file
- the File with the content from which metadata is to be extractedcharset
- the charset in which the file is encoded (optional).mimeType
- the MIME type of the file (optional).result
- the container in which this FileExtractor can put the RDF statements it generates
ExtractorException
- in case of any error during the extraction process.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |