com.timjohnstondev.unitconverter.logic
Class ConversionFactorParser

java.lang.Object
  extended by com.timjohnstondev.unitconverter.logic.ConversionFactorParser

public class ConversionFactorParser
extends Object

Parser that parses a XML file, but the important part is the ConversionFactorParserHandler. The XML file is defined in this class and should probably allow to select different data source.


Constructor Summary
ConversionFactorParser(DefaultHandler newHandler)
          Constructs and initializes a ConversionFactorParser to the given DefaultHandler.
 
Method Summary
 void parse()
          Connects to the XML file and parses it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConversionFactorParser

public ConversionFactorParser(DefaultHandler newHandler)
Constructs and initializes a ConversionFactorParser to the given DefaultHandler.

Parameters:
newHandler - the parser handler that defines how the XML file elements are handled.
Method Detail

parse

public final void parse()
Connects to the XML file and parses it.



Copyright © 2009 Tim Johnston Development, LLC. All Rights Reserved.