src/main/java/org/jboss/util/property/FilePropertyReader.java
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();
   }
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.

@param props      Properties map to load properties into.
@param filename   Filename to read properties from.

@throws IOException              Failed to load properties from filename.
@throws IllegalArgumentException Filename is invalid.