com.groupdocs.search.common

Class CustomExtractorCollection

  • All Implemented Interfaces:
    Iterable


    public class CustomExtractorCollection
    extends Object
    implements Iterable

    Contains a collection of custom extractors. If the collection contains an extractor for some file extension that is covered by build-in extractors, then this extractor will be used instead of built-in one.

    • Constructor Detail

      • CustomExtractorCollection

        protected CustomExtractorCollection()
    • Method Detail

      • size

        public final int size()

        Gets the number of extractors contained in the collection.

        Returns:
        The number of extractors contained in the collection.
      • isReadOnly

        public final boolean isReadOnly()

        Gets a value indicating whether the collection is read-only.

        Returns:
        A value indicating whether the collection is read-only.
      • iterator

        public final ListIterator iterator()

        Returns an iterator for this collection.

        Specified by:
        iterator in interface Iterable
        Returns:
        An iterator object that can be used to iterate through the collection.
      • addItem

        public final void addItem(IFieldExtractor extractor)

        Adds an extractor to the collection.

        Parameters:
        extractor - The extractor to add to the collection.
      • clear

        public final void clear()

        Removes all extractors from the collection.

      • containsItem

        public final boolean containsItem(IFieldExtractor item)

        Determines whether the collection contains a specific extractor.

        Parameters:
        item - The extractor to locate in the collection.
        Returns:
        true if item is found in the collection; otherwise, false.
      • copyToTArray

        public final void copyToTArray(IFieldExtractor[] array,
                        int arrayIndex)

        Copies the elements of the collection to an array, starting at a particular array index.

        Parameters:
        array - The one-dimensional array that is the destination of the elements copied from collection. The array must have zero-based indexing.
        arrayIndex - The zero-based index in array at which copying begins.
      • removeItem

        public final boolean removeItem(IFieldExtractor extractor)

        Removes an extractor from the collection.

        Parameters:
        extractor - The extractor to remove from the collection.
        Returns:
        true if extractor was successfully removed from the collection; otherwise, false. This method also returns false if extractor is not found in the original collection.