com.americancoders.edi.EDIFact
Class Parser

java.lang.Object
  |
  +--com.americancoders.edi.EDIFact.Parser

public class Parser
extends java.lang.Object

class to parse input string for all defined ediObjects Transaction Sets


Constructor Summary
Parser(java.io.File inFile)
          builds a transaction set by reading a file
Parser(java.lang.String inString)
          create a transaction set from input string
Parser(java.net.URL inURL, java.lang.String text)
          builds a transaction set by reading a file from a url address
 
Method Summary
 TransactionSet getTransactionSet()
          returns the transaction set that was parsed
 void ParseString(java.lang.String inString)
          builds a transaction set from input string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parser

public Parser(java.lang.String inString)
       throws java.lang.Exception
create a transaction set from input string
Parameters:
String - the edi document
Throws:
java.lang.Exception - - unknown transaction set, this transaction set is undefined to ediObjects

Parser

public Parser(java.io.File inFile)
       throws java.lang.Exception
builds a transaction set by reading a file
Parameters:
File - the filename containing the edi document
Throws:
java.lang.Exception - - unknown transaction set, this transaction set is undefined to ediObjects

Parser

public Parser(java.net.URL inURL,
              java.lang.String text)
       throws java.lang.Exception
builds a transaction set by reading a file from a url address
Parameters:
URL - the URL containing the edi document
String - input text
Throws:
java.lang.Exception - - unknown transaction set, this transaction set is undefined to ediObjects
Method Detail

ParseString

public void ParseString(java.lang.String inString)
                 throws java.lang.Exception
builds a transaction set from input string
Parameters:
inString - the edi document
Throws:
java.lang.Exception - - unknown transaction set, this transaction set is undefined to ediObjects

getTransactionSet

public TransactionSet getTransactionSet()
returns the transaction set that was parsed
Returns:
TransactionSet - the transaction set parsed when object was built.