DSCParserConstants, DSCComment, DSCEventpublic class DSCCommentBeginDocument extends AbstractDSCComment
COMMENT, DSC_COMMENT, EOF, HEADER_COMMENT, LINE| Constructor | Description |
|---|---|
DSCCommentBeginDocument() |
Creates a new instance
|
DSCCommentBeginDocument(PSResource resource) |
Creates a new instance for a given PSResource instance
|
DSCCommentBeginDocument(PSResource resource,
Float version,
String type) |
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.
|
String |
getName() |
Returns the name of the DSC comment.
|
PSResource |
getResource() |
Returns the associated PSResource.
|
String |
getType() |
Returns the resource type
|
Float |
getVersion() |
Returns the resource version.
|
boolean |
hasValues() |
Indicates whether this DSC comment has values.
|
void |
parseValue(String value) |
Parses the value of the DSC comment.
|
asDSCComment, getEventType, isAtend, isDSCComment, splitParamsasLine, isComment, isHeaderComment, isLineasLine, isComment, isHeaderComment, isLinepublic DSCCommentBeginDocument()
public DSCCommentBeginDocument(PSResource resource)
resource - the resourcepublic DSCCommentBeginDocument(PSResource resource, Float version, String type)
resource - the resourceversion - the version of the resource (or null)type - the type of resource (or null)public Float getVersion()
public String getType()
public String getName()
public PSResource getResource()
public boolean hasValues()
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.