|
xmlgraphics-commons 1.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xmlgraphics.ps.dsc.events.AbstractEvent
org.apache.xmlgraphics.ps.dsc.events.DSCHeaderComment
public class DSCHeaderComment
Represents a DSC header comment (beginning with "%!).
Field Summary |
---|
Fields inherited from interface org.apache.xmlgraphics.ps.dsc.DSCParserConstants |
---|
COMMENT, DSC_COMMENT, EOF, HEADER_COMMENT, LINE |
Constructor Summary | |
---|---|
DSCHeaderComment(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. |
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. |
Methods inherited from class org.apache.xmlgraphics.ps.dsc.events.AbstractEvent |
---|
asDSCComment, asLine, isComment, isDSCComment, isLine |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DSCHeaderComment(java.lang.String comment)
comment
- the commentMethod Detail |
---|
public java.lang.String getComment()
public boolean isPSAdobe30()
public void generate(PSGenerator gen) throws java.io.IOException
DSCEvent
gen
- the PSGenerator to write to
java.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()
|
xmlgraphics-commons 1.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |