org.apache.any23.extractor
Class ExtractorGroup
java.lang.Object
org.apache.any23.extractor.ExtractorGroup
- All Implemented Interfaces:
- Iterable<ExtractorFactory<?>>
public class ExtractorGroup
- extends Object
- implements Iterable<ExtractorFactory<?>>
It simple models a group of ExtractorFactory
providing
simple accessing methods.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExtractorGroup
public ExtractorGroup(Collection<ExtractorFactory<?>> factories)
isEmpty
public boolean isEmpty()
getNumOfExtractors
public int getNumOfExtractors()
filterByMIMEType
public ExtractorGroup filterByMIMEType(MIMEType mimeType)
- Returns a
ExtractorGroup
with a set of Extractor
able to
process the provided mime type.
- Parameters:
mimeType
- to perform the selection.
- Returns:
- an
ExtractorGroup
able to process the provided mime type.
iterator
public Iterator<ExtractorFactory<?>> iterator()
- Specified by:
iterator
in interface Iterable<ExtractorFactory<?>>
allExtractorsSupportAllContentTypes
public boolean allExtractorsSupportAllContentTypes()
- Returns:
true
if all the Extractor
contained in the group
supports all the content types.
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.