com.smallx.xml.infoset.util
Class ItemQueue

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

public class ItemQueue
extends EmptySource
implements ItemDestination


Constructor Summary
ItemQueue()
           
 
Method Summary
 Item receive()
          Called when a infoset item is generated by a source.
 void send(Item e)
          Called when a infoset item is generated by a source.
 void setOutputType(Name name)
          This is meta-data that facilitates output serialization.
 
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

ItemQueue

public ItemQueue()
Method Detail

send

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

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

receive

public Item receive()
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

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