com.threerings.opengl.model.tools.xml
Class AnimationParser
java.lang.Object
com.threerings.opengl.model.tools.xml.AnimationParser
public class AnimationParser
- extends Object
Parses XML files containing animations.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_digester
protected org.apache.commons.digester.Digester _digester
_animation
protected AnimationDef _animation
AnimationParser
public AnimationParser()
parseAnimation
public AnimationDef parseAnimation(String path)
throws IOException,
SAXException
- Parses the XML file at the specified path into an animation
definition.
- Throws:
IOException
SAXException
parseAnimation
public AnimationDef parseAnimation(InputStream in)
throws IOException,
SAXException
- Parses the supplied XML stream into an animation definition.
- Throws:
IOException
SAXException
setAnimation
public void setAnimation(AnimationDef animation)
- Called by the parser once the animation is parsed.