com.partnersoft.compatibility
Class V40CogXmlLib

java.lang.Object
  extended by com.partnersoft.compatibility.V40CogXmlLib
All Implemented Interfaces:
Lib

public class V40CogXmlLib
extends java.lang.Object
implements Lib

Reads 4.0-style com.partnersoft.data.cog.Cog data from XML. It loads it as a post-4.0-style com.partnersoft.cog.Cog object.

Author:
Paul Reavis Copyright 2003-2006 Partner Software, Inc.

Method Summary
static void convertCogXml(java.io.File file)
          Same as the two-file convert, except it reads in a file and replaces it with the converted result.
static void convertCogXml(java.io.File v40, java.io.File v41)
          Converts a cog from the old format to the new, using the default CogSchema.
static Cog readCogFromXML(java.io.File file)
          Reads a v4.0 Cog into the new Cog structure.
static Cog readCogFromXml(java.io.Reader reader)
          Reads a v4.0 Cog into the new Cog structure.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

readCogFromXml

public static Cog readCogFromXml(java.io.Reader reader)
                          throws java.io.IOException
Reads a v4.0 Cog into the new Cog structure. The result may require further tweaking.

Parameters:
reader - Reader supplying the XML form of the old cog.
Throws:
java.io.IOException

readCogFromXML

public static Cog readCogFromXML(java.io.File file)
                          throws java.io.IOException
Reads a v4.0 Cog into the new Cog structure. The result may require further tweaking.

Parameters:
file - File containing old XML cog data.
Throws:
java.io.IOException

convertCogXml

public static void convertCogXml(java.io.File v40,
                                 java.io.File v41)
                          throws java.io.IOException
Converts a cog from the old format to the new, using the default CogSchema. Use with caution.

Parameters:
v40 - Input File containing old XML cog data.
v41 - Output File which will receive new format data.
Throws:
java.io.IOException

convertCogXml

public static void convertCogXml(java.io.File file)
                          throws java.io.IOException
Same as the two-file convert, except it reads in a file and replaces it with the converted result.

Parameters:
file - Input File containing old XML cog data; will be replaced with new data.
Throws:
java.io.IOException