View Javadoc

1   //
2   // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v@@BUILD_VERSION@@ 
3   // 	See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
4   // 	Any modifications to this file will be lost upon recompilation of the source schema. 
5   // 	Generated on: 2005.06.30 um 05:21:08 CEST 
6   //
7   
8   package de.nierbeck.timeTrack.model.impl.runtime;
9   
10  import javax.xml.bind.JAXBException;
11  import javax.xml.bind.ValidationEvent;
12  
13  import org.xml.sax.SAXException;
14  
15  import com.sun.xml.bind.unmarshaller.InterningXMLReader;
16  
17  /***
18   * Filter {@link SAXUnmarshallerHandler} that interns all the Strings in the SAX
19   * events.
20   * 
21   * @author Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
22   */
23  final class InterningUnmarshallerHandler extends InterningXMLReader implements
24  		SAXUnmarshallerHandler {
25  
26  	private final SAXUnmarshallerHandler core;
27  
28  	InterningUnmarshallerHandler(SAXUnmarshallerHandler core) {
29  		super();
30  		setContentHandler(core);
31  		this.core = core;
32  	}
33  
34  	public void handleEvent(ValidationEvent event, boolean canRecover)
35  			throws SAXException {
36  		core.handleEvent(event, canRecover);
37  	}
38  
39  	public Object getResult() throws JAXBException, IllegalStateException {
40  		return core.getResult();
41  	}
42  
43  }