com.threerings.opengl.model.tools.xml
Class ModelParser
java.lang.Object
com.threerings.opengl.model.tools.xml.ModelParser
public class ModelParser
- extends Object
Parses XML files containing 3D models.
| 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
_model
protected ModelDef _model
ModelParser
public ModelParser()
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.