Package net.sf.microproperties

Examples of net.sf.microproperties.JarFileProperties.load()


  public static void configure(String fileName) {
    JarFileProperties jarFileProperties = new JarFileProperties();
    System.out.println("Trying to load properties from " + fileName);

    try {
      jarFileProperties.load(fileName);
      PropertyConfigurator configurator = new PropertyConfigurator();
      configurator.configure(jarFileProperties);
    } catch (IOException e) {
      System.err.println("Failed to load properties file: " + fileName);
    }
View Full Code Here


    this.midlet = midlet;

    JarFileProperties properties = new JarFileProperties();
    try {
      properties.load(jarFileName);
      this.defaults = properties;
    } catch (IOException e) {
      System.err.println("Failed to load properties file.");
    }
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.