|
xmlgraphics-commons 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface representing a DSC event. A DSC event can be a DSC comment, a PostScript comment or a line of PostScript code.
Fields inherited from interface org.apache.xmlgraphics.ps.dsc.DSCParserConstants |
COMMENT, DSC_COMMENT, EOF, HEADER_COMMENT, LINE |
Method Summary | |
DSCComment |
asDSCComment()
Casts this instance to a DSCComment if possible. |
PostScriptLine |
asLine()
Casts this instance to a PostScriptLine if possible. |
void |
generate(PSGenerator gen)
Writes the event to the given PSGenerator. |
int |
getEventType()
Returns the event type. |
boolean |
isComment()
Indicates whether the instance is a PostScript comment. |
boolean |
isDSCComment()
Indicates whether the instance is a DSC comment. |
boolean |
isHeaderComment()
Indicates whether the instance is a header comment. |
boolean |
isLine()
Indicates whether the instance is a PostScript line. |
Method Detail |
public int getEventType()
DSCParserConstants
)public DSCComment asDSCComment()
ClassCastException
- if the event is no DSCCommentpublic PostScriptLine asLine()
ClassCastException
- if the event is no PostScriptLinepublic boolean isDSCComment()
public boolean isComment()
public boolean isHeaderComment()
public boolean isLine()
public void generate(PSGenerator gen) throws java.io.IOException
gen
- the PSGenerator to write tojava.io.IOException
- In case of an I/O error
|
xmlgraphics-commons 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |