DSCListener
, DSCParserConstants
, NestedDocumentHandler
public class DefaultNestedDocumentHandler extends java.lang.Object implements DSCParserConstants, NestedDocumentHandler, DSCListener
DSCListener
implementation which automatically skips data
between Begin/EndDocument and Begin/EndData.COMMENT, DSC_COMMENT, EOF, HEADER_COMMENT, LINE
Constructor | Description |
---|---|
DefaultNestedDocumentHandler(PSGenerator gen) |
Creates a new instance.
|
Modifier and Type | Method | Description |
---|---|---|
void |
handle(DSCEvent event,
DSCParser parser) |
Handle a DSC event.
|
void |
processEvent(DSCEvent event,
DSCParser parser) |
Called for each DSC event.
|
public DefaultNestedDocumentHandler(PSGenerator gen)
gen
- PSGenerator to pass through the skipped contentpublic void handle(DSCEvent event, DSCParser parser) throws java.io.IOException, DSCException
handle
in interface NestedDocumentHandler
event
- the DSC event to handleparser
- the DSC parser to work withjava.io.IOException
- In case of an I/O errorDSCException
- In case of a violation of the DSC specpublic void processEvent(DSCEvent event, DSCParser parser) throws java.io.IOException, DSCException
processEvent
in interface DSCListener
event
- the DSC eventparser
- the DSC parserjava.io.IOException
- if an I/O error occursDSCException
- if a DSC-specific error occursCopyright 1999-2016 The Apache Software Foundation. All Rights Reserved.