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.


Field Summary
protected  org.apache.commons.digester.Digester _digester
           
protected  ModelDef _model
           
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_digester

protected org.apache.commons.digester.Digester _digester

_model

protected ModelDef _model
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.