DSCParserConstants
DSCComment
AbstractDSCComment
, AbstractEvent
, AbstractResourceDSCComment
, AbstractResourcesDSCComment
, DSCAtend
, DSCCommentBeginDocument
, DSCCommentBeginResource
, DSCCommentBoundingBox
, DSCCommentDocumentNeededResources
, DSCCommentDocumentSuppliedResources
, DSCCommentEndComments
, DSCCommentEndOfFile
, DSCCommentHiResBoundingBox
, DSCCommentIncludeResource
, DSCCommentLanguageLevel
, DSCCommentPage
, DSCCommentPageBoundingBox
, DSCCommentPageHiResBoundingBox
, DSCCommentPageResources
, DSCCommentPages
, DSCCommentTitle
, DSCHeaderComment
, PostScriptComment
, PostScriptLine
, UnparsedDSCComment
public 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()
java.lang.ClassCastException
- if the event is no DSCCommentPostScriptLine asLine()
java.lang.ClassCastException
- if the event is no PostScriptLineboolean isDSCComment()
boolean isComment()
boolean isHeaderComment()
boolean isLine()
void generate(PSGenerator gen) throws java.io.IOException
gen
- the PSGenerator to write tojava.io.IOException
- In case of an I/O errorCopyright 1999-2016 The Apache Software Foundation. All Rights Reserved.