public class PostScriptComment extends AbstractEvent
COMMENT, DSC_COMMENT, EOF, HEADER_COMMENT, LINE
Constructor and Description |
---|
PostScriptComment(java.lang.String comment)
Creates a new instance.
|
Modifier and Type | Method and 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, isLine
public PostScriptComment(java.lang.String comment)
comment
- the commentpublic java.lang.String getComment()
public void generate(PSGenerator gen) throws java.io.IOException
DSCEvent
gen
- the PSGenerator to write tojava.io.IOException
- In case of an I/O errorDSCEvent.generate(org.apache.xmlgraphics.ps.PSGenerator)
public int getEventType()
DSCEvent
DSCParserConstants
)DSCEvent.getEventType()
public boolean isComment()
DSCEvent
isComment
in interface DSCEvent
isComment
in class AbstractEvent
AbstractEvent.isComment()
Copyright 1999-2012 The Apache Software Foundation. All Rights Reserved.