|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.whirled.tools.xml.SceneWriter
public class SceneWriter
Generates an XML representation of an SceneModel.
| Field Summary | |
|---|---|
static String |
OUTER_ELEMENT
The outer element used to enclose our scene definition. |
| Constructor Summary | |
|---|---|
SceneWriter()
|
|
| Method Summary | |
|---|---|
void |
registerAuxWriter(Class<?> aclass,
com.threerings.tools.xml.NestableWriter writer)
Registers a writer for writing auxiliary scene models of the supplied class. |
void |
writeScene(File out,
SceneModel model)
Writes the supplied scene out to the specified file. |
void |
writeSceneModel(SceneModel model,
com.megginson.sax.DataWriter writer)
Writes the data for the supplied SceneModel to the XML data
writer supplied. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String OUTER_ELEMENT
| Constructor Detail |
|---|
public SceneWriter()
| Method Detail |
|---|
public void registerAuxWriter(Class<?> aclass,
com.threerings.tools.xml.NestableWriter writer)
public void writeScene(File out,
SceneModel model)
throws IOException,
SAXException
IOException
SAXException
public void writeSceneModel(SceneModel model,
com.megginson.sax.DataWriter writer)
throws SAXException
SceneModel to the XML data
writer supplied. The writer should already be configured with the
appropriate indentation level so that this writer can simply output
its elements and allow the calling code to determine where in the
greater scene description file the scene data should live.
SAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||