xelem.3.0

nl.fountain.xelem
Class XSerializer

java.lang.Object
  extended by nl.fountain.xelem.XSerializer

public class XSerializer
extends Object

A conveniance class for serializing Workbooks.


Field Summary
static String US_ASCII
           
 
Constructor Summary
XSerializer()
           
XSerializer(String encoding)
           
 
Method Summary
 void serialize(Document doc, File out)
           
 void serialize(Document doc, OutputStream out)
           
 void serialize(Document doc, Writer out)
           
 void serialize(Workbook wb)
          Serializes the Workbook to the file specified with the Workbook's getFileName-method.
 void serialize(Workbook wb, File out)
           
 void serialize(Workbook wb, OutputStream out)
           
 void serialize(Workbook wb, Writer out)
           
 String serializeToString(Document doc)
           
 String serializeToString(Workbook wb)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

US_ASCII

public static final String US_ASCII
See Also:
Constant Field Values
Constructor Detail

XSerializer

public XSerializer()

XSerializer

public XSerializer(String encoding)
Method Detail

serializeToString

public String serializeToString(Workbook wb)
                         throws XelemException
Throws:
XelemException

serializeToString

public String serializeToString(Document doc)
                         throws XelemException
Throws:
XelemException

serialize

public void serialize(Workbook wb)
               throws XelemException
Serializes the Workbook to the file specified with the Workbook's getFileName-method.

Throws:
XelemException

serialize

public void serialize(Workbook wb,
                      File out)
               throws XelemException
Throws:
XelemException

serialize

public void serialize(Document doc,
                      File out)
               throws XelemException
Throws:
XelemException

serialize

public void serialize(Workbook wb,
                      OutputStream out)
               throws XelemException
Throws:
XelemException

serialize

public void serialize(Document doc,
                      OutputStream out)
               throws XelemException
Throws:
XelemException

serialize

public void serialize(Workbook wb,
                      Writer out)
               throws XelemException
Throws:
XelemException

serialize

public void serialize(Document doc,
                      Writer out)
               throws XelemException
Throws:
XelemException

xelem.3.0