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 |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
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 documentString
- input text- Throws:
- java.lang.Exception - - unknown transaction set, this transaction set is undefined to ediObjects
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.