Revision 10054 trunk/libraries/libDwg/src/com/iver/cit/jdwglib/dwg/readers/objreaders/v15/DwgAttdefReader15.java
DwgAttdefReader15.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.DwgAttdef; |
... | ... | |
23 | 24 |
/* (non-Javadoc) |
24 | 25 |
* @see com.iver.cit.jdwglib.dwg.readers.IDwgObjectReader#readSpecificObj(int[], int, com.iver.cit.jdwglib.dwg.DwgObject) |
25 | 26 |
*/ |
26 |
public void readSpecificObj(int[] data, int offset, DwgObject dwgObj) throws Exception { |
|
27 |
public void readSpecificObj(int[] data, int offset, DwgObject dwgObj) throws RuntimeException, CorruptedDwgEntityException {
|
|
27 | 28 |
if(!(dwgObj instanceof DwgAttdef)) |
28 | 29 |
throw new RuntimeException("AttdefReader 15 solo lee Attdef"); |
29 | 30 |
DwgAttdef att = (DwgAttdef) dwgObj; |
... | ... | |
148 | 149 |
String prompt = (String)v.get(1); |
149 | 150 |
att.setPrompt(prompt); |
150 | 151 |
bitPos = headTailReader.readObjectTailer(data, bitPos, att); |
151 |
|
|
152 | 152 |
DwgHandleReference styleHandle = new DwgHandleReference(); |
153 | 153 |
bitPos = styleHandle.read(data, bitPos); |
154 | 154 |
att.setStyleHandle(styleHandle); |
155 |
|
|
156 | 155 |
} |
157 | 156 |
} |
Also available in: Unified diff