com.threerings.opengl.model.tools.xml
Class AnimationParser

java.lang.Object
  extended by com.threerings.opengl.model.tools.xml.AnimationParser

public class AnimationParser
extends Object

Parses XML files containing animations.


Field Summary
protected  AnimationDef _animation
           
protected  org.apache.commons.digester.Digester _digester
           
 
Constructor Summary
AnimationParser()
           
 
Method Summary
 AnimationDef parseAnimation(InputStream in)
          Parses the supplied XML stream into an animation definition.
 AnimationDef parseAnimation(String path)
          Parses the XML file at the specified path into an animation definition.
 void setAnimation(AnimationDef animation)
          Called by the parser once the animation is parsed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_digester

protected org.apache.commons.digester.Digester _digester

_animation

protected AnimationDef _animation
Constructor Detail

AnimationParser

public AnimationParser()
Method Detail

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.