net.sf.nachocalendar.customizer

Class XMLCustomizer

Implemented Interfaces:
Customizer

public class XMLCustomizer
extends DefaultHandler
implements Customizer

This class reads an xml file to get properties values.
Author:
Ignacio Merani

Constructor Summary

XMLCustomizer(InputStream config)

Method Summary

void
characters(char[] ch, int start, int length)
void
endElement(String namespaceURI, String localName, String qName)
boolean
getBoolean(String key)
double
getDouble(String key)
float
getFloat(String key)
int
getInteger(String key)
long
getLong(String key)
String
getString(String key)
Set
keySet()
void
startDocument()
void
startElement(String namespaceURI, String localName, String qName, Attributes atts)

Constructor Details

XMLCustomizer

public XMLCustomizer(InputStream config)
            throws SAXException,
                   IOException,
                   ParserConfigurationException

Method Details

characters

public void characters(char[] ch,
                       int start,
                       int length)
            throws SAXException

endElement

public void endElement(String namespaceURI,
                       String localName,
                       String qName)
            throws SAXException

getBoolean

public boolean getBoolean(String key)

getDouble

public double getDouble(String key)

getFloat

public float getFloat(String key)

getInteger

public int getInteger(String key)

getLong

public long getLong(String key)

getString

public String getString(String key)

keySet

public Set keySet()

startDocument

public void startDocument()
            throws SAXException

startElement

public void startElement(String namespaceURI,
                         String localName,
                         String qName,
                         Attributes atts)
            throws SAXException