public class EventRecorder extends Object implements DSCHandler
| Constructor and Description |
|---|
EventRecorder() |
| Modifier and Type | Method and Description |
|---|---|
void |
comment(String comment)
Called for any line containing a full-line PostScript comment.
|
void |
endDocument()
Called when the PostScript file is fully processed, i.e.
|
void |
handleDSCComment(DSCComment comment)
Called for each standard DSC comment.
|
void |
line(String line)
Called for a normal line of PostScript code.
|
void |
replay(DSCHandler handler)
Replays the recorded events to a specified DSCHandler instance.
|
void |
startDocument(String header)
Called as a new PostScript file starts.
|
public void replay(DSCHandler handler) throws IOException
handler - the DSCHandler to send the recorded events toIOException - In case of an I/O errorpublic void comment(String comment) throws IOException
DSCHandlercomment in interface DSCHandlercomment - the comment lineIOException - In case of an I/O errorDSCHandler.comment(java.lang.String)public void handleDSCComment(DSCComment comment) throws IOException
DSCHandlerhandleDSCComment in interface DSCHandlercomment - the DSC commentIOException - In case of an I/O errorDSCHandler.handleDSCComment(
org.apache.xmlgraphics.ps.dsc.events.DSCComment)public void line(String line) throws IOException
DSCHandlerline in interface DSCHandlerline - the line of codeIOException - In case of an I/O errorDSCHandler.line(java.lang.String)public void startDocument(String header) throws IOException
DSCHandlerstartDocument in interface DSCHandlerheader - the first line of the DSC-compliant fileIOException - In case of an I/O errorDSCHandler.startDocument(java.lang.String)public void endDocument()
throws IOException
DSCHandlerendDocument in interface DSCHandlerIOException - In case of an I/O errorDSCHandler.endDocument()Copyright 1999-2012 The Apache Software Foundation. All Rights Reserved.