|
xmlgraphics-commons 1.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DSCHandler
Interface containing events generated by the DSCParser. Applications can implement this interface to react to certain events.
Method Summary | |
---|---|
void |
comment(java.lang.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(java.lang.String line)
Called for a normal line of PostScript code. |
void |
startDocument(java.lang.String header)
Called as a new PostScript file starts. |
Method Detail |
---|
void startDocument(java.lang.String header) throws java.io.IOException
header
- the first line of the DSC-compliant file
java.io.IOException
- In case of an I/O errorvoid endDocument() throws java.io.IOException
java.io.IOException
- In case of an I/O errorvoid handleDSCComment(DSCComment comment) throws java.io.IOException
comment
- the DSC comment
java.io.IOException
- In case of an I/O errorvoid line(java.lang.String line) throws java.io.IOException
line
- the line of code
java.io.IOException
- In case of an I/O errorvoid comment(java.lang.String comment) throws java.io.IOException
comment
- the comment line
java.io.IOException
- In case of an I/O error
|
xmlgraphics-commons 1.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |