com.etasoft.trans.transaction
Class axEDIParser

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

public final class axEDIParser
extends java.lang.Object
implements axDetectable, axParser

EDI Message contains segments.


Field Summary
 
Fields inherited from interface com.etasoft.trans.transaction.axDetectable
DELIMITEDTEXT, EDIFACT, FIXEDTEXT, HL7, NONE, X12, XML
 
Constructor Summary
axEDIParser()
           
 
Method Summary
 boolean detect(java.lang.String buffer)
          Detect input file, input can be just first 200 characters of the file.
 int getDetectedType()
          Type of file that has been detected.
 void parse(axInputHandler doc, axReaderIterator itor, axInfoList expList)
          Parse EDI, EDIFACT file.
 java.lang.String removeEscapeChar(java.lang.String s, char c)
           
 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

axEDIParser

public axEDIParser()
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()
Type of file that has been detected.

Specified by:
getDetectedType in interface axDetectable

parse

public void parse(axInputHandler doc,
                  axReaderIterator itor,
                  axInfoList expList)
           throws axException
Parse EDI, EDIFACT file.

Specified by:
parse in interface axParser
Throws:
axException

removeEscapeChar

public java.lang.String removeEscapeChar(java.lang.String s,
                                         char c)