|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.iver.cit.jdwglib.dwg.DwgUtil
The DwgUtil class contains the essential set of functions for reading bitstreams in DWG files
Constructor Summary | |
DwgUtil()
|
Method Summary | |
static int[] |
bytesToMachineBytes(byte[] data)
Convert bytes to machine value bytes |
static java.util.Vector |
getBitDouble(int[] data,
int offset)
Read a double value from a group of unsigned bytes |
static java.util.Vector |
getBitLong(int[] data,
int offset)
Read a long value from a group of unsigned bytes |
static java.lang.Object |
getBits(int[] data,
int count,
int offset)
Returns a set of bits from a group of unsigned bytes |
static java.util.Vector |
getBitShort(int[] data,
int offset)
Read a short value from a group of unsigned bytes |
static java.util.Vector |
getDefaultDouble(int[] data,
int offset,
double defVal)
Read a double value from a group of unsigned bytes and a default double |
static java.util.Vector |
getHandle(int[] data,
int offset)
Read a int value (the handle of a DWG object) from a group of unsigned bytes |
static java.util.Vector |
getModularChar(int[] data,
int offset)
Read a char value from a group of unsigned bytes |
static int |
getModularShort(java.nio.ByteBuffer bb)
Read a int value (the size of a modular short) from a ByteBuffer |
static java.util.Vector |
getRawChar(int[] data,
int offset)
Read a char value from a group of unsigned bytes |
static java.util.Vector |
getRawDouble(int[] data,
int offset)
Read a double value from a group of unsigned bytes |
static java.util.Vector |
getRawLong(int[] data,
int offset)
Read a long value from a group of unsigned bytes |
static java.util.Vector |
getRawShort(int[] data,
int offset)
Read a short value from a group of unsigned bytes |
static java.util.Vector |
getTextString(int[] data,
int offset)
Read a String from a group of unsigned bytes |
static int |
handleBinToHandleInt(java.util.Vector layerHandle)
Obtain the int value of a handle given in binary format |
static java.util.Vector |
readExtendedData(int[] data,
int offset)
Read the extended data for a DWG object Don't use in this version. |
static java.util.Vector |
testBit(int[] data,
int offset)
Test a bit obtained from a set of unsigned bytes |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DwgUtil()
Method Detail |
public static java.util.Vector readExtendedData(int[] data, int offset) throws java.lang.Exception
data
- Array of unsigned bytes obtained from the DWG binary fileoffset
- The current bit offset where the value begins
java.lang.Exception
- If an unexpected bit value is found in the DWG file. Occurs
when we are looking for LwPolylines.public static java.util.Vector getDefaultDouble(int[] data, int offset, double defVal) throws java.lang.Exception
data
- Array of unsigned bytes obtained from the DWG binary fileoffset
- The current bit offset where the value beginsdefVal
- Default double value
java.lang.Exception
- If an unexpected bit value is found in the DWG file. Occurs
when we are looking for LwPolylines.public static java.util.Vector getBitDouble(int[] data, int offset) throws java.lang.Exception
data
- Array of unsigned bytes obtained from the DWG binary fileoffset
- The current bit offset where the value begins
java.lang.Exception
- If an unexpected bit value is found in the DWG file. Occurs
when we are looking for LwPolylines.public static java.util.Vector getRawDouble(int[] data, int offset) throws java.lang.Exception
data
- Array of unsigned bytes obtained from the DWG binary fileoffset
- The current bit offset where the value begins
java.lang.Exception
- If an unexpected bit value is found in the DWG file. Occurs
when we are looking for LwPolylines.public static java.util.Vector getBitShort(int[] data, int offset) throws java.lang.Exception
data
- Array of unsigned bytes obtained from the DWG binary fileoffset
- The current bit offset where the value begins
java.lang.Exception
- If an unexpected bit value is found in the DWG file. Occurs
when we are looking for LwPolylines.public static java.util.Vector getRawShort(int[] data, int offset) throws java.lang.Exception
data
- Array of unsigned bytes obtained from the DWG binary fileoffset
- The current bit offset where the value begins
java.lang.Exception
- If an unexpected bit value is found in the DWG file. Occurs
when we are looking for LwPolylines.public static java.util.Vector getBitLong(int[] data, int offset) throws java.lang.Exception
data
- Array of unsigned bytes obtained from the DWG binary fileoffset
- The current bit offset where the value begins
java.lang.Exception
- If an unexpected bit value is found in the DWG file. Occurs
when we are looking for LwPolylines.public static java.util.Vector getRawLong(int[] data, int offset)
data
- Array of unsigned bytes obtained from the DWG binary fileoffset
- The current bit offset where the value begins
java.lang.Exception
- If an unexpected bit value is found in the DWG file. Occurs
when we are looking for LwPolylines.public static java.util.Vector getRawChar(int[] data, int offset) throws java.lang.Exception
data
- Array of unsigned bytes obtained from the DWG binary fileoffset
- The current bit offset where the value begins
java.lang.Exception
- If an unexpected bit value is found in the DWG file. Occurs
when we are looking for LwPolylines.public static java.util.Vector getModularChar(int[] data, int offset) throws java.lang.Exception
data
- Array of unsigned bytes obtained from the DWG binary fileoffset
- The current bit offset where the value begins
java.lang.Exception
- If an unexpected bit value is found in the DWG file. Occurs
when we are looking for LwPolylines.public static java.util.Vector getTextString(int[] data, int offset) throws java.lang.Exception
data
- Array of unsigned bytes obtained from the DWG binary fileoffset
- The current bit offset where the value begins
java.lang.Exception
- If an unexpected bit value is found in the DWG file. Occurs
when we are looking for LwPolylines.public static java.util.Vector getHandle(int[] data, int offset) throws java.lang.Exception
data
- Array of unsigned bytes obtained from the DWG binary fileoffset
- The current bit offset where the value begins
java.lang.Exception
- If an unexpected bit value is found in the DWG file. Occurs
when we are looking for LwPolylines.public static int getModularShort(java.nio.ByteBuffer bb)
bb
- Data given as a ByteBuffer
public static java.lang.Object getBits(int[] data, int count, int offset) throws java.lang.Exception
data
- Array of unsigned bytes obtained from the DWG binary filecount
- Bit counteroffset
- The current bit offset where the value begins
java.lang.Exception
- If an unexpected bit value is found in the DWG file. Occurs
when we are looking for LwPolylines.public static java.util.Vector testBit(int[] data, int offset)
data
- Array of unsigned bytes obtained from the DWG binary fileoffset
- The current bit offset where the value begins
public static int[] bytesToMachineBytes(byte[] data)
data
- Input of array of bytes
public static int handleBinToHandleInt(java.util.Vector layerHandle)
layerHandle
- Handle in binary format
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |