com.americancoders.edi.EDIFact
Class SAPExample

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

public class SAPExample
extends java.lang.Object


Constructor Summary
SAPExample(java.lang.String inFile, java.lang.String outFile, java.lang.String rulesFile)
          Constructor, just calls edi2XML
 
Method Summary
protected  void ediToXML(java.lang.String inputFilename, java.lang.String outputFilename, java.lang.String rulesFilename)
          Creates XML EDI data using a classic EDI file
 java.lang.String getContents(java.io.File inFile)
          Reads the contents of a file and returns it as String - warning: there may occure problems because a byte buffer is used instead of a char buffer.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAPExample

public SAPExample(java.lang.String inFile,
                  java.lang.String outFile,
                  java.lang.String rulesFile)
Constructor, just calls edi2XML
Parameters:
inFile - input file, format is XML, must be EDIFACT style
outFile - Filename for created XML EDI output file
rulesFile - Filename of the XML OBOE rules file
Method Detail

ediToXML

protected void ediToXML(java.lang.String inputFilename,
                        java.lang.String outputFilename,
                        java.lang.String rulesFilename)
Creates XML EDI data using a classic EDI file
Parameters:
inputFilename - Classic EDI data file in EDIFACT style (e.g. orders, edifact )
outputFilename - Filename for created XML EDI output file (also printed to stdout)
rulesFilename - Filename of the XML OBOE rules file

getContents

public java.lang.String getContents(java.io.File inFile)
                             throws java.io.IOException
Reads the contents of a file and returns it as String - warning: there may occure problems because a byte buffer is used instead of a char buffer.
Parameters:
inFile - File to read
return - String that contains the file contents

main

public static void main(java.lang.String[] args)
Parameters:
args - the command line arguments