Package org.gvsig.dwg.lib
Class DwgHandleReference
java.lang.Object
org.gvsig.dwg.lib.DwgHandleReference
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetCode()intintintread(int[] data, int offset) 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.voidsetCode(int code) voidsetCounter(int counter) voidsetOffset(int offset)
-
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
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 fileoffset- 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.RuntimeExceptionCorruptedDwgEntityException
-