com.partnersoft.io.formats.xml.cog
Class XMLCogLib

java.lang.Object
  extended by com.partnersoft.io.formats.xml.cog.XMLCogLib

public class XMLCogLib
extends java.lang.Object

Reads and writes cog data as xml.

Author:
Paul Reavis Copyright 2003 Partner Software, Inc.

Constructor Summary
XMLCogLib()
           
 
Method Summary
static java.lang.String cogToString(Cog cog)
           
static Cog readCogFromXML(java.io.File file)
           
static Cog readCogFromXML(java.io.Reader reader)
           
static void writeCogAsXML(java.io.File file, Cog cog)
           
static void writeCogAsXML(java.io.Writer writer, Cog cog)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLCogLib

public XMLCogLib()
Method Detail

cogToString

public static java.lang.String cogToString(Cog cog)

writeCogAsXML

public static void writeCogAsXML(java.io.Writer writer,
                                 Cog cog)
                          throws java.io.IOException
Throws:
java.io.IOException

readCogFromXML

public static Cog readCogFromXML(java.io.Reader reader)
                          throws java.io.IOException,
                                 org.xml.sax.SAXException
Throws:
java.io.IOException
org.xml.sax.SAXException

writeCogAsXML

public static void writeCogAsXML(java.io.File file,
                                 Cog cog)
                          throws java.io.IOException
Throws:
java.io.IOException

readCogFromXML

public static Cog readCogFromXML(java.io.File file)
                          throws java.io.IOException,
                                 org.xml.sax.SAXException
Throws:
java.io.IOException
org.xml.sax.SAXException