Class DwgHandleReference

java.lang.Object
org.gvsig.dwg.lib.DwgHandleReference

public class DwgHandleReference extends Object
  • Constructor Details

    • DwgHandleReference

      public DwgHandleReference(int code, int offset)
    • DwgHandleReference

      public DwgHandleReference()
  • Method Details

    • setCode

      public void setCode(int code)
    • setOffset

      public void setOffset(int offset)
    • getCode

      public int getCode()
    • getOffset

      public int getOffset()
    • getCounter

      public int getCounter()
    • setCounter

      public void setCounter(int counter)
    • read

      public int read(int[] data, int offset) throws RuntimeException, CorruptedDwgEntityException
      Read a pair of int values (the HandleCode and HandleOffset of a handle of a DWG object) from a group of unsigned bytes and initializes the properties.
      Parameters:
      data - Array of unsigned bytes obtained from the DWG binary file
      offset - The current bit offset where the value begins
      Returns:
      int Represents the new offset.
      Throws:
      Exception - If an unexpected bit value is found in the DWG file. Occurs when we are looking for LwPolylines.
      RuntimeException
      CorruptedDwgEntityException