Class MODCAParser

java.lang.Object
org.apache.fop.afp.parser.MODCAParser

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

    • 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:
  • Constructor Details

    • MODCAParser

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

    • readNextStructuredField

      public UnparsedStructuredField readNextStructuredField() throws 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:
      IOException - if an I/O error occurs