|
xmlgraphics-commons 1.2 | |||||||||
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.PostScriptLine
public class PostScriptLine
Represents a line of PostScript code.
Field Summary |
---|
Fields inherited from interface org.apache.xmlgraphics.ps.dsc.DSCParserConstants |
---|
COMMENT, DSC_COMMENT, EOF, HEADER_COMMENT, LINE |
Constructor Summary | |
---|---|
PostScriptLine(java.lang.String line)
Creates a new instance. |
Method Summary | |
---|---|
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. |
java.lang.String |
getLine()
Returns the code line. |
boolean |
isLine()
Indicates whether the instance is a PostScript line. |
Methods inherited from class org.apache.xmlgraphics.ps.dsc.events.AbstractEvent |
---|
asDSCComment, isComment, isDSCComment, isHeaderComment |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PostScriptLine(java.lang.String line)
line
- the code lineMethod Detail |
---|
public java.lang.String getLine()
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 PostScriptLine asLine()
DSCEvent
asLine
in interface DSCEvent
asLine
in class AbstractEvent
AbstractEvent.asLine()
public boolean isLine()
DSCEvent
isLine
in interface DSCEvent
isLine
in class AbstractEvent
AbstractEvent.isLine()
|
xmlgraphics-commons 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |