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.


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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.



Copyright © 2011. All Rights Reserved.