DefaultDSCHandler
, EventRecorder
public interface DSCHandler
Modifier and Type | Method | Description |
---|---|---|
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.
|
void startDocument(java.lang.String header) throws java.io.IOException
header
- the first line of the DSC-compliant filejava.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 commentjava.io.IOException
- In case of an I/O errorvoid line(java.lang.String line) throws java.io.IOException
line
- the line of codejava.io.IOException
- In case of an I/O errorvoid comment(java.lang.String comment) throws java.io.IOException
comment
- the comment linejava.io.IOException
- In case of an I/O errorCopyright 1999-2016 The Apache Software Foundation. All Rights Reserved.