org.freecompany.infoset.sax
Class DomWrapperInfoset

java.lang.Object
  extended by org.freecompany.infoset.AbstractInfoset<org.xml.sax.XMLReader>
      extended by org.freecompany.infoset.sax.DomWrapperInfoset
All Implemented Interfaces:
Infoset<org.xml.sax.XMLReader>

public class DomWrapperInfoset
extends AbstractInfoset<org.xml.sax.XMLReader>


Field Summary
protected  Infoset<org.w3c.dom.Document> infoset
           
 
Fields inherited from class org.freecompany.infoset.AbstractInfoset
factory, type
 
Constructor Summary
DomWrapperInfoset(InfosetFactory<org.xml.sax.XMLReader> factory, Infoset<org.w3c.dom.Document> infoset)
           
 
Method Summary
 org.xml.sax.XMLReader get()
          Returns the representation of the infoset.
 
Methods inherited from class org.freecompany.infoset.AbstractInfoset
getFactory, getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

infoset

protected Infoset<org.w3c.dom.Document> infoset
Constructor Detail

DomWrapperInfoset

public DomWrapperInfoset(InfosetFactory<org.xml.sax.XMLReader> factory,
                         Infoset<org.w3c.dom.Document> infoset)
Method Detail

get

public org.xml.sax.XMLReader get()
Description copied from interface: Infoset
Returns the representation of the infoset. This method may be called multiple times during exection, and may be concurrently executed from multiple pipeline instances. Therefore, the resulting objects must be thread safe in respect to itself and other like instances.

The backing infoset need not be a precomputed in memory representation, though it certainly could be as in a DOM Node infoset. In some cases, as with the SAX XMLReader or a pull implementation the backing object may only represent a way to set a event handler for future parsing.