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 .