tabs.hair
Class HairColorsXMLHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by tabs.hair.HairColorsXMLHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class HairColorsXMLHandler
extends org.xml.sax.helpers.DefaultHandler

Instances of this class can be used to parse a XML hair colors file


Constructor Summary
HairColorsXMLHandler()
          Creates a new instance of this class that is ready to parse a XML hair colors file
 
Method Summary
 java.util.ArrayList<HairColorData> getHairColorsList()
          An ArrayList containing the parsed hair colors
 void initReadingVars()
          Reset this instance's variables so that a new parsing can be made
 void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HairColorsXMLHandler

public HairColorsXMLHandler()
Creates a new instance of this class that is ready to parse a XML hair colors file

Method Detail

initReadingVars

public void initReadingVars()
Reset this instance's variables so that a new parsing can be made


getHairColorsList

public java.util.ArrayList<HairColorData> getHairColorsList()
An ArrayList containing the parsed hair colors

Returns:
an ArrayList with the parsed hair colors

startElement

public void startElement(java.lang.String uri,
                         java.lang.String localName,
                         java.lang.String qName,
                         org.xml.sax.Attributes attributes)
                  throws org.xml.sax.SAXException
Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException