java.lang.Object
org.sejda.sambox.cos.COSBase
org.sejda.sambox.cos.IndirectCOSObject
- All Implemented Interfaces:
COSObjectable
A COSBase that will be written as indirect object. This can be used to wrap COSBase (COSName, COSInteger, COSNull,
COSBoolean) that are otherwise written as direct object by the body writer.
- Author:
- Andrea Vacondio
-
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(COSVisitor visitor) Visitor pattern for the COS model objectsstatic IndirectCOSObjectasIndirectObject(COSObjectable wrapped) Factory method for an object that will be written as an indirect 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
-
asIndirectObject
Factory method for an object that will be written as an indirect object.- Parameters:
wrapped-- Returns:
- the new instance
-