KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > memoire > vainstall > VAProperties


1 /**
2  * $RCSfile: VAProperties.java,v $
3  * @creation 26/01/99
4  * @modification $Date: 2005/03/06 23:04:18 $
5  */

6
7 package com.memoire.vainstall;
8
9 import java.io.File JavaDoc;
10 import java.io.FileInputStream JavaDoc;
11 import java.io.IOException JavaDoc;
12 import java.util.Properties JavaDoc;
13
14 /**
15  * @version $Id: VAProperties.java,v 1.2 2005/03/06 23:04:18 deniger Exp $
16  * @author Axel von Arnim
17  */

18
19 public class VAProperties
20        extends Properties JavaDoc
21 {
22   public static final VAProperties PROPERTIES=new VAProperties();
23   
24   protected VAProperties()
25   {
26     super();
27   }
28   
29   void loadProperties(File JavaDoc file) throws IOException JavaDoc
30   {
31     FileInputStream JavaDoc stream=new FileInputStream JavaDoc(file);
32     load(stream);
33     stream.close();
34   }
35 }
36
Popular Tags