Class ExternalReference

  • All Implemented Interfaces:
    Serializable

    public class ExternalReference
    extends Object
    implements Serializable
    Represents an external reference for a CAD/DWG file. DWG and external references are currently only supported when the VirtualViewer server is running on Windows.
    See Also:
    Serialized Form
    • Constructor Detail

      • ExternalReference

        public ExternalReference()
    • Method Detail

      • getExternalReferenceID

        public String getExternalReferenceID()
        Get the ID used to refer to the external reference in the DWG file.
        Returns:
        external reference ID from the DWG
      • setExternalReferenceID

        public void setExternalReferenceID​(String externalReferenceID)
        Set the external reference ID.
        Parameters:
        externalReferenceID - external reference ID
      • getExternalReferenceData

        public byte[] getExternalReferenceData()
        Get the external reference's file contents.
        Returns:
        external reference data
      • setExternalReferenceData

        public void setExternalReferenceData​(byte[] data)
        Set the external reference's file contents.
        Parameters:
        data - external reference file data
      • getSizeInCache

        public int getSizeInCache()
        Get the size of the external reference file in bytes, used to easily determine size when caching.
        Returns:
        external reference file size in bytes