org.objectweb.telosys.common.data
Class DataSetWriter

java.lang.Object
  extended byorg.objectweb.telosys.common.TelosysObject
      extended byorg.objectweb.telosys.common.data.DataSetWriter

public class DataSetWriter
extends TelosysObject

Utility class providing methods to write a Dataset in XML or Text format


Constructor Summary
DataSetWriter()
           
 
Method Summary
static void toText(java.io.OutputStream outputStream, DataSet ds)
          Writes the DataSet as 0..N rows of text
static void toText(java.io.OutputStream outputStream, DataSet ds, java.lang.String sSeparator)
          Writes the DataSet as 0..N rows of text
static void toText(java.io.OutputStream outputStream, DataSet ds, java.lang.String sSeparator, java.lang.String sHeader, java.lang.String sFooter)
          Writes the DataSet as 0..N rows of text
static void toText(java.io.Writer writer, DataSet ds)
          Writes the DataSet as 0..N rows of text
static void toText(java.io.Writer writer, DataSet ds, java.lang.String sSeparator)
          Writes the DataSet as 0..N rows of text
static void toText(java.io.Writer writer, DataSet ds, java.lang.String sSeparator, java.lang.String sHeader, java.lang.String sFooter)
          Writes the DataSet as 0..N rows of text
static void toXml(java.io.OutputStream outputStream, DataSet ds)
          Writes the DataSet in XML
static void toXml(java.io.OutputStream outputStream, DataSet ds, java.lang.String sDataSetTagName)
          Writes the DataSet in XML
static void toXml(java.io.OutputStream outputStream, DataSet ds, java.lang.String sDataSetTagName, java.lang.String sDataRowTagName)
          Writes the DataSet in XML
static void toXml(java.io.Writer writer, DataSet ds)
          Writes the DataSet in XML
static void toXml(java.io.Writer writer, DataSet ds, java.lang.String sDataSetTagName)
          Writes the DataSet in XML
static void toXml(java.io.Writer writer, DataSet ds, java.lang.String sDataSetTagName, java.lang.String sDataRowTagName)
          Writes the DataSet in XML
 
Methods inherited from class org.objectweb.telosys.common.TelosysObject
error, error, error, getFlagTrace, info, setFlagTrace, trace, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSetWriter

public DataSetWriter()
Method Detail

toXml

public static void toXml(java.io.Writer writer,
                         DataSet ds)
Writes the DataSet in XML

Parameters:
writer -
ds -

toXml

public static void toXml(java.io.OutputStream outputStream,
                         DataSet ds)
Writes the DataSet in XML

Parameters:
outputStream -
ds -

toXml

public static void toXml(java.io.Writer writer,
                         DataSet ds,
                         java.lang.String sDataSetTagName)
Writes the DataSet in XML

Parameters:
writer -
ds -
sDataSetTagName - the name of tag for the DataSet

toXml

public static void toXml(java.io.OutputStream outputStream,
                         DataSet ds,
                         java.lang.String sDataSetTagName)
Writes the DataSet in XML

Parameters:
outputStream -
ds -
sDataSetTagName - the name of tag for the DataSet

toXml

public static void toXml(java.io.OutputStream outputStream,
                         DataSet ds,
                         java.lang.String sDataSetTagName,
                         java.lang.String sDataRowTagName)
Writes the DataSet in XML

Parameters:
outputStream -
ds -
sDataSetTagName - the name of tag for the DataSet
sDataRowTagName - the name of tag for each DataRow

toXml

public static void toXml(java.io.Writer writer,
                         DataSet ds,
                         java.lang.String sDataSetTagName,
                         java.lang.String sDataRowTagName)
Writes the DataSet in XML

Parameters:
writer -
ds -
sDataSetTagName - the name of tag for the DataSet
sDataRowTagName - the name of tag for each DataRow

toText

public static void toText(java.io.Writer writer,
                          DataSet ds)
Writes the DataSet as 0..N rows of text

Parameters:
writer -
ds -

toText

public static void toText(java.io.OutputStream outputStream,
                          DataSet ds)
Writes the DataSet as 0..N rows of text

Parameters:
outputStream -
ds -

toText

public static void toText(java.io.Writer writer,
                          DataSet ds,
                          java.lang.String sSeparator)
Writes the DataSet as 0..N rows of text

Parameters:
writer -
ds -
sSeparator - the column separator to use

toText

public static void toText(java.io.OutputStream outputStream,
                          DataSet ds,
                          java.lang.String sSeparator)
Writes the DataSet as 0..N rows of text

Parameters:
outputStream -
ds -
sSeparator - the column separator to use

toText

public static void toText(java.io.OutputStream outputStream,
                          DataSet ds,
                          java.lang.String sSeparator,
                          java.lang.String sHeader,
                          java.lang.String sFooter)
Writes the DataSet as 0..N rows of text

Parameters:
outputStream -
ds -
sSeparator - the column separator to use
sHeader - the text header
sFooter - the text footer

toText

public static void toText(java.io.Writer writer,
                          DataSet ds,
                          java.lang.String sSeparator,
                          java.lang.String sHeader,
                          java.lang.String sFooter)
Writes the DataSet as 0..N rows of text

Parameters:
writer -
ds -
sSeparator - the column separator to use
sHeader - the text header
sFooter - the text footer