All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class vnet.yawb.YAWBWriter

java.lang.Object
   |
   +----vnet.yawb.YAWBWriter

public class YAWBWriter
extends Object
Not a real writer, but writes a markup document containing YAWB elements to a writer, resolving the YAWB elemnts as it goes..

This class is not thread safe. Each thread should create it's own instance.


Constructor Index

 o YAWBWriter(YAWBBackendManager, Writer)
Constructs a new YAWBWriter.

Method Index

 o write(Document)
Writes a markup document to the writer.
 o writeChildren(Element)
 o writeElement(Element)

Constructors

 o YAWBWriter
 public YAWBWriter(YAWBBackendManager manager,
                   Writer dest)
Constructs a new YAWBWriter.

Parameters:
manager - the manager to use.
dest - destination writer.

Methods

 o write
 public void write(Document doc) throws YAWBException, IOException, NullPointerException
Writes a markup document to the writer.

Parameters:
doc - source document.
Throws: YAWBException
if a YAWB error occurs.
Throws: IOException
thrown if an IO error occurs.
 o writeElement
 protected void writeElement(Element element) throws YAWBException, IOException
 o writeChildren
 protected void writeChildren(Element element) throws YAWBException, IOException

All Packages  Class Hierarchy  This Package  Previous  Next  Index