Class MODCAParser


  • public class MODCAParser
    extends java.lang.Object
    An simple MO:DCA/AFP parser.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static byte CARRIAGE_CONTROL_CHAR
      The carriage control character (0x5A) used to indicate the start of a structured field.
    • Constructor Summary

      Constructors 
      Constructor Description
      MODCAParser​(java.io.InputStream in)
      Main constructor
    • Field Detail

      • CARRIAGE_CONTROL_CHAR

        public static final byte CARRIAGE_CONTROL_CHAR
        The carriage control character (0x5A) used to indicate the start of a structured field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • MODCAParser

        public MODCAParser​(java.io.InputStream in)
        Main constructor
        Parameters:
        in - the InputStream to read the AFP file from.
    • Method Detail

      • readNextStructuredField

        public UnparsedStructuredField readNextStructuredField()
                                                        throws java.io.IOException
        Reads the next structured field from the input stream.

        No structure validation of the MO:DCA file is performed.

        Returns:
        a new unparsed structured field (or null when parsing is finished).
        Throws:
        java.io.IOException - if an I/O error occurs