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.
  • Field Details

    • TYPE_GRAPHIC

      public static final byte TYPE_GRAPHIC
      graphics object type
      See Also:
    • TYPE_BARCODE

      public static final byte TYPE_BARCODE
      barcode object type
      See Also:
    • TYPE_IMAGE

      public static final byte TYPE_IMAGE
      image object type
      See Also:
    • TYPE_FONT_CHARACTER_SET

      public static final byte TYPE_FONT_CHARACTER_SET
      font character set type
      See Also:
    • TYPE_CODE_PAGE

      public static final byte TYPE_CODE_PAGE
      code page type
      See Also:
    • TYPE_CODED_FONT

      public static final byte TYPE_CODED_FONT
      coded font type
      See Also:
    • TYPE_OBJECT_CONTAINER

      public static final byte TYPE_OBJECT_CONTAINER
      object container type
      See Also:
    • TYPE_DOCUMENT

      public static final byte TYPE_DOCUMENT
      document object type
      See Also:
    • TYPE_PAGE_SEGMENT

      public static final byte TYPE_PAGE_SEGMENT
      page segment object type
      See Also:
    • TYPE_OVERLAY_OBJECT

      public static final byte TYPE_OVERLAY_OBJECT
      overlay object type
      See Also:
    • TYPE_PAGEDEF

      public static final byte TYPE_PAGEDEF
      page def type
      See Also:
    • TYPE_FORMDEF

      public static final byte TYPE_FORMDEF
      form def type
      See Also:
  • Constructor Details

    • ResourceObject

      public ResourceObject(String name)
      Default constructor
      Parameters:
      name - the name of this resource (reference id)
  • Method Details

    • 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(OutputStream os) throws IOException
      Helper method to write the start of the Object.
      Overrides:
      writeStart in class AbstractStructuredObject
      Parameters:
      os - The stream to write to
      Throws:
      IOException - throws an I/O exception if one occurred
    • writeContent

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

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

      public String toString()
      Overrides:
      toString in class AbstractNamedAFPObject
    • setType

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