|
xmlgraphics-commons 2.2 | |||||||||
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(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 |
startDocument(String header)
Called as a new PostScript file starts. |
Method Detail |
---|
void startDocument(String header) throws IOException
header
- the first line of the DSC-compliant file
IOException
- In case of an I/O errorvoid endDocument() throws IOException
IOException
- In case of an I/O errorvoid handleDSCComment(DSCComment comment) throws IOException
comment
- the DSC comment
IOException
- In case of an I/O errorvoid line(String line) throws IOException
line
- the line of code
IOException
- In case of an I/O errorvoid comment(String comment) throws IOException
comment
- the comment line
IOException
- In case of an I/O error
|
xmlgraphics-commons 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |