net.sf.quarrel.file
Class StreamParser
java.lang.Object
net.sf.quarrel.file.StreamParser
- public class StreamParser
- extends java.lang.Object
This class is responsible for parsing an InputStream and reporting all
discovered elements to the ElementCollector. The element collector will
build a model from the values discovered. This will sperate the knowledge
of the file structure from the object model used to represent it.
There are some potential problems with this class right now.
- it has more knowldge about UML than it should. Ideally, it would only
know about idents and such. But right now, I'm not sure how to make it work
without checking for key words
- the code is checking for an indent of zero to link the case
of two class header on adjacent line. if I can fix the problem mentioned
above, then this problem will probably be fixed as well.
Constructor Summary |
StreamParser(java.io.InputStream source)
Create a new StreamParse for the specified InputStream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StreamParser
public StreamParser(java.io.InputStream source)
- Create a new StreamParse for the specified InputStream. Call parse() to
to perform the parsing and then call the elements() method to get the
results.
- Parameters:
source
- the InputStream to parse- See Also:
parse()
,
elements()
parse
public void parse()
throws java.io.IOException,
ParsingException
- Throws:
java.io.IOException
ParsingException
elements
public java.util.Iterator elements()
Copyright © 2006-2007. All Rights Reserved.