com.softsynth.jmsl.score
Class NoteXMLLoader
java.lang.Object
com.softsynth.jmsl.score.NoteXMLLoader
- All Implemented Interfaces:
- NewXMLObjectListener, XMLListener
public class NoteXMLLoader
- extends java.lang.Object
- implements XMLListener, NewXMLObjectListener
- Author:
- Nick Didkovsky, copyright 2000 Nick Didkovsky, all rights reserved
Method Summary |
void |
beginElement(java.lang.String tag,
java.util.Hashtable attributes,
boolean ifEmpty)
Handles the start of an element. |
void |
endElement(java.lang.String tag)
Handles the end of an element. |
void |
foundContent(java.lang.String content)
Handles the content of an element. |
void |
handleNewXMLObject(java.lang.String tag,
java.lang.Object obj)
|
Note |
loadXML(java.lang.String fileName)
|
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NoteXMLLoader
public NoteXMLLoader()
NoteXMLLoader
public NoteXMLLoader(XMLReader xmlr,
NewXMLObjectListener listener)
loadXML
public Note loadXML(java.lang.String fileName)
throws java.io.IOException
- Throws:
java.io.IOException
beginElement
public void beginElement(java.lang.String tag,
java.util.Hashtable attributes,
boolean ifEmpty)
- 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
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
handleNewXMLObject
public void handleNewXMLObject(java.lang.String tag,
java.lang.Object obj)
- Specified by:
handleNewXMLObject
in interface NewXMLObjectListener
main
public static void main(java.lang.String[] args)