Class ImageTokenEffigy.Factory

    • Method Detail

      • canCreateBlankEffigy

        public boolean canCreateBlankEffigy()
        Return false, indicating that this effigy factory is not capable of creating an effigy without a URL being specified.
        Overrides:
        canCreateBlankEffigy in class EffigyFactory
        Returns:
        False.
      • createEffigy

        public Effigy createEffigy​(CompositeEntity container,
                                   java.net.URL base,
                                   java.net.URL input)
                            throws java.lang.Exception
        Create a new effigy in the given container by reading the specified URL. If the specified URL is null, or if the URL does not end with extension ".jpeg", ".jpg", ".png", or ".gif", then return null.
        Overrides:
        createEffigy in class EffigyFactory
        Parameters:
        container - The container for the effigy.
        base - The base for relative file references, which are ignored here, and therefore can be null.
        input - The input URL.
        Returns:
        A new instance of ImageTokenEffigy, or null if the URL does not have a recognized extension.
        Throws:
        java.lang.Exception - If the URL cannot be read.