org.enhydra.apache.xerces.framework
Interface XMLDocumentScanner.ScannerDispatcher
- All Known Implementing Classes:
- XMLDocumentScanner.XMLDeclDispatcher, XMLDocumentScanner.PrologDispatcher, XMLDocumentScanner.ContentDispatcher, XMLDocumentScanner.TrailingMiscDispatcher, XMLDocumentScanner.EndOfInputDispatcher
- Enclosing class:
- 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 |
dispatch
public boolean dispatch(boolean keepgoing)
throws 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:
Exception
-
endOfInput
public void endOfInput(int entityName,
boolean moreToFollow)
throws Exception
- endOfInput encapsulates the end of entity handling for each dispatcher
- Parameters:
entityName
- StringPool handle of the entity that has reached the endmoreToFollow
- true if there is more input to be read- Throws:
-
Copyright © 1999 The Apache Software Foundation. All Rights reserved.