public abstract class AbstractResourcesDSCComment extends AbstractDSCComment
COMMENT, DSC_COMMENT, EOF, HEADER_COMMENT, LINE
Constructor and Description |
---|
AbstractResourcesDSCComment()
Creates a new instance.
|
AbstractResourcesDSCComment(java.util.Collection resources)
Creates a new instance.
|
Modifier and Type | Method and 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, splitParams
asLine, isComment, isHeaderComment, isLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName
asLine, isComment, isHeaderComment, isLine
public 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-2021 The Apache Software Foundation. All Rights Reserved.