www.pudn.com > I18NDemo.rar > ResourceParser.java


/** 
 * ResourceParser.java 
 * 
 * Oct. 15, 2004  
 * 
 * (c) Copyright. 2004. Motorola , Inc. ALL RIGHTS RESERVED. 
 *  This notice does not imply publication.  
 * 
 */  
 
import java.util.*; 
import java.io.*; 
 
/** 
 * Resource file is stored in a properties file. The sytax is qute similiar 
 * to java property file. This is Parser for the property file. 
 */  
public class ResourceParser { 
	 
	private Hashtable props = new Hashtable(); 
	private InputStream stream; 
 
	public ResourceParser (InputStream stream) { 
		this.stream = stream; 
	} 
 
 
    private String loadConvert(String theString) { 
        char aChar; 
        int len = theString.length(); 
        StringBuffer outBuffer = new StringBuffer(len); 
 
        for (int x=0; x