Interface DSCComment
- All Superinterfaces:
DSCEvent
,DSCParserConstants
- All Known Implementing Classes:
AbstractDSCComment
,AbstractResourceDSCComment
,AbstractResourcesDSCComment
,DSCAtend
,DSCCommentBeginDocument
,DSCCommentBeginResource
,DSCCommentBoundingBox
,DSCCommentDocumentNeededResources
,DSCCommentDocumentSuppliedResources
,DSCCommentEndComments
,DSCCommentEndOfFile
,DSCCommentHiResBoundingBox
,DSCCommentIncludeResource
,DSCCommentLanguageLevel
,DSCCommentPage
,DSCCommentPageBoundingBox
,DSCCommentPageHiResBoundingBox
,DSCCommentPageResources
,DSCCommentPages
,DSCCommentTitle
,UnparsedDSCComment
Base interface for all DSC comments.
-
Field Summary
Fields inherited from interface org.apache.xmlgraphics.ps.dsc.DSCParserConstants
COMMENT, DSC_COMMENT, EOF, HEADER_COMMENT, LINE
-
Method Summary
Modifier and TypeMethodDescriptionvoid
generate
(PSGenerator gen) Writes the event to the given PSGenerator.getName()
Returns the name of the DSC comment.boolean
Indicates whether this DSC comment has values.boolean
isAtend()
Indicates whether the DSC comment's value is "Atend".void
parseValue
(String value) Parses the value of the DSC comment.Methods inherited from interface org.apache.xmlgraphics.ps.dsc.events.DSCEvent
asDSCComment, asLine, getEventType, isComment, isDSCComment, isHeaderComment, isLine
-
Method Details
-
getName
String getName()Returns the name of the DSC comment.- Returns:
- the name of the DSC comment (without the "%%" prefix)
-
parseValue
Parses the value of the DSC comment.- Parameters:
value
- the value
-
hasValues
boolean hasValues()Indicates whether this DSC comment has values.- Returns:
- true if the DSC comment has values
-
isAtend
boolean isAtend()Indicates whether the DSC comment's value is "Atend".- Returns:
- true if the value is "Atend"
-
generate
Description copied from interface:DSCEvent
Writes the event to the given PSGenerator.- Specified by:
generate
in interfaceDSCEvent
- Parameters:
gen
- the PSGenerator to write to- Throws:
IOException
- In case of an I/O error- See Also:
-