DSCParserConstants
, DSCComment
, DSCEvent
public class DSCAtend extends AbstractDSCComment
COMMENT, DSC_COMMENT, EOF, HEADER_COMMENT, LINE
Constructor | Description |
---|---|
DSCAtend(String name) |
Creates a new instance
|
Modifier and Type | Method | Description |
---|---|---|
DSCComment |
createDSCCommentFromAtend() |
Creates a new instance of a DSC comment with the same name as this instance but does not
have an "Atend" value.
|
void |
generate(PSGenerator gen) |
Writes the event to the given PSGenerator.
|
String |
getName() |
Returns the name of the DSC comment.
|
boolean |
hasValues() |
Indicates whether this DSC comment has values.
|
boolean |
isAtend() |
Indicates whether the DSC comment's value is "Atend".
|
void |
parseValue(String value) |
Parses the value of the DSC comment.
|
asDSCComment, getEventType, isDSCComment, splitParams
asLine, isComment, isHeaderComment, isLine
asLine, isComment, isHeaderComment, isLine
public DSCAtend(String name)
name
- the name of the DSC comment (without the "%%" prefix)public String getName()
DSCComment
DSCComment.getName()
public boolean hasValues()
DSCComment
DSCComment.hasValues()
public boolean isAtend()
DSCComment
isAtend
in interface DSCComment
isAtend
in class AbstractDSCComment
AbstractDSCComment.isAtend()
public void parseValue(String value)
DSCComment
value
- the valueDSCComment.parseValue(java.lang.String)
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 DSCComment createDSCCommentFromAtend()
Copyright © 2018 Apache Software Foundation. All rights reserved.