public class PostScriptLine extends AbstractEvent
COMMENT, DSC_COMMENT, EOF, HEADER_COMMENT, LINE
构造器和说明 |
---|
PostScriptLine(String line)
Creates a new instance.
|
限定符和类型 | 方法和说明 |
---|---|
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, isHeaderComment
public PostScriptLine(String line)
line
- the code linepublic String getLine()
public void generate(PSGenerator gen) throws IOException
DSCEvent
gen
- the PSGenerator to write toIOException
- 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
在接口中 DSCEvent
asLine
在类中 AbstractEvent
AbstractEvent.asLine()
public boolean isLine()
DSCEvent
isLine
在接口中 DSCEvent
isLine
在类中 AbstractEvent
AbstractEvent.isLine()
Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.