com.palserv.XMidi
Class TagCHUNK

java.lang.Object
  extended by com.palserv.XMidi.Tag
      extended by com.palserv.XMidi.TagCHUNK
All Implemented Interfaces:
iTag
Direct Known Subclasses:
TagMThd, TagMTrk

public class TagCHUNK
extends Tag

Implement the CHUNK tag. This class must be public in order for the Tag.getTag method to work. This is one of many Tag subclasses which are all similar. Please see the Tag document and the iTag document for more details.


Constructor Summary
TagCHUNK()
           
 
Method Summary
 java.lang.String createStartXML(State state)
          Create the XML start tag.
 void endElement(State state)
          Handle the end of each element.
 java.lang.String getName()
          Get the tag name.
 void startElement(org.xml.sax.Attributes attr, State state)
          Handle the beginning of each element.
 
Methods inherited from class com.palserv.XMidi.Tag
createEndXML, getTag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagCHUNK

public TagCHUNK()
Method Detail

startElement

public void startElement(org.xml.sax.Attributes attr,
                         State state)
Description copied from class: Tag
Handle the beginning of each element. Invoked by the XM.startElement method of XM, which implements the SAX interface.

Specified by:
startElement in interface iTag
Overrides:
startElement in class Tag
Parameters:
attr - - a list of attributes (org.xml.sax.Attributes)
state - - the State object.

endElement

public void endElement(State state)
Description copied from class: Tag
Handle the end of each element. Invoked by the XM.endElement method of XM, which implements the SAX interface.

Specified by:
endElement in interface iTag
Overrides:
endElement in class Tag
Parameters:
state - - the State object.

createStartXML

public java.lang.String createStartXML(State state)
Description copied from class: Tag
Create the XML start tag. This is invoked from various places during MX processing.

Specified by:
createStartXML in interface iTag
Overrides:
createStartXML in class Tag
Parameters:
state - - the State object.
Returns:
the start tag.

getName

public java.lang.String getName()
Description copied from class: Tag
Get the tag name.

Overrides:
getName in class Tag
Returns:
the tag name.