Interface SaxHandler
- All Superinterfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler
- All Known Implementing Classes:
SaxHandlerImpl
manages callbacks from SAX2 handler
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Method Summary
Modifier and TypeMethodDescriptionbooleangetDebug()Returns true if debugging is enabled for the handler.Returns a vector of error messages encountered during parsing.booleanReturns true if any errors were encountered during parsing.voidsetIgnoreWhite(boolean ignoreWhite) Sets whether to ignore ignorable whitespace during parsing.Methods inherited from interface ContentHandler
characters, declaration, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMappingMethods inherited from interface DTDHandler
notationDecl, unparsedEntityDeclMethods inherited from interface EntityResolver
resolveEntityMethods inherited from interface ErrorHandler
error, fatalError, warning
-
Method Details
-
setIgnoreWhite
void setIgnoreWhite(boolean ignoreWhite) Sets whether to ignore ignorable whitespace during parsing.- Parameters:
ignoreWhite- true to ignore whitespace, false otherwise
-
hasErrors
boolean hasErrors()Returns true if any errors were encountered during parsing.- Returns:
- true if errors occurred, false otherwise
-
getErrorVector
-
getDebug
boolean getDebug()Returns true if debugging is enabled for the handler.- Returns:
- the debug status
-