Class ItemGroupsXMLLoader
java.lang.Object
org.xml.sax.helpers.DefaultHandler
games.stendhal.server.core.config.ItemGroupsXMLLoader
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
Load and configure items via an XML configuration file.
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
uri
The main item configuration file.
-
-
Constructor Details
-
ItemGroupsXMLLoader
Create an xml based loader of item groups.- Parameters:
uri
- The location of the configuration file.
-
-
Method Details
-
load
Load items.- Returns:
- list of items
- Throws:
SAXException
- If a SAX error occurred.IOException
- If an I/O error occurred.
-