com.groupdocs.parser

Interfaces

Classes

Exceptions

com.groupdocs.parser

Class ContainerEnumerator

    • Constructor Detail

      • ContainerEnumerator

        public ContainerEnumerator(IContainerFactory containerFactory,
                           MediaTypeDetector containerMediaTypeDetector,
                           Container container,
                           boolean detectContainerByContent)

        Initializes a new instance of the ContainerEnumerator class.

        Parameters:
        containerFactory - A factory for container.
        containerMediaTypeDetector - A detector for container's media types.
        container - A container reader.
        detectContainerByContent - Indicates whether to detect container only by file name (not content).
        Throws:
        ArgumentNullException - containerFactory is null.
        ArgumentNullException - containerMediaTypeDetector is null.
        ArgumentNullException - container is null.
      • ContainerEnumerator

        public ContainerEnumerator(IContainerFactory containerFactory,
                           MediaTypeDetector containerMediaTypeDetector,
                           Container container)

        Initializes a new instance of the ContainerEnumerator class.

        Parameters:
        containerFactory - A factory for container readers.
        containerMediaTypeDetector - A detector for container's media types.
        container - A container reader.
        Throws:
        ArgumentNullException - containerFactory is null.
        ArgumentNullException - containerMediaTypeDetector is null.
        ArgumentNullException - container is null.
    • Method Detail

      • dispose

        public void dispose()

        Releases the unmanaged resources used by the enumerator.

      • hasMoreElements

        public boolean hasMoreElements()

        Tests if this enumeration contains more elements.

        Specified by:
        hasMoreElements in interface Enumeration<Container.Entity>
        Returns:
        true if and only if this enumeration object contains at least one more element to provide; false otherwise.
      • nextElement

        public Container.Entity nextElement()

        Returns the next element of this enumeration if this enumeration object has at least one more element to provide.

        Specified by:
        nextElement in interface Enumeration<Container.Entity>
        Returns:
        The next element of this enumeration.