org.apache.xmlgraphics.ps.dsc.events
Class PostScriptComment
java.lang.Object
|
+--org.apache.xmlgraphics.ps.dsc.events.AbstractEvent
|
+--org.apache.xmlgraphics.ps.dsc.events.PostScriptComment
- All Implemented Interfaces:
- DSCEvent, DSCParserConstants
- public class PostScriptComment
- extends AbstractEvent
Represents a PostScript comment
Constructor Summary |
PostScriptComment(java.lang.String comment)
Creates a new instance. |
Method Summary |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PostScriptComment
public PostScriptComment(java.lang.String comment)
- Creates a new instance.
- Parameters:
comment
- the comment
getComment
public java.lang.String getComment()
- Returns the comment text.
- Returns:
- the comment (without the "%" prefix)
generate
public void generate(PSGenerator gen)
throws java.io.IOException
- Description copied from interface:
DSCEvent
- Writes the event to the given PSGenerator.
- See Also:
DSCEvent.generate(org.apache.xmlgraphics.ps.PSGenerator)
getEventType
public int getEventType()
- Description copied from interface:
DSCEvent
- Returns the event type.
- See Also:
DSCEvent.getEventType()
isComment
public boolean isComment()
- Description copied from interface:
DSCEvent
- Indicates whether the instance is a PostScript comment.
- Overrides:
isComment
in class AbstractEvent
- See Also:
AbstractEvent.isComment()
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.