1 package com.sun.tools.xjc.runtime; 2 3 import javax.xml.bind.JAXBException; 4 import javax.xml.bind.ValidationEvent; 5 6 import org.xml.sax.SAXException ; 7 8 import com.sun.xml.bind.unmarshaller.InterningXMLReader; 9 10 17 final class InterningUnmarshallerHandler extends InterningXMLReader implements SAXUnmarshallerHandler { 18 19 private final SAXUnmarshallerHandler core; 20 21 InterningUnmarshallerHandler( SAXUnmarshallerHandler core ) { 22 super(); 23 setContentHandler(core); 24 this.core = core; 25 } 26 27 public void handleEvent(ValidationEvent event, boolean canRecover) throws SAXException { 28 core.handleEvent(event,canRecover); 29 } 30 31 public Object getResult() throws JAXBException, IllegalStateException { 32 return core.getResult(); 33 } 34 35 } 36 | Popular Tags |