blob: 18139e035ceaf3313fd0a97524bc09ec7fb29b1f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
/*
* Created on 30-Jul-03
*
* To change this generated comment go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
package test;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
/**
* @author websterm
*
* To change this generated comment go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
public class TestProperties {
public void load (String name) throws IOException {
InputStream in = getClass().getResourceAsStream(name);
// System.out.println("? load() in=" + in);
Properties props = new Properties();
props.load(in);
in.close();
props.list(System.out);
}
}
|