DSCParserConstants, DSCEventpublic class PostScriptComment extends AbstractEvent
COMMENT, DSC_COMMENT, EOF, HEADER_COMMENT, LINE| Constructor | Description |
|---|---|
PostScriptComment(java.lang.String comment) |
Creates a new instance.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
generate(PSGenerator gen) |
Writes the event to the given PSGenerator.
|
java.lang.String |
getComment() |
Returns the comment text.
|
int |
getEventType() |
Returns the event type.
|
boolean |
isComment() |
Indicates whether the instance is a PostScript comment.
|
asDSCComment, asLine, isDSCComment, isHeaderComment, isLinepublic PostScriptComment(java.lang.String comment)
comment - the commentpublic java.lang.String getComment()
public void generate(PSGenerator gen) throws java.io.IOException
DSCEventgen - the PSGenerator to write tojava.io.IOException - In case of an I/O errorDSCEvent.generate(org.apache.xmlgraphics.ps.PSGenerator)public int getEventType()
DSCEventDSCParserConstants)DSCEvent.getEventType()public boolean isComment()
DSCEventisComment in interface DSCEventisComment in class AbstractEventAbstractEvent.isComment()Copyright 1999-2018 The Apache Software Foundation. All Rights Reserved.