Package org.apache.xmlgraphics.ps.dsc
Class DSCParser.MyDSCListener
- java.lang.Object
-
- org.apache.xmlgraphics.ps.dsc.DSCParser.MyDSCListener
-
- All Implemented Interfaces:
DSCListener
- Enclosing class:
- DSCParser
static class DSCParser.MyDSCListener extends java.lang.Object implements DSCListener
-
-
Field Summary
Fields Modifier and Type Field Description private NestedDocumentHandler
handler
-
Constructor Summary
Constructors Constructor Description MyDSCListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
processEvent(DSCEvent event, DSCParser parser)
Called for each DSC event.
-
-
-
Field Detail
-
handler
private NestedDocumentHandler handler
-
-
Method Detail
-
processEvent
public void processEvent(DSCEvent event, DSCParser parser) throws java.io.IOException, DSCException
Description copied from interface:DSCListener
Called for each DSC event. You can call methods on the DSC parser to skip comments, for example. But implementations need to be good citizens and take into account that multiple listeners can be active at the same time and that they might interfere with other listeners. When returning from the call, state information such as filters should be restored.- Specified by:
processEvent
in interfaceDSCListener
- Parameters:
event
- the DSC eventparser
- the DSC parser- Throws:
java.io.IOException
- if an I/O error occursDSCException
- if a DSC-specific error occurs
-
-