Interface SAXUnmarshallerHandler
-
- All Superinterfaces:
ContentHandler,UnmarshallerHandler
- All Known Implementing Classes:
SAXUnmarshallerHandlerImpl,ValidatingUnmarshaller
public interface SAXUnmarshallerHandler extends UnmarshallerHandler
Unified event handler that processes both the SAX events and error events.This interface refines
ContentHandleras follows:- element names and attribute names must be
String.intern()ed. - namespace prefix and uris must be
String.intern()ed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidhandleEvent(ValidationEvent event, boolean canRecover)Reports an error to the user, and asks if s/he wants to recover.-
Methods inherited from interface org.xml.sax.ContentHandler
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping
-
Methods inherited from interface javax.xml.bind.UnmarshallerHandler
getResult
-
-
-
-
Method Detail
-
handleEvent
void handleEvent(ValidationEvent event, boolean canRecover) throws SAXException
Reports an error to the user, and asks if s/he wants to recover. If the canRecover flag is false, regardless of the client instruction, an exception will be thrown. Only if the flag is true and the user wants to recover from an error, the method returns normally. The thrown exception will be catched by the unmarshaller.- Throws:
SAXException
-
-