Open Business Objects for EDI
v3.6.0

com.americancoders.edi.x12
Class X12DocumentParser

java.lang.Object
  |
  +--com.americancoders.edi.EDIDocumentParser
        |
        +--com.americancoders.edi.x12.X12DocumentParser

public class X12DocumentParser
extends EDIDocumentParser

class to parse input string for all defined OBOE Transaction Sets
x12 dependent


Field Summary
 
Fields inherited from class com.americancoders.edi.EDIDocumentParser
dErr
 
Constructor Summary
X12DocumentParser()
          parses an X12 Document and passes results to EDIDocumentHandlers
 
Method Summary
 void parseDocument(java.io.Reader inReader)
          Deprecated. use parseDocument(Reader, true);
 void parseDocument(java.io.Reader inReader, boolean inValidate)
          parses an X12 Document and passes results to EDIDocumentHandlers
 void parseDocument(java.lang.String inString)
          parses a String containing an X12 Document and passes results to EDIDocumentHandlers
 
Methods inherited from class com.americancoders.edi.EDIDocumentParser
deregisterHandler, getDocumentErrors, notifyEndEnvelope, notifyEndFunctionalGroup, notifyEndSegment, notifyEndTransactionSet, notifyStartEnvelope, notifyStartFunctionalGroup, notifyStartSegment, notifyStartTransactionSet, registerHandler, setErrorLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

X12DocumentParser

public X12DocumentParser()
parses an X12 Document and passes results to EDIDocumentHandlers

Method Detail

parseDocument

public void parseDocument(java.lang.String inString)
                   throws OBOEException
parses a String containing an X12 Document and passes results to EDIDocumentHandlers

Specified by:
parseDocument in class EDIDocumentParser
Parameters:
inString - the edi document
Throws:
OBOEException - - unknown transaction set, this transaction set is undefined to OBOE

parseDocument

public void parseDocument(java.io.Reader inReader)
                   throws OBOEException
Deprecated. use parseDocument(Reader, true);

parses an X12 Document and passes results to EDIDocumentHandlers

Parameters:
inReader - the edi document passed through by a reader object
Throws:
OBOEException - - unknown transaction set, this transaction set is undefined to OBOE

parseDocument

public void parseDocument(java.io.Reader inReader,
                          boolean inValidate)
                   throws OBOEException
parses an X12 Document and passes results to EDIDocumentHandlers

Specified by:
parseDocument in class EDIDocumentParser
Parameters:
inReader - the edi document passed through by a reader object
inValidate - - if true call validation method of the envelope after parsing
if you pass false don't forget to call the validation method on the envelope object
pass to the validation method the documenterrors object created here, use the getDocumentErrors method of the parser object.
Throws:
OBOEException - - unknown transaction set, this transaction set is undefined to OBOE

Open Business Objects for EDI
v3.6.0


OBOE is a trademark or registered trademark of American Coders, Ltd. in the US and other countries.
Copyright 1999-2004 American Coders, Ltd.
POB 97462
Raleigh NC 27624 USA
All Rights Reserved.