DSCParserConstants
, DSCComment
, DSCEvent
DSCCommentDocumentNeededResources
, DSCCommentDocumentSuppliedResources
, DSCCommentPageResources
public abstract class AbstractResourcesDSCComment extends AbstractDSCComment
Modifier and Type | Field | Description |
---|---|---|
protected static java.util.Set |
RESOURCE_TYPES |
Defines the known resource types (font, procset, file, pattern etc.).
|
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, splitParams
asLine, isComment, isHeaderComment, isLine
getName
asLine, isComment, isHeaderComment, isLine
protected static final java.util.Set RESOURCE_TYPES
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-2016 The Apache Software Foundation. All Rights Reserved.