net.sf.jour.rt.view.config.impl.runtime
Class InterningUnmarshallerHandler

java.lang.Object
  extended byorg.xml.sax.helpers.XMLFilterImpl
      extended bycom.sun.xml.bind.unmarshaller.InterningXMLReader
          extended bynet.sf.jour.rt.view.config.impl.runtime.InterningUnmarshallerHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler, SAXUnmarshallerHandler, javax.xml.bind.UnmarshallerHandler, org.xml.sax.XMLFilter, org.xml.sax.XMLReader

final class InterningUnmarshallerHandler
extends com.sun.xml.bind.unmarshaller.InterningXMLReader
implements SAXUnmarshallerHandler

Filter SAXUnmarshallerHandler that interns all the Strings in the SAX events.

Author:
Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)

Nested Class Summary
 
Nested classes inherited from class com.sun.xml.bind.unmarshaller.InterningXMLReader
 
Constructor Summary
(package private) InterningUnmarshallerHandler(SAXUnmarshallerHandler core)
           
 
Method Summary
 java.lang.Object getResult()
           
 void handleEvent(javax.xml.bind.ValidationEvent event, boolean canRecover)
          Reports an error to the user, and asks if s/he wants to recover.
 
Methods inherited from class com.sun.xml.bind.unmarshaller.InterningXMLReader
adapt, endElement, endPrefixMapping, processingInstruction, startElement, startPrefixMapping
 
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl
characters, endDocument, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, startDocument, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xml.sax.ContentHandler
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping
 

Constructor Detail

InterningUnmarshallerHandler

InterningUnmarshallerHandler(SAXUnmarshallerHandler core)
Method Detail

handleEvent

public void handleEvent(javax.xml.bind.ValidationEvent event,
                        boolean canRecover)
                 throws org.xml.sax.SAXException
Description copied from interface: SAXUnmarshallerHandler
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.

Specified by:
handleEvent in interface SAXUnmarshallerHandler
Throws:
org.xml.sax.SAXException

getResult

public java.lang.Object getResult()
                           throws javax.xml.bind.JAXBException,
                                  java.lang.IllegalStateException
Specified by:
getResult in interface javax.xml.bind.UnmarshallerHandler
Throws:
javax.xml.bind.JAXBException
java.lang.IllegalStateException


Copyright © 2004 sourceforge. All Rights Reserved.