Revision 10054 trunk/libraries/libDwg/src/com/iver/cit/jdwglib/dwg/readers/objreaders/v15/DwgAttribReader15.java
DwgAttribReader15.java | ||
---|---|---|
8 | 8 |
import java.util.ArrayList; |
9 | 9 |
|
10 | 10 |
import com.iver.cit.jdwglib.dwg.DwgHandleReference; |
11 |
import com.iver.cit.jdwglib.dwg.CorruptedDwgEntityException; |
|
11 | 12 |
import com.iver.cit.jdwglib.dwg.DwgObject; |
12 | 13 |
import com.iver.cit.jdwglib.dwg.DwgUtil; |
13 | 14 |
import com.iver.cit.jdwglib.dwg.objects.DwgArc; |
... | ... | |
29 | 30 |
* @see com.iver.cit.jdwglib.dwg.readers.IDwgObjectReader#readSpecificObj(int[], |
30 | 31 |
* int, com.iver.cit.jdwglib.dwg.DwgObject) |
31 | 32 |
*/ |
32 |
public void readSpecificObj(int[] data, int offset, DwgObject dwgObj) |
|
33 |
throws Exception { |
|
33 |
public void readSpecificObj(int[] data, int offset, DwgObject dwgObj) throws RuntimeException, CorruptedDwgEntityException { |
|
34 | 34 |
|
35 | 35 |
if (!(dwgObj instanceof DwgAttrib)) |
36 | 36 |
throw new RuntimeException("ArcReader 15 solo puede leer DwgAttrib"); |
... | ... | |
153 | 153 |
int flags = ((Integer) v.get(1)).intValue(); |
154 | 154 |
att.setFlags(flags); |
155 | 155 |
bitPos = headTailReader.readObjectTailer(data, bitPos, att); |
156 |
|
|
157 | 156 |
DwgHandleReference styleHandle = new DwgHandleReference(); |
158 | 157 |
bitPos = styleHandle.read(data, bitPos); |
159 | 158 |
att.setStyleHandle(styleHandle); |
Also available in: Unified diff