1 10 package org.picocontainer.gems.util; 11 12 13 import java.util.Properties ; 14 import java.io.IOException ; 15 import java.io.InputStream ; 16 17 23 public class ConstructableProperties extends Properties { 24 25 31 public ConstructableProperties(String resource) throws IOException { 32 super(); 33 load(Thread.currentThread().getContextClassLoader().getResourceAsStream(resource)); 34 } 35 41 public ConstructableProperties(String resource, Properties defaults) throws IOException { 42 super(defaults); 43 load(Thread.currentThread().getContextClassLoader().getResourceAsStream(resource)); 44 } 45 46 51 public ConstructableProperties(InputStream stream) throws IOException { 52 super(); 53 load(stream); 54 } 55 61 public ConstructableProperties(InputStream stream, Properties defaults) throws IOException { 62 super(defaults); 63 load(stream); 64 } 65 } 66 | Popular Tags |