X12Parser¶
-
public class
X12Parser
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¶
Constructors¶
Methods¶
doesChildLoopMatch¶
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: - java.io.IOException – if any.
- FormatException – if any.
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: - FormatException – if any.
Returns: the X12 object