|
xmlgraphics-commons 2.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DSCEvent
Interface representing a DSC event. A DSC event can be a DSC comment, a PostScript comment or a line of PostScript code.
| Field Summary |
|---|
| 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 |
|---|
int getEventType()
DSCParserConstants)DSCComment asDSCComment()
ClassCastException - if the event is no DSCCommentPostScriptLine asLine()
ClassCastException - if the event is no PostScriptLineboolean isDSCComment()
boolean isComment()
boolean isHeaderComment()
boolean isLine()
void generate(PSGenerator gen)
throws IOException
gen - the PSGenerator to write to
IOException - In case of an I/O error
|
xmlgraphics-commons 2.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||