com.americancoders.edi
Class EDIXMLParser

java.lang.Object
  |
  +--com.americancoders.edi.EDIXMLParser

public class EDIXMLParser
extends java.lang.Object

class builds edi object by parsing input string in xml edi format

OBOE - Open Business Objects for EDI
An EDI and XML Translator Written In Java
Copyright 1998-2000 - American Coders, LTD - Raleigh NC USA
All rights reserved
American Coders, Ltd
P. O. Box 97462
Raleigh, NC 27624 USA
1-919-846-2014
http://www.americancoders.com

Version:
1.4.1
Author:
Joe McVerry, American Coders Ltd.

Field Summary
protected  TransactionSet parsedTransactionSet
           
protected  java.net.URL url
           
 
Constructor Summary
EDIXMLParser(java.io.File inFile)
          builds a transaction set by reading a file
EDIXMLParser(java.lang.String inString)
          create a transaction set from input string
EDIXMLParser(java.net.URL inURL, java.lang.String text)
          builds a transaction set by reading a file NOT USED
 
Method Summary
 TransactionSet getTransactionSet()
          returns the transaction set that was parsed
static void main(java.lang.String[] args)
          static main method to test xmlparser class
 void parseFile(java.io.File inString)
          builds a transaction set from input file
 void parseStream(java.io.InputStream inStream)
          builds a transaction set from input stream
 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
 

Field Detail

url

protected java.net.URL url

parsedTransactionSet

protected TransactionSet parsedTransactionSet
Constructor Detail

EDIXMLParser

public EDIXMLParser(java.lang.String inString)
             throws java.lang.Exception
create 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

EDIXMLParser

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

EDIXMLParser

public EDIXMLParser(java.net.URL inURL,
                    java.lang.String text)
             throws java.lang.Exception
builds a transaction set by reading a file NOT USED
Parameters:
URL -  
String -  
Throws:
java.lang.Exception - - unknown transaction set, this transaction set is undefined to ediObjects
Method Detail

main

public static void main(java.lang.String[] args)
static main method to test xmlparser class

parseString

public void parseString(java.lang.String inString)
                 throws java.lang.Exception
builds 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

parseFile

public void parseFile(java.io.File inString)
               throws java.lang.Exception
builds a transaction set from input file
Parameters:
File - the edi document file name
Throws:
java.lang.Exception - - unknown transaction set, this transaction set is undefined to ediObjects

parseStream

public void parseStream(java.io.InputStream inStream)
                 throws java.lang.Exception
builds a transaction set from input stream
Parameters:
InputStream - the edi document in a stream
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.