wt.load.util
Class XCConverter

java.lang.Object
  extended bywt.load.util.XCConverter

public class XCConverter
extends Object


Field Summary
private static String ATTR_HANDLER
           
private static BufferedWriter bwMap
           
private static String[] CSV_CHARS
           
private static String CSV_SEPERATOR
           
private static String MAP_SEPERATOR
           
private static Hashtable savedEntities
           
private static Hashtable savedHeaders
           
private static boolean validate
           
private static String[] XML_CHARS
           
 
Constructor Summary
XCConverter(String fname)
           
 
Method Summary
private  String csvDecode(String stXML)
           
 void finishConversion()
           
 void processTopElement(IxbElement topElement, BufferedWriter bwCSV)
           
 void processXMLDoc(File outputDir, File inDir, String inFile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTR_HANDLER

private static final String ATTR_HANDLER
See Also:
Constant Field Values

MAP_SEPERATOR

private static final String MAP_SEPERATOR
See Also:
Constant Field Values

CSV_SEPERATOR

private static final String CSV_SEPERATOR
See Also:
Constant Field Values

savedEntities

private static Hashtable savedEntities

savedHeaders

private static Hashtable savedHeaders

validate

private static boolean validate

bwMap

private static BufferedWriter bwMap

CSV_CHARS

private static String[] CSV_CHARS

XML_CHARS

private static String[] XML_CHARS
Constructor Detail

XCConverter

public XCConverter(String fname)
Method Detail

processXMLDoc

public void processXMLDoc(File outputDir,
                          File inDir,
                          String inFile)
                   throws WTException,
                          IOException
Throws:
WTException
IOException

processTopElement

public void processTopElement(IxbElement topElement,
                              BufferedWriter bwCSV)
                       throws WTException,
                              IOException
Throws:
WTException
IOException

finishConversion

public void finishConversion()
                      throws WTException,
                             IOException
Throws:
WTException
IOException

csvDecode

private String csvDecode(String stXML)