public class DSCCommentBeginDocument extends AbstractDSCComment
Modifier and Type | Field and Description |
---|---|
private PSResource |
resource |
private java.lang.String |
type |
private java.lang.Float |
version |
COMMENT, DSC_COMMENT, EOF, HEADER_COMMENT, LINE
Constructor and Description |
---|
DSCCommentBeginDocument()
Creates a new instance
|
DSCCommentBeginDocument(PSResource resource)
Creates a new instance for a given PSResource instance
|
DSCCommentBeginDocument(PSResource resource,
java.lang.Float version,
java.lang.String type)
Creates a new instance for a given PSResource instance
|
Modifier and Type | Method and Description |
---|---|
void |
generate(PSGenerator gen)
Writes the event to the given PSGenerator.
|
java.lang.String |
getName()
Returns the name of the DSC comment.
|
PSResource |
getResource()
Returns the associated PSResource.
|
java.lang.String |
getType()
Returns the resource type
|
java.lang.Float |
getVersion()
Returns the resource version.
|
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
asLine, isComment, isHeaderComment, isLine
private PSResource resource
private java.lang.Float version
private java.lang.String type
public DSCCommentBeginDocument()
public DSCCommentBeginDocument(PSResource resource)
resource
- the resourcepublic DSCCommentBeginDocument(PSResource resource, java.lang.Float version, java.lang.String type)
resource
- the resourceversion
- the version of the resource (or null)type
- the type of resource (or null)public java.lang.Float getVersion()
public java.lang.String getType()
public java.lang.String getName()
public PSResource getResource()
public boolean hasValues()
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)