| org.apache.xmlgraphics.ps.dsc.DSCHandler
All known Subclasses: org.apache.xmlgraphics.ps.dsc.DefaultDSCHandler, org.apache.xmlgraphics.ps.dsc.EventRecorder,
DSCHandler | public interface DSCHandler (Code) | | Interface containing events generated by the DSCParser. Applications can implement this
interface to react to certain events.
|
Method Summary | |
public void | comment(String comment) Called for any line containing a full-line PostScript comment. | public void | endDocument() Called when the PostScript file is fully processed, i.e. | public void | handleDSCComment(DSCComment comment) Called for each standard DSC comment. | public void | line(String line) Called for a normal line of PostScript code. | public void | startDocument(String header) Called as a new PostScript file starts. |
comment | public void comment(String comment) throws IOException(Code) | | Called for any line containing a full-line PostScript comment. This is also called for
custom comments following the extension mechanism of the DSC specification.
Parameters: comment - the comment line throws: IOException - In case of an I/O error |
endDocument | public void endDocument() throws IOException(Code) | | Called when the PostScript file is fully processed, i.e. after the %%EOF comment.
throws: IOException - In case of an I/O error |
handleDSCComment | public void handleDSCComment(DSCComment comment) throws IOException(Code) | | Called for each standard DSC comment. The classes passed to this method may be simple
DSCComment classes or special subclasses for some of the DSC comments.
Parameters: comment - the DSC comment throws: IOException - In case of an I/O error |
line | public void line(String line) throws IOException(Code) | | Called for a normal line of PostScript code.
Parameters: line - the line of code throws: IOException - In case of an I/O error |
startDocument | public void startDocument(String header) throws IOException(Code) | | Called as a new PostScript file starts.
Parameters: header - the first line of the DSC-compliant file throws: IOException - In case of an I/O error |
|
|