public class DSCHeaderComment extends AbstractEvent
COMMENT, DSC_COMMENT, EOF, HEADER_COMMENT, LINE
Constructor and Description |
---|
DSCHeaderComment(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.
|
int |
getEventType()
Returns the event type.
|
boolean |
isHeaderComment()
Indicates whether the instance is a header comment.
|
boolean |
isPSAdobe30()
Indicates whether the file started by this comments is DSC 3.0 compliant.
|
asDSCComment, asLine, isComment, isDSCComment, isLine
public DSCHeaderComment(java.lang.String comment)
comment
- the commentpublic java.lang.String getComment()
public boolean isPSAdobe30()
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 isHeaderComment()
DSCEvent
isHeaderComment
in interface DSCEvent
isHeaderComment
in class AbstractEvent
AbstractEvent.isHeaderComment()
Copyright 1999-2012 The Apache Software Foundation. All Rights Reserved.