Class DirectCOSObject

java.lang.Object
org.sejda.sambox.cos.COSBase
org.sejda.sambox.cos.DirectCOSObject
All Implemented Interfaces:
COSObjectable

public final class DirectCOSObject extends COSBase
A COSBase that will be written as direct object
Author:
Andrea Vacondio
  • Method Details

    • getCOSObject

      public COSBase getCOSObject()
      Description copied from class: COSBase
      Convert this standard java object to a COS object.
      Specified by:
      getCOSObject in interface COSObjectable
      Overrides:
      getCOSObject in class COSBase
      Returns:
      The cos object that matches this Java object.
    • accept

      public void accept(COSVisitor visitor) throws IOException
      Description copied from class: COSBase
      Visitor pattern for the COS model objects
      Specified by:
      accept in class COSBase
      Throws:
      IOException
    • asDirectObject

      public static DirectCOSObject asDirectObject(COSObjectable wrapped)
      Factory method for an object that will be written as a direct object.
      Parameters:
      wrapped -
      Returns:
      the new instance