diva.sketch.toolbox
Class SceneTranslator.OldSceneWriter
java.lang.Object
diva.sketch.toolbox.SceneTranslator.OldSceneWriter
- Enclosing class:
- SceneTranslator
public static class SceneTranslator.OldSceneWriter
- extends Object
SceneWriter writes a single interpretation of a scene to an output
stream. This interpretation can then be read in by a OldSceneParser
for testing purposes. It currently has the limitation that it
can only write interpretations that have "SimpleData" interpretations
of the scene, because it doesn't know how to handle complex data.
Method Summary |
void |
write(Scene db,
SceneElement root,
Writer writer)
Write the single interpretation of the scene given rooted by
the given root to the character-output stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SceneTranslator.OldSceneWriter
public SceneTranslator.OldSceneWriter()
write
public void write(Scene db,
SceneElement root,
Writer writer)
throws IOException
- Write the single interpretation of the scene given rooted by
the given root to the character-output stream. The caller is
responsible for closing the stream. Throw a runtime exception
if it encounters typed data that is not of the type
SimpleData.
- Throws:
IOException
Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.