com.smallx.xml.infoset.util
Class DocumentSource

java.lang.Object
  extended bycom.smallx.xml.infoset.util.EmptySource
      extended bycom.smallx.xml.infoset.util.DocumentSource
All Implemented Interfaces:
ItemSource

public class DocumentSource
extends EmptySource


Constructor Summary
DocumentSource(Parent top, boolean makeDocument)
          Creates a new instance of DocumentSource
 
Method Summary
static void generate(Parent item, boolean makeDocument, ItemDestination dest)
           
 Item receive()
          Called when a infoset item is generated by a source.
 
Methods inherited from class com.smallx.xml.infoset.util.EmptySource
copyTo, flush, seek, seekByType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentSource

public DocumentSource(Parent top,
                      boolean makeDocument)
Creates a new instance of DocumentSource

Method Detail

receive

public Item receive()
             throws XMLException
Description copied from interface: ItemSource
Called when a infoset item is generated by a source.

Specified by:
receive in interface ItemSource
Overrides:
receive in class EmptySource
Throws:
XMLException

generate

public static void generate(Parent item,
                            boolean makeDocument,
                            ItemDestination dest)
                     throws XMLException
Throws:
XMLException