Class ExternalReference

  • All Implemented Interfaces:
    java.io.Serializable

    public class ExternalReference
    extends java.lang.Object
    implements java.io.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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] getExternalReferenceData()
      Get the external reference's file contents.
      java.lang.String getExternalReferenceID()
      Get the ID used to refer to the external reference in the DWG file.
      int getSizeInCache()
      Get the size of the external reference file in bytes, used to easily determine size when caching.
      void setExternalReferenceData​(byte[] data)
      Set the external reference's file contents.
      void setExternalReferenceID​(java.lang.String externalReferenceID)
      Set the external reference ID.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExternalReference

        public ExternalReference()
    • Method Detail

      • getExternalReferenceID

        public java.lang.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​(java.lang.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