|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.sketch.recognition.SceneParser
public class SceneParser
SceneParser parses an XML file representing a single interpretation of a scene into a Scene data structure. This interpretation can then be used for testing purposes. It currently has the limitation that interprets all typed data as "SimpleData", because it doesn't know how to handle complex data.
SceneWriter
Constructor Summary | |
---|---|
SceneParser()
Build a scene parser using the system-specified composite builder for |
|
SceneParser(CompositeBuilder builder)
Build a scene parser that uses the given builder declarations to parse its typed data. |
Method Summary | |
---|---|
static void |
main(String[] args)
Simple test of this class. |
Object |
parse(Reader in)
Parse the input stream dictated by the given reader intoa scene. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SceneParser() throws Exception
Exception
public SceneParser(CompositeBuilder builder)
Method Detail |
---|
public Object parse(Reader in) throws Exception
parse
in interface ModelParser
Exception
public static void main(String[] args) throws Exception
Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |