com.smallx.xml.infoset.util
Class WriterItemDestination
java.lang.Object
com.smallx.xml.infoset.util.XMLWriter
com.smallx.xml.infoset.util.WriterItemDestination
- All Implemented Interfaces:
- ItemDestination
- public class WriterItemDestination
- extends XMLWriter
- implements ItemDestination
Constructor Summary |
WriterItemDestination(java.io.Writer out,
java.lang.String encoding)
Creates a new instance of WriterItemDestination |
WriterItemDestination(java.io.Writer out,
java.lang.String encoding,
boolean closeOnEnd)
|
Method Summary |
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. |
Methods inherited from class com.smallx.xml.infoset.util.XMLWriter |
duplicateProxy, finalize, flush, setPreferDefault, write, writeDocument, writeDocument, writeDocument, writeDocument, writeElement, xmlDeclaration |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WriterItemDestination
public WriterItemDestination(java.io.Writer out,
java.lang.String encoding)
- Creates a new instance of WriterItemDestination
WriterItemDestination
public WriterItemDestination(java.io.Writer out,
java.lang.String encoding,
boolean closeOnEnd)
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
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