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

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

public class ModelParser
extends Object

Parses XML files containing 3D models.


Constructor Summary
ModelParser()
           
 
Method Summary
 ModelDef parseModel(InputStream in)
          Parses the supplied XML stream into a model definition.
 ModelDef parseModel(String path)
          Parses the XML file at the specified path into a model definition.
 void setModel(ModelDef model)
          Called by the parser once the model is parsed.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelParser

public ModelParser()
Method Detail

parseModel

public ModelDef parseModel(String path)
                    throws IOException,
                           SAXException
Parses the XML file at the specified path into a model definition.

Throws:
IOException
SAXException

parseModel

public ModelDef parseModel(InputStream in)
                    throws IOException,
                           SAXException
Parses the supplied XML stream into a model definition.

Throws:
IOException
SAXException

setModel

public void setModel(ModelDef model)
Called by the parser once the model is parsed.



Copyright © 2011. All Rights Reserved.