Package com.snowbound.common.transport
Class ExternalReference
- java.lang.Object
-
- com.snowbound.common.transport.ExternalReference
-
- All Implemented Interfaces:
java.io.Serializable
public class ExternalReference extends java.lang.Object implements java.io.SerializableRepresents 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 Summary
Constructors Constructor Description ExternalReference()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getExternalReferenceData()Get the external reference's file contents.java.lang.StringgetExternalReferenceID()Get the ID used to refer to the external reference in the DWG file.intgetSizeInCache()Get the size of the external reference file in bytes, used to easily determine size when caching.voidsetExternalReferenceData(byte[] data)Set the external reference's file contents.voidsetExternalReferenceID(java.lang.String externalReferenceID)Set the external reference ID.
-
-
-
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
-
-