X12SimpleParser

public class X12SimpleParser implements Parser

The class represents methods used to translate a X12 transaction represented as a file or string into an X12 object.

Author:Prasad Balan

Fields

POS_COMPOSITE_ELEMENT

static final int POS_COMPOSITE_ELEMENT

POS_ELEMENT

static final int POS_ELEMENT

POS_SEGMENT

static final int POS_SEGMENT

SIZE

static final int SIZE

Methods

parse

public EDI parse(File fileName)

{@inheritDoc} The method takes a X12 file and converts it into a X2 object. The X12 class has methods to convert it into XML format as well as methods to modify the contents.

parse

public EDI parse(InputStream source)

The method takes a InputStream and converts it into a X2 object. The X12 class has methods to convert it into XML format as well as methods to modify the contents.

Parameters:
  • source – InputStream
Throws:
Returns:

the X12 object

parse

public EDI parse(String source)

The method takes a X12 string and converts it into a X2 object. The X12 class has methods to convert it into XML format as well as methods to modify the contents.

Parameters:
  • source – String
Throws:
Returns:

the X12 object