public class UnparsedDSCComment extends AbstractEvent implements DSCComment
DSCCommentFactory
COMMENT, DSC_COMMENT, EOF, HEADER_COMMENT, LINE
构造器和说明 |
---|
UnparsedDSCComment(String name)
Creates a new instance.
|
限定符和类型 | 方法和说明 |
---|---|
DSCComment |
asDSCComment()
Casts this instance to a DSCComment if possible.
|
void |
generate(PSGenerator gen)
Writes the event to the given PSGenerator.
|
int |
getEventType()
Returns the event type.
|
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".
|
boolean |
isDSCComment()
Indicates whether the instance is a DSC comment.
|
void |
parseValue(String value)
Parses the value of the DSC comment.
|
asLine, isComment, isHeaderComment, isLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asLine, isComment, isHeaderComment, isLine
public UnparsedDSCComment(String name)
name
- the name of the DSC commentpublic String getName()
DSCComment
getName
在接口中 DSCComment
DSCComment.getName()
public boolean hasValues()
DSCComment
hasValues
在接口中 DSCComment
DSCComment.hasValues()
public boolean isAtend()
DSCComment
isAtend
在接口中 DSCComment
DSCComment.isAtend()
public void parseValue(String value)
DSCComment
parseValue
在接口中 DSCComment
value
- the valueDSCComment.parseValue(java.lang.String)
public void generate(PSGenerator gen) throws IOException
DSCEvent
generate
在接口中 DSCComment
generate
在接口中 DSCEvent
gen
- the PSGenerator to write toIOException
- In case of an I/O errorDSCEvent.generate(org.apache.xmlgraphics.ps.PSGenerator)
public boolean isDSCComment()
DSCEvent
isDSCComment
在接口中 DSCEvent
isDSCComment
在类中 AbstractEvent
AbstractEvent.isDSCComment()
public int getEventType()
DSCEvent
getEventType
在接口中 DSCEvent
DSCParserConstants
)DSCEvent.getEventType()
public DSCComment asDSCComment()
DSCEvent
asDSCComment
在接口中 DSCEvent
asDSCComment
在类中 AbstractEvent
AbstractEvent.asDSCComment()
Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.