* @param handler the DSCHandler instance to send the events to
* @throws IOException In case of an I/O error
* @throws DSCException In case of a violation of the DSC spec
*/
public void parse(DSCHandler handler) throws IOException, DSCException {
DSCHeaderComment header = DSCTools.checkAndSkipDSC30Header(this);
handler.startDocument("%!" + header.getComment());
DSCEvent event;
while (hasNext()) {
event = nextEvent();
switch (event.getEventType()) {
case HEADER_COMMENT: