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.private DataInputStream
private static final int
private static final org.apache.commons.logging.Log
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReads the next structured field from the input stream.
-
Field Details
-
LOG
private static final org.apache.commons.logging.Log LOG -
INTRODUCER_LENGTH
private static final int INTRODUCER_LENGTH- See Also:
-
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:
-
din
-
-
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
-