Class ResourceObject

  • All Implemented Interfaces:
    Streamable

    public class ResourceObject
    extends AbstractNamedAFPObject
    This resource structured field begins an envelope that is used to carry resource objects in print-file-level (external) resource groups.
    • Constructor Detail

      • ResourceObject

        public ResourceObject​(java.lang.String name)
        Default constructor
        Parameters:
        name - the name of this resource (reference id)
    • Method Detail

      • setDataObject

        public void setDataObject​(AbstractNamedAFPObject namedObject)
        Sets the data object referenced by this resource object
        Parameters:
        namedObject - the named data object
      • getDataObject

        public AbstractNamedAFPObject getDataObject()
        Returns the data object referenced by this resource object
        Returns:
        the data object referenced by this resource object
      • writeStart

        protected void writeStart​(java.io.OutputStream os)
                           throws java.io.IOException
        Helper method to write the start of the Object.
        Overrides:
        writeStart in class AbstractStructuredObject
        Parameters:
        os - The stream to write to
        Throws:
        java.io.IOException - throws an I/O exception if one occurred
      • writeContent

        protected void writeContent​(java.io.OutputStream os)
                             throws java.io.IOException
        Helper method to write the contents of the Object.
        Overrides:
        writeContent in class AbstractStructuredObject
        Parameters:
        os - The stream to write to
        Throws:
        java.io.IOException - throws an I/O exception if one occurred
      • writeEnd

        protected void writeEnd​(java.io.OutputStream os)
                         throws java.io.IOException
        Helper method to write the end of the Object.
        Overrides:
        writeEnd in class AbstractStructuredObject
        Parameters:
        os - The stream to write to
        Throws:
        java.io.IOException - an I/O exception if one occurred
      • setType

        public void setType​(byte type)
        Sets Resource Object Type triplet
        Parameters:
        type - the resource object type