public class DwgFileV12Reader extends Object implements IDwgFileReader
Constructor and Description |
---|
DwgFileV12Reader(boolean isR13) |
Modifier and Type | Method and Description |
---|---|
String |
getString() |
org.gvsig.dwg.lib.readers.DwgFileV12Reader.Dwg12Table |
getTable() |
org.gvsig.dwg.lib.readers.DwgFileV12Reader.Dwg12TableTest |
getTableTest() |
void |
read(DwgFile dwgFile,
ByteBuffer bb)
Reads all the DWG format versions
|
void |
readHeader() |
int |
readObjectHeader(int[] data,
int offset,
DwgObject dwgObject)
Reads the header of a dwg object
|
int |
readObjectTailer(int[] data,
int offset,
DwgObject dwgObject)
Reads the tailer of a dwg object.
|
public void read(DwgFile dwgFile, ByteBuffer bb) throws IOException
IDwgFileReader
read
in interface IDwgFileReader
dwgFile
- Represents the DWG file that we want to readbb
- Memory mapped byte buffer of the whole DWG fileIOException
- When DWG file path is wrongpublic String getString()
public void readHeader()
public org.gvsig.dwg.lib.readers.DwgFileV12Reader.Dwg12Table getTable()
public org.gvsig.dwg.lib.readers.DwgFileV12Reader.Dwg12TableTest getTableTest()
public int readObjectHeader(int[] data, int offset, DwgObject dwgObject) throws RuntimeException, CorruptedDwgEntityException
IDwgFileReader
readObjectHeader
in interface IDwgFileReader
RuntimeException
CorruptedDwgEntityException
public int readObjectTailer(int[] data, int offset, DwgObject dwgObject) throws RuntimeException, CorruptedDwgEntityException
IDwgFileReader
readObjectTailer
in interface IDwgFileReader
RuntimeException
CorruptedDwgEntityException