Class ObjectContainer

    • Constructor Detail

      • ObjectContainer

        public ObjectContainer​(Factory factory,
                               java.lang.String name)
        Main constructor
        Parameters:
        factory - the object factory
        name - the name of this object container
    • Method Detail

      • 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 AbstractDataObject
        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 AbstractDataObject
        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
      • setViewport

        public void setViewport​(AFPDataObjectInfo dataObjectInfo)
        Sets the object view port (area position and size).
        Overrides:
        setViewport in class AbstractDataObject
        Parameters:
        dataObjectInfo - the object area info
      • setData

        public void setData​(byte[] data)
        Sets the data for the object container
        Parameters:
        data - a byte array