net.sf.quarrel.file
Class StreamParser

java.lang.Object
  extended bynet.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.


Constructor Summary
StreamParser(java.io.InputStream source)
          Create a new StreamParse for the specified InputStream.
 
Method Summary
 java.util.Iterator elements()
           
 void parse()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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()
Method Detail

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.