protected void loadProperties ( Properties props , String filename ) throws IOException { if ( filename == null ) throw new NullArgumentException ( "filename" ) ; if ( filename . equals ( "" ) ) throw new IllegalArgumentException ( "filename" ) ; InputStream in = new BufferedInputStream ( getInputStream ( filename ) ) ; props . load ( in ) ; in . close ( ) ; }
Load properties from a file into a properties map .