com.softsynth.jmsl.score
Class OrchestraXMLLoader
java.lang.Object
com.softsynth.jmsl.score.OrchestraXMLLoader
- All Implemented Interfaces:
- NewXMLObjectListener, XMLListener
public class OrchestraXMLLoader
- extends java.lang.Object
- implements XMLListener, NewXMLObjectListener
- Author:
- Nick Didkovsky, copyright 2000 Nick Didkovsky, all rights reserved
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OrchestraXMLLoader
public OrchestraXMLLoader()
OrchestraXMLLoader
public OrchestraXMLLoader(XMLReader xmlr,
NewXMLObjectListener orchListener)
loadXML
public Orchestra loadXML(java.lang.String fileName)
throws java.io.IOException
- Throws:
java.io.IOException
handleNewXMLObject
public void handleNewXMLObject(java.lang.String tag,
java.lang.Object obj)
- Specified by:
handleNewXMLObject
in interface NewXMLObjectListener
beginElement
public void beginElement(java.lang.String tag,
java.util.Hashtable attributes,
boolean ifEmpty)
throws XMLLoaderException
- Description copied from interface:
XMLListener
- Handles the start of an element. The flag ifEmpty if there is no content or endTag.
- Specified by:
beginElement
in interface XMLListener
- Throws:
XMLLoaderException
foundContent
public void foundContent(java.lang.String content)
- Description copied from interface:
XMLListener
- Handles the content of an element.
- Specified by:
foundContent
in interface XMLListener
endElement
public void endElement(java.lang.String tag)
- Description copied from interface:
XMLListener
- Handles the end of an element.
- Specified by:
endElement
in interface XMLListener
main
public static void main(java.lang.String[] args)
setNewXMLObjectListener
public void setNewXMLObjectListener(NewXMLObjectListener listener)
- Parameters:
listener
-