com.groupdocs.parser

Interfaces

Classes

Exceptions

com.groupdocs.parser

Interface IContainerFactory

  • All Known Implementing Classes:
    ExtractorFactory


    public interface IContainerFactory

    Provides the functionality for creating containers.

    • Method Detail

      • createContainer

        Container createContainer(String fileName)
                                  throws FileNotFoundException

        Creates a container.

        Parameters:
        fileName - The name of the file.
        Returns:
        An instance of the container or null if media type is not supported.

        The media type will be detected by the extension of the file or by the content of the file.

        Throws:
        FileNotFoundException
      • createContainer

        Container createContainer(String fileName,
                                LoadOptions loadOptions)
                                  throws FileNotFoundException

        Creates a container.

        Parameters:
        fileName - The name of the file.
        loadOptions - The options of loading the file.
        Returns:
        An instance of the container or null if media type is not supported.

        If loadOptions.MediaType is null, media type will be detected by the extension of the file or by the content of the file.

        Throws:
        FileNotFoundException
      • createContainer

        Container createContainer(InputStream stream)

        Creates a container.

        Parameters:
        stream - The stream of the document.
        Returns:
        An instance of the container or null if media type is not supported.

        The media type will be detected by the content of the file.

      • createContainer

        Container createContainer(InputStream stream,
                                LoadOptions loadOptions)

        Creates a container.

        Parameters:
        stream - The stream of the document.
        loadOptions - The options of loading the file.
        Returns:
        An instance of the container or null if media type is not supported.