public interface DSCHandler
限定符和类型 | 方法和说明 |
---|---|
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. after the %%EOF comment.
|
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.
|
void startDocument(String header) throws IOException
header
- the first line of the DSC-compliant fileIOException
- 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 commentIOException
- In case of an I/O errorvoid line(String line) throws IOException
line
- the line of codeIOException
- In case of an I/O errorvoid comment(String comment) throws IOException
comment
- the comment lineIOException
- In case of an I/O errorCopyright 1999-2016 The Apache Software Foundation. All Rights Reserved.