Package org.apache.fop.afp.parser
Class MODCAParser
java.lang.Object
org.apache.fop.afp.parser.MODCAParser
An simple MO:DCA/AFP parser.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final byte
The carriage control character (0x5A) used to indicate the start of a structured field. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReads the next structured field from the input stream.
-
Field Details
-
CARRIAGE_CONTROL_CHAR
public static final byte CARRIAGE_CONTROL_CHARThe carriage control character (0x5A) used to indicate the start of a structured field.- See Also:
-
-
Constructor Details
-
MODCAParser
Main constructor- Parameters:
in
- theInputStream
to read the AFP file from.
-
-
Method Details
-
readNextStructuredField
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
-