DSCParserConstants
, DSCComment
, DSCEvent
DSCCommentBeginResource
, DSCCommentIncludeResource
public abstract class AbstractResourceDSCComment extends AbstractDSCComment
COMMENT, DSC_COMMENT, EOF, HEADER_COMMENT, LINE
Constructor | Description |
---|---|
AbstractResourceDSCComment() |
Creates a new instance
|
AbstractResourceDSCComment(PSResource resource) |
Creates a new instance for a given PSResource instance
|
Modifier and Type | Method | Description |
---|---|---|
void |
generate(PSGenerator gen) |
Writes the event to the given PSGenerator.
|
PSResource |
getResource() |
Returns the associated PSResource.
|
boolean |
hasValues() |
Indicates whether this DSC comment has values.
|
void |
parseValue(java.lang.String value) |
Parses the value of the DSC comment.
|
asDSCComment, getEventType, isAtend, isDSCComment, splitParams
asLine, isComment, isHeaderComment, isLine
getName
asLine, isComment, isHeaderComment, isLine
public AbstractResourceDSCComment()
public AbstractResourceDSCComment(PSResource resource)
resource
- the resourcepublic PSResource getResource()
public boolean hasValues()
public void parseValue(java.lang.String value)
value
- the valuepublic void generate(PSGenerator gen) throws java.io.IOException
gen
- the PSGenerator to write tojava.io.IOException
- In case of an I/O errorDSCEvent.generate(
org.apache.xmlgraphics.ps.PSGenerator)
Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.