org.enhydra.apache.xerces.framework
Interface XMLDocumentScanner.ScannerDispatcher

All Known Implementing Classes:
XMLDocumentScanner.ContentDispatcher, XMLDocumentScanner.EndOfInputDispatcher, XMLDocumentScanner.PrologDispatcher, XMLDocumentScanner.TrailingMiscDispatcher, XMLDocumentScanner.XMLDeclDispatcher
Enclosing interface:
XMLDocumentScanner

static interface XMLDocumentScanner.ScannerDispatcher

The main loop of the scanner is implemented by calling the dispatch method of ScannerDispatcher with a flag which tells the dispatcher whether to continue or return. The scanner logic is split up into dispatchers for various syntatic components of XML. //REVISIT more rationale needed


Method Summary
 boolean dispatch(boolean keepgoing)
          scan an XML syntactic component
 void endOfInput(int entityName, boolean moreToFollow)
          endOfInput encapsulates the end of entity handling for each dispatcher
 

Method Detail

dispatch

public boolean dispatch(boolean keepgoing)
                 throws java.lang.Exception
scan an XML syntactic component

Parameters:
keepgoing - if true continue on to the next dispatcher, otherwise return
Returns:
true if scanning was successful //REVISIT - does it ever return false or does it just throw?
Throws:
java.lang.Exception

endOfInput

public void endOfInput(int entityName,
                       boolean moreToFollow)
                throws java.lang.Exception
endOfInput encapsulates the end of entity handling for each dispatcher

Parameters:
entityName - StringPool handle of the entity that has reached the end
moreToFollow - true if there is more input to be read
Throws:
java.lang.Exception


Copyright © 1999 The Apache Software Foundation. All Rights reserved.