Module openj9.dtfj

Class ImageFactory

    • Constructor Detail

      • ImageFactory

        public ImageFactory()
        This public constructor is intended for use with Class.newInstance(). This class will generally be referred to by name (e.g. using Class.forName()).
        See Also:
        ImageFactory
    • Method Detail

      • getImage

        public Image getImage​(File imageFile)
                       throws IOException
        Creates a new Image object based on the contents of imageFile
        Specified by:
        getImage in interface ImageFactory
        Parameters:
        imageFile - a file with Image information, typically a core file but may also be a container such as a zip
        Returns:
        an instance of Image (null if no image can be constructed from the given file)
        Throws:
        IOException
      • getImage

        public Image getImage​(ImageInputStream in,
                              URI sourceID)
                       throws IOException
        Creates a new Image object based on the contents of input stream
        Specified by:
        getImage in interface ImageFactory
        Parameters:
        imageFile - a file with Image information, typically a core file but may also be a container such as a zip
        Returns:
        an instance of Image (null if no image can be constructed from the given file)
        Throws:
        IOException
      • getImage

        public Image getImage​(ImageInputStream in,
                              ImageInputStream meta,
                              URI sourceID)
                       throws IOException
        Creates a new Image object based on the contents of input stream
        Specified by:
        getImage in interface ImageFactory
        Parameters:
        imageFile - a file with Image information, typically a core file but may also be a container such as a zip
        Returns:
        an instance of Image (null if no image can be constructed from the given file)
        Throws:
        IOException
      • getImage

        public Image getImage​(File imageFile,
                              File metadata)
                       throws IOException
        Creates a new Image object based on the contents of imageFile and metadata
        Specified by:
        getImage in interface ImageFactory
        Parameters:
        imageFile - a file with Image information, typically a core file
        metadata - a file with additional Image information. This is an implementation defined file
        Returns:
        an instance of Image
        Throws:
        IOException