DSCParserConstantsDSCCommentAbstractDSCComment, AbstractEvent, AbstractResourceDSCComment, AbstractResourcesDSCComment, DSCAtend, DSCCommentBeginDocument, DSCCommentBeginResource, DSCCommentBoundingBox, DSCCommentDocumentNeededResources, DSCCommentDocumentSuppliedResources, DSCCommentEndComments, DSCCommentEndOfFile, DSCCommentHiResBoundingBox, DSCCommentIncludeResource, DSCCommentLanguageLevel, DSCCommentPage, DSCCommentPageBoundingBox, DSCCommentPageHiResBoundingBox, DSCCommentPageResources, DSCCommentPages, DSCCommentTitle, DSCHeaderComment, PostScriptComment, PostScriptLine, UnparsedDSCCommentpublic interface DSCEvent extends DSCParserConstants
COMMENT, DSC_COMMENT, EOF, HEADER_COMMENT, LINE| Modifier and Type | Method | Description |
|---|---|---|
DSCComment |
asDSCComment() |
Casts this instance to a DSCComment if possible.
|
PostScriptLine |
asLine() |
Casts this instance to a PostScriptLine if possible.
|
void |
generate(PSGenerator gen) |
Writes the event to the given PSGenerator.
|
int |
getEventType() |
Returns the event type.
|
boolean |
isComment() |
Indicates whether the instance is a PostScript comment.
|
boolean |
isDSCComment() |
Indicates whether the instance is a DSC comment.
|
boolean |
isHeaderComment() |
Indicates whether the instance is a header comment.
|
boolean |
isLine() |
Indicates whether the instance is a PostScript line.
|
int getEventType()
DSCParserConstants)DSCComment asDSCComment()
ClassCastException - if the event is no DSCCommentPostScriptLine asLine()
ClassCastException - if the event is no PostScriptLineboolean isDSCComment()
boolean isComment()
boolean isHeaderComment()
boolean isLine()
void generate(PSGenerator gen) throws IOException
gen - the PSGenerator to write toIOException - In case of an I/O errorCopyright © 2018 Apache Software Foundation. All rights reserved.