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 TypeMethodDescriptionvoidgenerate(PSGenerator gen) Writes the event to the given PSGenerator.getName()Returns the name of the DSC comment.booleanIndicates whether this DSC comment has values.booleanisAtend()Indicates whether the DSC comment's value is "Atend".voidparseValue(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:DSCEventWrites the event to the given PSGenerator.- Specified by:
generatein interfaceDSCEvent- Parameters:
gen- the PSGenerator to write to- Throws:
IOException- In case of an I/O error- See Also:
-