com.revusky.oreo.xml
Class XMLOutput

java.lang.Object
  |
  +--com.revusky.oreo.xml.XMLOutput

public class XMLOutput
extends java.lang.Object


Constructor Summary
XMLOutput()
           
 
Method Summary
static java.lang.String convertToEntities(java.lang.String s)
           
static void outputXML(java.io.Writer writer, java.util.Collection recs, java.lang.String elementName, boolean outputTimeStamp)
          utility routine to output a set of records to a character stream in XMl format.
static void outputXML(java.io.Writer writer, DataEvent event)
           
static void outputXML(java.io.Writer writer, Record rec)
          utility routine to output a record as an XML element to a character stream.
static void outputXMLTimeStamp(java.io.Writer writer, java.util.Date d)
           
static java.lang.String toXML(Record rec)
          Utility routine to turn a Record into an XML-formatted string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLOutput

public XMLOutput()
Method Detail

outputXML

public static void outputXML(java.io.Writer writer,
                             DataEvent event)
                      throws java.io.IOException

outputXMLTimeStamp

public static void outputXMLTimeStamp(java.io.Writer writer,
                                      java.util.Date d)
                               throws java.io.IOException

outputXML

public static void outputXML(java.io.Writer writer,
                             java.util.Collection recs,
                             java.lang.String elementName,
                             boolean outputTimeStamp)
                      throws java.io.IOException
utility routine to output a set of records to a character stream in XMl format.
Parameters:
elementName - The name of the element to enclose the set of records in (may be null)

outputXML

public static void outputXML(java.io.Writer writer,
                             Record rec)
                      throws java.io.IOException
utility routine to output a record as an XML element to a character stream.

convertToEntities

public static java.lang.String convertToEntities(java.lang.String s)

toXML

public static java.lang.String toXML(Record rec)
Utility routine to turn a Record into an XML-formatted string.