pargery / modica

Creates an object model of an AFP document

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MODiCA

This project is a Java library used for parsing IBMs Advanced Function Printing document format.

The client API works on two levels, a parser for structured field introducers and a separate API for parsing the content of structured fields. The API has been designed with handler interfaces so that the client can control the behaviour of the parser.

StructuredFieldIntroducerHandler

The StructuredFieldIntroducer parser initially parses the structured field introducers of the AFP document. This gives a skeletal structure to the document and the behaviour is controlled by the StructuredFieldIntroducerHandler.

StructuredFieldHandler

The richer parse of the document is handled once the introducers have been collected. A StructuredFieldFactory consumes StructuredFieldIntroducers and returns the parsed StructuredField objects. This system gives control of the rich parser to the client as structured fields can be selectively parsed. Once the structured fields have been parsed, the behaviour of the parser can be controlled through a simple interface; StructuredFieldHandler.

The Commandline Utility

See the cli sub-project

About

Creates an object model of an AFP document


Languages

Language:Java 97.5%Language:Groovy 1.8%Language:CSS 0.3%Language:HTML 0.3%Language:Shell 0.1%