|
xmlgraphics-commons 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xmlgraphics.ps.dsc.EventRecorder
public class EventRecorder
DSCHandler implementation that records DSC events.
Constructor Summary | |
---|---|
EventRecorder()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EventRecorder()
Method Detail |
---|
public void replay(DSCHandler handler) throws IOException
handler
- the DSCHandler to send the recorded events to
IOException
- In case of an I/O errorpublic void comment(String comment) throws IOException
DSCHandler
comment
in interface DSCHandler
comment
- the comment line
IOException
- In case of an I/O errorDSCHandler.comment(java.lang.String)
public void handleDSCComment(DSCComment comment) throws IOException
DSCHandler
handleDSCComment
in interface DSCHandler
comment
- the DSC comment
IOException
- In case of an I/O errorDSCHandler.handleDSCComment(
org.apache.xmlgraphics.ps.dsc.events.DSCComment)
public void line(String line) throws IOException
DSCHandler
line
in interface DSCHandler
line
- the line of code
IOException
- In case of an I/O errorDSCHandler.line(java.lang.String)
public void startDocument(String header) throws IOException
DSCHandler
startDocument
in interface DSCHandler
header
- the first line of the DSC-compliant file
IOException
- In case of an I/O errorDSCHandler.startDocument(java.lang.String)
public void endDocument() throws IOException
DSCHandler
endDocument
in interface DSCHandler
IOException
- In case of an I/O errorDSCHandler.endDocument()
|
xmlgraphics-commons 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |