com.smallx.xml.infoset.util
Class DocumentDestination

java.lang.Object
  extended bycom.smallx.xml.infoset.util.DocumentDestination
All Implemented Interfaces:
ItemDestination

public class DocumentDestination
extends java.lang.Object
implements ItemDestination


Constructor Summary
DocumentDestination()
          Creates a new instance of DocumentDestination
 
Method Summary
 Document getDocument()
           
 void send(Item item)
          Called when a infoset item is generated by a source.
 void setOutputType(Name name)
          This is meta-data that facilitates output serialization.
static Document toDocument(ItemSource source)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentDestination

public DocumentDestination()
Creates a new instance of DocumentDestination

Method Detail

send

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

Specified by:
send in interface ItemDestination
Parameters:
item - The infoset item that was generated by the source.
Returns:
A boolean value indicating that addition items are wanted by the implementing object.
Throws:
XMLException

getDocument

public Document getDocument()

setOutputType

public void setOutputType(Name name)
                   throws XMLException
Description copied from interface: ItemDestination
This is meta-data that facilitates output serialization. There are three "standard" names 'xml', 'text', and 'html'.

Specified by:
setOutputType in interface ItemDestination
Throws:
XMLException

toDocument

public static Document toDocument(ItemSource source)
                           throws XMLException
Throws:
XMLException