com.etasoft.trans.transaction
Class axQDXMLParser

java.lang.Object
  extended bycom.etasoft.trans.transaction.axQDXMLParser
All Implemented Interfaces:
axDetectable, axParser

public class axQDXMLParser
extends java.lang.Object
implements axDetectable, axParser

Quick and Dirty xml parser. This parser is, like the SAX parser, an event based parser, but with much less functionality.


Field Summary
 
Fields inherited from interface com.etasoft.trans.transaction.axDetectable
DELIMITEDTEXT, EDIFACT, FIXEDTEXT, HL7, NONE, X12, XML
 
Constructor Summary
axQDXMLParser()
           
 
Method Summary
 boolean detect(java.lang.String buffer)
          Detect input file, input can be just first 200 characters of the file.
 int getDetectedType()
          Return type of the file detected.
 void parse(axInputHandler doc, axReaderIterator itor, axInfoList expList)
          Parse XML and fire events to doc handler
 java.lang.String toString()
          Returns Parser description.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

axQDXMLParser

public axQDXMLParser()
Method Detail

toString

public java.lang.String toString()
Returns Parser description.


detect

public boolean detect(java.lang.String buffer)
Detect input file, input can be just first 200 characters of the file.

Specified by:
detect in interface axDetectable

getDetectedType

public int getDetectedType()
Return type of the file detected.

Specified by:
getDetectedType in interface axDetectable

parse

public void parse(axInputHandler doc,
                  axReaderIterator itor,
                  axInfoList expList)
           throws axException
Parse XML and fire events to doc handler

Specified by:
parse in interface axParser
Throws:
axException