DSCParserConstants, DSCComment, DSCEventDSCCommentDocumentNeededResources, DSCCommentDocumentSuppliedResources, DSCCommentPageResourcespublic abstract class AbstractResourcesDSCComment extends AbstractDSCComment
COMMENT, DSC_COMMENT, EOF, HEADER_COMMENT, LINE| Constructor | Description |
|---|---|
AbstractResourcesDSCComment() |
Creates a new instance.
|
AbstractResourcesDSCComment(java.util.Collection resources) |
Creates a new instance.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
addResource(PSResource res) |
Adds a new resource.
|
void |
addResources(java.util.Collection resources) |
Adds a collection of resources.
|
void |
generate(PSGenerator gen) |
Writes the event to the given PSGenerator.
|
java.util.Set |
getResources() |
Returns the set of resources associated with this DSC comment.
|
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, splitParamsasLine, isComment, isHeaderComment, isLinegetNameasLine, isComment, isHeaderComment, isLinepublic AbstractResourcesDSCComment()
public AbstractResourcesDSCComment(java.util.Collection resources)
resources - a Collection of PSResource instancespublic boolean hasValues()
public void addResource(PSResource res)
res - the resourcepublic void addResources(java.util.Collection resources)
resources - a Collection of PSResource instances.public java.util.Set getResources()
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-2018 The Apache Software Foundation. All Rights Reserved.