public class DSCCommentBeginResource extends AbstractResourceDSCComment
COMMENT, DSC_COMMENT, EOF, HEADER_COMMENT, LINE
构造器和说明 |
---|
DSCCommentBeginResource()
Creates a new instance
|
DSCCommentBeginResource(PSResource resource)
Creates a new instance for a given PSResource instance
|
DSCCommentBeginResource(PSResource resource,
int min,
int max)
Creates a new instance for a given PSResource instance
|
限定符和类型 | 方法和说明 |
---|---|
void |
generate(PSGenerator gen)
Writes the event to the given PSGenerator.
|
Integer |
getMax()
Returns the maximum VM used by the resource.
|
Integer |
getMin()
Returns the minimum VM used by the resource.
|
String |
getName()
Returns the name of the DSC comment.
|
getResource, hasValues, parseValue
asDSCComment, getEventType, isAtend, isDSCComment, splitParams
asLine, isComment, isHeaderComment, isLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asLine, isComment, isHeaderComment, isLine
public DSCCommentBeginResource()
public DSCCommentBeginResource(PSResource resource)
resource
- the resourcepublic DSCCommentBeginResource(PSResource resource, int min, int max)
resource
- the resourcemin
- Minimum VM used by the resourcemax
- Maximum VM used by the resourcepublic Integer getMin()
public Integer getMax()
public String getName()
public void generate(PSGenerator gen) throws IOException
generate
在接口中 DSCComment
generate
在接口中 DSCEvent
generate
在类中 AbstractResourceDSCComment
gen
- the PSGenerator to write toIOException
- In case of an I/O errorDSCEvent.generate(
org.apache.xmlgraphics.ps.PSGenerator)
Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.