xmlgraphics-commons 1.2

org.apache.xmlgraphics.ps.dsc
Class DefaultNestedDocumentHandler

java.lang.Object
  extended by org.apache.xmlgraphics.ps.dsc.DefaultNestedDocumentHandler
All Implemented Interfaces:
DSCParserConstants, NestedDocumentHandler

public class DefaultNestedDocumentHandler
extends java.lang.Object
implements DSCParserConstants, NestedDocumentHandler

Default implementation of the NestedDocumentHandler interface which automatically skips data between Begin/EndDocument and Begin/EndData.


Field Summary
 
Fields inherited from interface org.apache.xmlgraphics.ps.dsc.DSCParserConstants
COMMENT, DSC_COMMENT, EOF, HEADER_COMMENT, LINE
 
Constructor Summary
DefaultNestedDocumentHandler(PSGenerator gen)
          Creates a new instance.
 
Method Summary
 void handle(DSCEvent event, DSCParser parser)
          Handle a DSC event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultNestedDocumentHandler

public DefaultNestedDocumentHandler(PSGenerator gen)
Creates a new instance.

Parameters:
gen - PSGenerator to pass through the skipped content
Method Detail

handle

public void handle(DSCEvent event,
                   DSCParser parser)
            throws java.io.IOException,
                   DSCException
Description copied from interface: NestedDocumentHandler
Handle a DSC event. Implementations may issue additional calls to the DSC parser and may modify its state. When returning from the call, state information such as filters should be restored.

Specified by:
handle in interface NestedDocumentHandler
Parameters:
event - the DSC event to handle
parser - the DSC parser to work with
Throws:
java.io.IOException - In case of an I/O error
DSCException - In case of a violation of the DSC spec
See Also:
NestedDocumentHandler.handle(org.apache.xmlgraphics.ps.dsc.events.DSCEvent, org.apache.xmlgraphics.ps.dsc.DSCParser)

xmlgraphics-commons 1.2

Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.