|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openpipeline.pipeline.docfilter.DocFilterFactory
public class DocFilterFactory
Returns an instance of a DocFilter object based on a filename.
DocFilterFactory objects should be held in memory and reused by a single thread. They are not multi-threaded. There is an internal cache that *may* hold reusable DocFilter objects. If multiple threads access the getFilter() method, then different threads may get the same DocFilter object at the same time with unpredictable results. So, allocate one DocFilterFactory per thread.
| Constructor Summary | |
|---|---|
DocFilterFactory()
|
|
DocFilterFactory(XMLConfig config)
Create a factory which is configured by the specified config object. |
|
| Method Summary | |
|---|---|
List |
getDocFilters()
Returns an iterator over all the DocFilters available in the system. |
DocFilter |
getFilterByFilename(String filename)
Return an appropriate DocFilter object based on the filename's extension. |
DocFilter |
getFilterByMimeType(String mimeType)
Returns the appropriate DocFilter object based on the filename's mimetype. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DocFilterFactory()
public DocFilterFactory(XMLConfig config)
config - the object that contains the config parameters| Method Detail |
|---|
public List getDocFilters()
public DocFilter getFilterByFilename(String filename)
filename - the name of the file to filter.
public DocFilter getFilterByMimeType(String mimeType)
mimeType - the mimetype of the file
ClassNotFoundException - if a custom filter class is defined, but not on the class path
InstantiationException - if a custom filter class could not be created
IllegalAccessException - if a custom filter class could not be created
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||