DSCParserConstants
, DSCComment
, DSCEvent
DSCCommentDocumentNeededResources
, DSCCommentDocumentSuppliedResources
, DSCCommentPageResources
public abstract class AbstractResourcesDSCComment extends AbstractDSCComment
COMMENT, DSC_COMMENT, EOF, HEADER_COMMENT, LINE
Constructor | Description |
---|---|
AbstractResourcesDSCComment() |
Creates a new instance.
|
AbstractResourcesDSCComment(Collection resources) |
Creates a new instance.
|
Modifier and Type | Method | Description |
---|---|---|
void |
addResource(PSResource res) |
Adds a new resource.
|
void |
addResources(Collection resources) |
Adds a collection of resources.
|
void |
generate(PSGenerator gen) |
Writes the event to the given PSGenerator.
|
Set |
getResources() |
Returns the set of resources associated with this DSC comment.
|
boolean |
hasValues() |
Indicates whether this DSC comment has values.
|
void |
parseValue(String value) |
Parses the value of the DSC comment.
|
asDSCComment, getEventType, isAtend, isDSCComment, splitParams
asLine, isComment, isHeaderComment, isLine
getName
asLine, isComment, isHeaderComment, isLine
public AbstractResourcesDSCComment()
public AbstractResourcesDSCComment(Collection resources)
resources
- a Collection of PSResource instancespublic boolean hasValues()
public void addResource(PSResource res)
res
- the resourcepublic void addResources(Collection resources)
resources
- a Collection of PSResource instances.public Set getResources()
public void parseValue(String value)
value
- the valuepublic void generate(PSGenerator gen) throws IOException
gen
- the PSGenerator to write toIOException
- In case of an I/O errorDSCEvent.generate(
org.apache.xmlgraphics.ps.PSGenerator)
Copyright © 2018 Apache Software Foundation. All rights reserved.