public class PostScriptLine extends AbstractEvent
COMMENT, DSC_COMMENT, EOF, HEADER_COMMENT, LINE| Constructor and Description |
|---|
PostScriptLine(java.lang.String line)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
asDSCComment, isComment, isDSCComment, isHeaderCommentpublic PostScriptLine(java.lang.String line)
line - the code linepublic java.lang.String getLine()
public void generate(PSGenerator gen) throws java.io.IOException
DSCEventgen - the PSGenerator to write tojava.io.IOException - In case of an I/O errorDSCEvent.generate(org.apache.xmlgraphics.ps.PSGenerator)public int getEventType()
DSCEventDSCParserConstants)DSCEvent.getEventType()public PostScriptLine asLine()
DSCEventasLine in interface DSCEventasLine in class AbstractEventAbstractEvent.asLine()public boolean isLine()
DSCEventisLine in interface DSCEventisLine in class AbstractEventAbstractEvent.isLine()Copyright 1999-2025 The Apache Software Foundation. All Rights Reserved.