Package org.apache.fop.afp.parser
Class MODCAParser
- java.lang.Object
-
- org.apache.fop.afp.parser.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
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UnparsedStructuredField
readNextStructuredField()
Reads the next structured field from the input stream.
-
-
-
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
-
-
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
-
-