Class PostScriptComment
java.lang.Object
org.apache.xmlgraphics.ps.dsc.events.AbstractEvent
org.apache.xmlgraphics.ps.dsc.events.PostScriptComment
- All Implemented Interfaces:
DSCParserConstants, DSCEvent
Represents a PostScript comment
-
Field Summary
Fields inherited from interface DSCParserConstants
COMMENT, DSC_COMMENT, EOF, HEADER_COMMENT, LINE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerate(PSGenerator gen) Writes the event to the given PSGenerator.Returns the comment text.intReturns the event type.booleanIndicates whether the instance is a PostScript comment.Methods inherited from class AbstractEvent
asDSCComment, asLine, isDSCComment, isHeaderComment, isLine
-
Constructor Details
-
PostScriptComment
-
-
Method Details
-
getComment
-
generate
Description copied from interface:DSCEventWrites the event to the given PSGenerator.- Parameters:
gen- the PSGenerator to write to- Throws:
IOException- In case of an I/O error- See Also:
-
getEventType
public int getEventType()Description copied from interface:DSCEventReturns the event type.- Returns:
- the event type (see
DSCParserConstants) - See Also:
-
isComment
public boolean isComment()Description copied from interface:DSCEventIndicates whether the instance is a PostScript comment.- Specified by:
isCommentin interfaceDSCEvent- Overrides:
isCommentin classAbstractEvent- Returns:
- true if the instance is a PostScript comment
- See Also:
-