Contains the classes to process a docket xml format and generate raw data to send to the printer.

The XMLDocketScanner process an XML file and generate data according to the printer. The XLM DTD is documented for information.
This class is constructed with one implementation of PrintCommanderInterface from PhysicalPrinter.
The PhysicalPrinter has the responsibility to provide an instance of AbstractPrintCommander with the optional CharacterProcessor.
A new document is processed using one of the 2 scan methods:
These methods return a string containing the raw data to send to the printer using the specific command set.

The PrintCommanderInterface contains all the commands that can be applied to a printer. The abstract class AbstractPrintCommander contains the common code.
Each implementation use a specific command set to translate a command to a set of control characters specific to the printer.
The implementation is defined by the configuration of the printer. An optional CharacterProcessor implementation can be attached to the printer for multipass thai printers. The print commander generates the content into a buffer to allow the processing by line.

Docket class diagram