com.shimari.framework
Class PropertiesConfigReader

java.lang.Object
  extended bycom.shimari.framework.PropertiesConfigReader
All Implemented Interfaces:
ConfigReader

public class PropertiesConfigReader
extends java.lang.Object
implements ConfigReader

Parses ".properties" files into Config objects. This reads files in the exact same format as the java.util.Properties class accepts. Only parses files which end in ".properties".


Constructor Summary
PropertiesConfigReader()
           
 
Method Summary
 boolean handlesFileType(java.lang.String extension)
          Returns true if this read can parse files with the supplied extension, eg "properties" or "xml".
 void parse(ConfigUpdater updater, java.io.BufferedReader in)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesConfigReader

public PropertiesConfigReader()
Method Detail

handlesFileType

public boolean handlesFileType(java.lang.String extension)
Description copied from interface: ConfigReader
Returns true if this read can parse files with the supplied extension, eg "properties" or "xml".

Specified by:
handlesFileType in interface ConfigReader

parse

public void parse(ConfigUpdater updater,
                  java.io.BufferedReader in)
           throws java.io.IOException
Specified by:
parse in interface ConfigReader
Throws:
java.io.IOException