Package com.iizix.js

Interface IGenericFileLocator


  • public interface IGenericFileLocator
    Interface used for Eclipse to resolve an URL to a file. This interface returns null by default when Eclipse is not used, i.e. when running in non Designer mode.
    Author:
    Christopher Mindus
    • Method Detail

      • toFileURL

        default java.io.File toFileURL​(java.net.URL url)
                                throws java.io.IOException,
                                       java.lang.IllegalArgumentException
        Resolves an URL to a canonical file.
        Parameters:
        url - The URL to resolve.
        Returns:
        The canonical file.
        Throws:
        java.io.IOException - If file cannot be resolved.
        java.lang.IllegalArgumentException - If the protocol cannot be resolved to a file.