Package 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 ofExtractorFactoryproviding simple accessing methods.
-
-
Constructor Summary
Constructors Constructor Description ExtractorGroup(Collection<ExtractorFactory<?>> factories)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallExtractorsSupportAllContentTypes()ExtractorGroupfilterByMIMEType(MIMEType mimeType)Returns aExtractorGroupwith a set ofExtractorable to process the provided mime type.intgetNumOfExtractors()booleanisEmpty()Iterator<ExtractorFactory<?>>iterator()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
ExtractorGroup
public ExtractorGroup(Collection<ExtractorFactory<?>> factories)
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
-
getNumOfExtractors
public int getNumOfExtractors()
-
filterByMIMEType
public ExtractorGroup filterByMIMEType(MIMEType mimeType)
Returns aExtractorGroupwith a set ofExtractorable to process the provided mime type.- Parameters:
mimeType- to perform the selection.- Returns:
- an
ExtractorGroupable to process the provided mime type.
-
iterator
public Iterator<ExtractorFactory<?>> iterator()
- Specified by:
iteratorin interfaceIterable<ExtractorFactory<?>>
-
allExtractorsSupportAllContentTypes
public boolean allExtractorsSupportAllContentTypes()
- Returns:
trueif all theExtractorcontained in the group supports all the content types.
-
-