public class SceneParser extends Object
| Constructor and Description |
|---|
SceneParser(String prefix)
Constructs a scene parser that parses scenes with the specified XML
path prefix.
|
| Modifier and Type | Method and Description |
|---|---|
SceneModel |
parseScene(InputStream scene)
Parses the XML file provided by
scene into a scene model instance. |
SceneModel |
parseScene(String path)
Parses the XML file at the specified path into a scene model instance.
|
void |
registerAuxRuleSet(com.threerings.tools.xml.NestableRuleSet set)
Adds a
NestableRuleSet for parsing auxiliary scene models. |
void |
setScene(SceneModel model)
Called by the parser once the scene is parsed.
|
public SceneParser(String prefix)
public void registerAuxRuleSet(com.threerings.tools.xml.NestableRuleSet set)
NestableRuleSet for parsing auxiliary scene models.public SceneModel parseScene(String path) throws IOException, SAXException
IOExceptionSAXExceptionpublic SceneModel parseScene(InputStream scene) throws IOException, SAXException
scene into a scene model instance.IOExceptionSAXExceptionpublic void setScene(SceneModel model)
Copyright © 2015. All rights reserved.