com.thaiopensource.pullax
Interface XmlScanner


public interface XmlScanner

Interface for scanning an XML document. This class models an XML document as a sequence of items. The scanner allows this sequence to be scanned once only, in forwards order.

Author:
James Clark

Method Summary
 void close()
          Releases resources associated with this XmlScanner.
 boolean hasMoreItems()
           
 XmlContentItem nextItem()
          Returns the next item.
 

Method Detail

nextItem

public XmlContentItem nextItem()
                        throws java.io.IOException
Returns the next item.
Returns:
an XmlItem for the next item
Throws:
java.io.IOException - if an I/O error occurs

hasMoreItems

public boolean hasMoreItems()
                     throws java.io.IOException

close

public void close()
           throws java.io.IOException
Releases resources associated with this XmlScanner.
Throws:
java.io.IOException - if an I/O error occurs