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 and Description |
|---|
DefaultNestedDocumentHandler(PSGenerator gen)
Creates a new instance.
|
| Modifier and Type | Method and 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 NestedDocumentHandlerevent - 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 DSCListenerevent - the DSC eventparser - the DSC parserjava.io.IOException - if an I/O error occursDSCException - if a DSC-specific error occursCopyright 1999-2025 The Apache Software Foundation. All Rights Reserved.