base/common/src/main/com/thesett/common/util/PropertiesHelper.java
public static Properties getProperties(String pathname) throws IOException
    {
        /*log.fine("getProperties(String): called");*/

        // Check that the path is not null
        if (pathname == null)
        {
            return null;
        }

        // Check if the path is a URL
        if (isURL(pathname))
        {
            // The path is a URL
            return getProperties(new URL(pathname));
        }
        else
        {
            // Assume the path is a file name
            return getProperties(new File(pathname));
        }
    }
public static Properties getProperties(String pathname) throws IOException
    {
        /*log.fine("getProperties(String): called");*/

        // Check that the path is not null
        if (pathname == null)
        {
            return null;
        }

        // Check if the path is a URL
        if (isURL(pathname))
        {
            // The path is a URL
            return getProperties(new URL(pathname));
        }
        else
        {
            // Assume the path is a file name
            return getProperties(new File(pathname));
        }
    }
public static Properties getProperties ( String pathname ) throws IOException { /*log.fine("getProperties(String): called");*/ // Check that the path is not null if ( pathname == null ) { return null ; } // Check if the path is a URL if ( isURL ( pathname ) ) { // The path is a URL return getProperties ( new URL ( pathname ) ) ; } else { // Assume the path is a file name return getProperties ( new File ( pathname ) ) ; } }
Get properties from a path name. The path name may refer to either a file or a URL.

@param  pathname The path name.

@return The properties loaded from the file or URL.

@throws IOException If there is an I/O error reading from the URL or file named by the path.
Get properties from a path name . The path name may refer to either a file or a URL .