public class DwgHandleReference
extends java.lang.Object
Constructor and Description |
---|
DwgHandleReference() |
DwgHandleReference(int code,
int offset) |
Modifier and Type | Method and Description |
---|---|
int |
getCode() |
int |
getCounter() |
int |
getOffset() |
int |
read(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.
|
void |
setCode(int code) |
void |
setCounter(int counter) |
void |
setOffset(int offset) |
public DwgHandleReference(int code, int offset)
public DwgHandleReference()
public void setCode(int code)
public void setOffset(int offset)
public int getCode()
public int getOffset()
public int getCounter()
public void setCounter(int counter)
public int read(int[] data, int offset) throws java.lang.RuntimeException, CorruptedDwgEntityException
data
- Array of unsigned bytes obtained from the DWG binary fileoffset
- The current bit offset where the value beginsjava.lang.Exception
- If an unexpected bit value is found in the DWG file. Occurs
when we are looking for LwPolylines.java.lang.RuntimeException
CorruptedDwgEntityException