Open Business Objects for EDI
v3.6.0

com.americancoders.edi
Class FixedLengthParser

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

public class FixedLengthParser
extends java.lang.Object

class builds OBOE objects by parsing input string in xml edi format

OBOE - Open Business Objects for EDI

Part of the OBOE Basic Extended Package
An EDI and XML Translator Written In Java
Copyright 1998-2009 - 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:
3.6.0
Author:
Joe McVerry - American Coders, Ltd.

Field Summary
protected  com.americancoders.edi.Envelope envelope
           
protected  java.net.URL url
           
 
Constructor Summary
FixedLengthParser()
          create a transaction set from input string
 
Method Summary
 com.americancoders.edi.Envelope getEnvelope()
          returns the Envelope that was parsed
static void main(java.lang.String[] args)
          static main method to test xmlparser class
 void parse(java.io.InputStream inStream)
          builds a transaction set from input stream
all the work is really done here, the other parse methods call this
 void parse(java.lang.String inString)
          builds a transaction set from input string
 void parse(java.net.URL inURL, java.lang.String text)
          builds a transaction set by reading a URL NOT USED
 void parseFile(java.lang.String inString)
          builds a transaction set from input file
 
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

envelope

protected com.americancoders.edi.Envelope envelope
Constructor Detail

FixedLengthParser

public FixedLengthParser()
create a transaction set from input string

Method Detail

main

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


parse

public void parse(java.lang.String inString)
builds a transaction set from input string

Parameters:
inString - the edi document
Throws:
OBOEException - - unknown transaction set, this transaction set is undefined to OBOE

parseFile

public void parseFile(java.lang.String inString)
               throws java.io.FileNotFoundException,
                      java.io.IOException
builds a transaction set from input file

Parameters:
inString - Filename of the edi document file name
Throws:
java.io.FileNotFoundException
java.io.IOException

parse

public void parse(java.net.URL inURL,
                  java.lang.String text)
           throws OBOEException
builds a transaction set by reading a URL NOT USED

Parameters:
inURL - url
text - the document String
Throws:
OBOEException - - unknown transaction set, this transaction set is undefined to OBOE

parse

public void parse(java.io.InputStream inStream)
           throws OBOEException
builds a transaction set from input stream
all the work is really done here, the other parse methods call this

Parameters:
inStream - InputStream the edi document in a stream
Throws:
OBOEException -
- continues to throw existing exception - unknown transaction set, this transaction set is undefined to OBOE

getEnvelope

public com.americancoders.edi.Envelope getEnvelope()
returns the Envelope that was parsed

Returns:
envelope object either X12Envelope or EDIFactEnvelope

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.