com.groupdocs.metadata

Interfaces

Classes

Exceptions

com.groupdocs.metadata

Class FormatFactory



  • public class FormatFactory
    extends Object

    Provides base operations to recognize files of different formats.

    • Constructor Detail

      • FormatFactory

        public FormatFactory()
    • Method Detail

      • recognizeFormat

        public static FormatBase recognizeFormat(String path)

        Recognizes a file and returns the appropriate descendant of FormatBase.

        Parameters:
        path - A string that contains the full name of the file from which to create a FormatBase instance.
        Returns:
        The appropriate descendant of FormatBase.
      • recognizeFormat

        public static FormatBase recognizeFormat(InputStream stream)

        Recognizes a file and returns the appropriate descendant of FormatBase.

        Parameters:
        stream - A stream that contains the data for this FormatBase.
        Returns:
        The appropriate descendant of FormatBase.