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.
-
YAWBWriter(YAWBBackendManager, Writer)
- Constructs a new YAWBWriter.
-
write(Document)
- Writes a markup document to the writer.
-
writeChildren(Element)
-
-
writeElement(Element)
-
YAWBWriter
public YAWBWriter(YAWBBackendManager manager,
Writer dest)
- Constructs a new YAWBWriter.
- Parameters:
- manager - the manager to use.
- dest - destination writer.
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.
writeElement
protected void writeElement(Element element) throws YAWBException, IOException
writeChildren
protected void writeChildren(Element element) throws YAWBException, IOException
All Packages Class Hierarchy This Package Previous Next Index