java.lang.Object
org.sejda.sambox.cos.COSBase
org.sejda.sambox.cos.DirectCOSObject
- All Implemented Interfaces:
COSObjectable
A COSBase that will be written as direct object
- Author:
- Andrea Vacondio
-
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(COSVisitor visitor) Visitor pattern for the COS model objectsstatic DirectCOSObjectasDirectObject(COSObjectable wrapped) Factory method for an object that will be written as a direct object.Convert this standard java object to a COS object.Methods inherited from class org.sejda.sambox.cos.COSBase
hasId, id, idIfAbsent
-
Method Details
-
getCOSObject
Description copied from class:COSBaseConvert this standard java object to a COS object.- Specified by:
getCOSObjectin interfaceCOSObjectable- Overrides:
getCOSObjectin classCOSBase- Returns:
- The cos object that matches this Java object.
-
accept
Description copied from class:COSBaseVisitor pattern for the COS model objects- Specified by:
acceptin classCOSBase- Throws:
IOException
-
asDirectObject
Factory method for an object that will be written as a direct object.- Parameters:
wrapped-- Returns:
- the new instance
-