|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - the type of the Extractor to be created by this factory.public interface ExtractorFactory<T extends Extractor<?>>
Interface defining a factory for Extractor.
| Method Summary | |
|---|---|
T |
createExtractor()
Creates an extractor instance. |
String |
getExampleInput()
An example input file for the extractor, to be used in auto-generated documentation. |
Class<T> |
getExtractorType()
Returns the extractor type. |
Collection<MIMEType> |
getSupportedMIMETypes()
Supports wildcards, e.g. |
| Methods inherited from interface org.apache.any23.extractor.ExtractorDescription |
|---|
getExtractorName, getPrefixes |
| Method Detail |
|---|
Class<T> getExtractorType()
null extractor class.T createExtractor()
Collection<MIMEType> getSupportedMIMETypes()
"*/*" for blind extractors that merely call a web service.
String getExampleInput()
Extractor.BlindExtractor,
this is an arbitrary URI.
For extractors that require content, it is the name of a file, relative
to the factory's class file's location, it will be opened using
factory.getClass().getResourceAsStream(filename). The example should be
a short file that produces characteristic output if sent through the
extractor. The file will be read as UTF-8, so it should either use that
encoding or avoid characters outside of the US-ASCII range.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||