* In a real situation, of course, many more segments and fields would be populated
*/
// Now, let's encode the message and look at the output
Parser parser = new PipeParser();
String encodedMessage = parser.encode(adt);
System.out.println("Printing ER7 Encoded Message:");
System.out.println(encodedMessage);
/*
* Prints: