DSCParserConstants, DSCEventpublic class PostScriptComment extends AbstractEvent
COMMENT, DSC_COMMENT, EOF, HEADER_COMMENT, LINE| Constructor | Description |
|---|---|
PostScriptComment(String comment) |
Creates a new instance.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
generate(PSGenerator gen) |
Writes the event to the given PSGenerator.
|
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(String comment)
comment - the commentpublic String getComment()
public void generate(PSGenerator gen) throws IOException
DSCEventgen - the PSGenerator to write toIOException - 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 © 2018 Apache Software Foundation. All rights reserved.