DSCParserConstants
, DSCComment
, DSCEvent
public class DSCAtend extends AbstractDSCComment
COMMENT, DSC_COMMENT, EOF, HEADER_COMMENT, LINE
Constructor | Description |
---|---|
DSCAtend(java.lang.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.
|
java.lang.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(java.lang.String value) |
Parses the value of the DSC comment.
|
asDSCComment, getEventType, isDSCComment, splitParams
asLine, isComment, isHeaderComment, isLine
asLine, isComment, isHeaderComment, isLine
public DSCAtend(java.lang.String name)
name
- the name of the DSC comment (without the "%%" prefix)public java.lang.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(java.lang.String value)
DSCComment
value
- the valueDSCComment.parseValue(java.lang.String)
public void generate(PSGenerator gen) throws java.io.IOException
DSCEvent
gen
- the PSGenerator to write tojava.io.IOException
- In case of an I/O errorDSCEvent.generate(
org.apache.xmlgraphics.ps.PSGenerator)
public DSCComment createDSCCommentFromAtend()
Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.