DSCParserConstants, DSCEventpublic class PostScriptLine extends AbstractEvent
COMMENT, DSC_COMMENT, EOF, HEADER_COMMENT, LINE| Constructor | Description |
|---|---|
PostScriptLine(String line) |
Creates a new instance.
|
| Modifier and Type | Method | 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.
|
String |
getLine() |
Returns the code line.
|
boolean |
isLine() |
Indicates whether the instance is a PostScript line.
|
asDSCComment, isComment, isDSCComment, isHeaderCommentpublic PostScriptLine(String line)
line - the code linepublic String getLine()
public void generate(PSGenerator gen) throws IOException
DSCEventgen - the PSGenerator to write toIOException - 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 © 2018 Apache Software Foundation. All rights reserved.