svn-gvsig-desktop / trunk / libraries / libDwg / doc / javadoc / com / iver / cit / jdwglib / dwg / DwgUtil.html @ 2896
History | View | Annotate | Download (29.3 KB)
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
---|---|
2 |
<!--NewPage-->
|
3 |
<HTML>
|
4 |
<HEAD>
|
5 |
<!-- Generated by javadoc (build 1.4.2_08) on Wed Sep 07 16:36:36 CEST 2005 -->
|
6 |
<TITLE>
|
7 |
DwgUtil |
8 |
</TITLE>
|
9 |
|
10 |
<META NAME="keywords" CONTENT="com.iver.cit.jdwglib.dwg.DwgUtil class"> |
11 |
|
12 |
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style"> |
13 |
|
14 |
<SCRIPT type="text/javascript"> |
15 |
function windowTitle() |
16 |
{ |
17 |
parent.document.title="DwgUtil"; |
18 |
} |
19 |
</SCRIPT>
|
20 |
|
21 |
</HEAD>
|
22 |
|
23 |
<BODY BGCOLOR="white" onload="windowTitle();"> |
24 |
|
25 |
|
26 |
<!-- ========= START OF TOP NAVBAR ======= -->
|
27 |
<A NAME="navbar_top"><!-- --></A> |
28 |
<A HREF="#skip-navbar_top" title="Skip navigation links"></A> |
29 |
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
30 |
<TR>
|
31 |
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
32 |
<A NAME="navbar_top_firstrow"><!-- --></A> |
33 |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
34 |
<TR ALIGN="center" VALIGN="top"> |
35 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
36 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
37 |
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
38 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/DwgUtil.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
39 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
40 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
41 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
42 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
43 |
</TR>
|
44 |
</TABLE>
|
45 |
</TD>
|
46 |
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
47 |
</EM>
|
48 |
</TD>
|
49 |
</TR>
|
50 |
|
51 |
<TR>
|
52 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
53 |
<A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgSectionOffset.html" title="class in com.iver.cit.jdwglib.dwg"><B>PREV CLASS</B></A> |
54 |
NEXT CLASS</FONT></TD> |
55 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
56 |
<A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A> |
57 |
<A HREF="DwgUtil.html" target="_top"><B>NO FRAMES</B></A> |
58 |
<SCRIPT type="text/javascript"> |
59 |
<!--
|
60 |
if(window==top) {
|
61 |
document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
62 |
}
|
63 |
//-->
|
64 |
</SCRIPT>
|
65 |
<NOSCRIPT>
|
66 |
<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> |
67 |
</NOSCRIPT>
|
68 |
|
69 |
</FONT></TD> |
70 |
</TR>
|
71 |
<TR>
|
72 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
73 |
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
74 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
75 |
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
76 |
</TR>
|
77 |
</TABLE>
|
78 |
<A NAME="skip-navbar_top"></A> |
79 |
<!-- ========= END OF TOP NAVBAR ========= -->
|
80 |
|
81 |
<HR>
|
82 |
<!-- ======== START OF CLASS DATA ======== -->
|
83 |
<H2>
|
84 |
<FONT SIZE="-1"> |
85 |
com.iver.cit.jdwglib.dwg</FONT>
|
86 |
<BR>
|
87 |
Class DwgUtil</H2>
|
88 |
<PRE>
|
89 |
java.lang.Object |
90 |
<IMG SRC="../../../../../resources/inherit.gif" ALT="extended by"><B>com.iver.cit.jdwglib.dwg.DwgUtil</B> |
91 |
</PRE>
|
92 |
<HR>
|
93 |
<DL>
|
94 |
<DT>public final class <B>DwgUtil</B><DT>extends java.lang.Object</DL> |
95 |
|
96 |
<P>
|
97 |
The DwgUtil class contains the essential set of functions for reading bitstreams |
98 |
in DWG files |
99 |
<P>
|
100 |
|
101 |
<P>
|
102 |
<DL>
|
103 |
<DT><B>Author:</B></DT> |
104 |
<DD>jmorell</DD> |
105 |
</DL>
|
106 |
<HR>
|
107 |
|
108 |
<P>
|
109 |
<!-- ======== NESTED CLASS SUMMARY ======== -->
|
110 |
|
111 |
|
112 |
<!-- =========== FIELD SUMMARY =========== -->
|
113 |
|
114 |
|
115 |
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
116 |
|
117 |
<A NAME="constructor_summary"><!-- --></A> |
118 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
119 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
120 |
<TD COLSPAN=2><FONT SIZE="+2"> |
121 |
<B>Constructor Summary</B></FONT></TD> |
122 |
</TR>
|
123 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
124 |
<TD><CODE><B><A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgUtil.html#DwgUtil()">DwgUtil</A></B>()</CODE> |
125 |
|
126 |
<BR>
|
127 |
</TD> |
128 |
</TR>
|
129 |
</TABLE>
|
130 |
|
131 |
<!-- ========== METHOD SUMMARY =========== -->
|
132 |
|
133 |
<A NAME="method_summary"><!-- --></A> |
134 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
135 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
136 |
<TD COLSPAN=2><FONT SIZE="+2"> |
137 |
<B>Method Summary</B></FONT></TD> |
138 |
</TR>
|
139 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
140 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
141 |
<CODE>static int[]</CODE></FONT></TD> |
142 |
<TD><CODE><B><A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgUtil.html#bytesToMachineBytes(byte[])">bytesToMachineBytes</A></B>(byte[] data)</CODE> |
143 |
|
144 |
<BR>
|
145 |
Convert bytes to machine value bytes</TD> |
146 |
</TR>
|
147 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
148 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
149 |
<CODE>static java.util.Vector</CODE></FONT></TD> |
150 |
<TD><CODE><B><A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgUtil.html#getBitDouble(int[], int)">getBitDouble</A></B>(int[] data, |
151 |
int offset)</CODE> |
152 |
|
153 |
<BR>
|
154 |
Read a double value from a group of unsigned bytes</TD> |
155 |
</TR>
|
156 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
157 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
158 |
<CODE>static java.util.Vector</CODE></FONT></TD> |
159 |
<TD><CODE><B><A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgUtil.html#getBitLong(int[], int)">getBitLong</A></B>(int[] data, |
160 |
int offset)</CODE> |
161 |
|
162 |
<BR>
|
163 |
Read a long value from a group of unsigned bytes</TD> |
164 |
</TR>
|
165 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
166 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
167 |
<CODE>static java.lang.Object</CODE></FONT></TD> |
168 |
<TD><CODE><B><A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgUtil.html#getBits(int[], int, int)">getBits</A></B>(int[] data, |
169 |
int count,
|
170 |
int offset)</CODE> |
171 |
|
172 |
<BR>
|
173 |
Returns a set of bits from a group of unsigned bytes</TD> |
174 |
</TR>
|
175 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
176 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
177 |
<CODE>static java.util.Vector</CODE></FONT></TD> |
178 |
<TD><CODE><B><A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgUtil.html#getBitShort(int[], int)">getBitShort</A></B>(int[] data, |
179 |
int offset)</CODE> |
180 |
|
181 |
<BR>
|
182 |
Read a short value from a group of unsigned bytes</TD> |
183 |
</TR>
|
184 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
185 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
186 |
<CODE>static java.util.Vector</CODE></FONT></TD> |
187 |
<TD><CODE><B><A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgUtil.html#getDefaultDouble(int[], int, double)">getDefaultDouble</A></B>(int[] data, |
188 |
int offset,
|
189 |
double defVal)</CODE> |
190 |
|
191 |
<BR>
|
192 |
Read a double value from a group of unsigned bytes and a default double</TD> |
193 |
</TR>
|
194 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
195 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
196 |
<CODE>static java.util.Vector</CODE></FONT></TD> |
197 |
<TD><CODE><B><A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgUtil.html#getHandle(int[], int)">getHandle</A></B>(int[] data, |
198 |
int offset)</CODE> |
199 |
|
200 |
<BR>
|
201 |
Read a int value (the handle of a DWG object) from a group of unsigned bytes</TD> |
202 |
</TR>
|
203 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
204 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
205 |
<CODE>static java.util.Vector</CODE></FONT></TD> |
206 |
<TD><CODE><B><A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgUtil.html#getModularChar(int[], int)">getModularChar</A></B>(int[] data, |
207 |
int offset)</CODE> |
208 |
|
209 |
<BR>
|
210 |
Read a char value from a group of unsigned bytes</TD> |
211 |
</TR>
|
212 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
213 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
214 |
<CODE>static int</CODE></FONT></TD> |
215 |
<TD><CODE><B><A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgUtil.html#getModularShort(java.nio.ByteBuffer)">getModularShort</A></B>(java.nio.ByteBuffer bb)</CODE> |
216 |
|
217 |
<BR>
|
218 |
Read a int value (the size of a modular short) from a ByteBuffer</TD> |
219 |
</TR>
|
220 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
221 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
222 |
<CODE>static java.util.Vector</CODE></FONT></TD> |
223 |
<TD><CODE><B><A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgUtil.html#getRawChar(int[], int)">getRawChar</A></B>(int[] data, |
224 |
int offset)</CODE> |
225 |
|
226 |
<BR>
|
227 |
Read a char value from a group of unsigned bytes</TD> |
228 |
</TR>
|
229 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
230 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
231 |
<CODE>static java.util.Vector</CODE></FONT></TD> |
232 |
<TD><CODE><B><A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgUtil.html#getRawDouble(int[], int)">getRawDouble</A></B>(int[] data, |
233 |
int offset)</CODE> |
234 |
|
235 |
<BR>
|
236 |
Read a double value from a group of unsigned bytes</TD> |
237 |
</TR>
|
238 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
239 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
240 |
<CODE>static java.util.Vector</CODE></FONT></TD> |
241 |
<TD><CODE><B><A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgUtil.html#getRawLong(int[], int)">getRawLong</A></B>(int[] data, |
242 |
int offset)</CODE> |
243 |
|
244 |
<BR>
|
245 |
Read a long value from a group of unsigned bytes</TD> |
246 |
</TR>
|
247 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
248 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
249 |
<CODE>static java.util.Vector</CODE></FONT></TD> |
250 |
<TD><CODE><B><A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgUtil.html#getRawShort(int[], int)">getRawShort</A></B>(int[] data, |
251 |
int offset)</CODE> |
252 |
|
253 |
<BR>
|
254 |
Read a short value from a group of unsigned bytes</TD> |
255 |
</TR>
|
256 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
257 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
258 |
<CODE>static java.util.Vector</CODE></FONT></TD> |
259 |
<TD><CODE><B><A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgUtil.html#getTextString(int[], int)">getTextString</A></B>(int[] data, |
260 |
int offset)</CODE> |
261 |
|
262 |
<BR>
|
263 |
Read a String from a group of unsigned bytes</TD> |
264 |
</TR>
|
265 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
266 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
267 |
<CODE>static int</CODE></FONT></TD> |
268 |
<TD><CODE><B><A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgUtil.html#handleBinToHandleInt(java.util.Vector)">handleBinToHandleInt</A></B>(java.util.Vector layerHandle)</CODE> |
269 |
|
270 |
<BR>
|
271 |
Obtain the int value of a handle given in binary format</TD> |
272 |
</TR>
|
273 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
274 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
275 |
<CODE>static java.util.Vector</CODE></FONT></TD> |
276 |
<TD><CODE><B><A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgUtil.html#readExtendedData(int[], int)">readExtendedData</A></B>(int[] data, |
277 |
int offset)</CODE> |
278 |
|
279 |
<BR>
|
280 |
Read the extended data for a DWG object |
281 |
Don't use in this version. </TD>
|
282 |
</TR>
|
283 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
284 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
285 |
<CODE>static java.util.Vector</CODE></FONT></TD> |
286 |
<TD><CODE><B><A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgUtil.html#testBit(int[], int)">testBit</A></B>(int[] data, |
287 |
int offset)</CODE> |
288 |
|
289 |
<BR>
|
290 |
Test a bit obtained from a set of unsigned bytes</TD> |
291 |
</TR>
|
292 |
</TABLE>
|
293 |
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
294 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
295 |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
296 |
<TD><B>Methods inherited from class java.lang.Object</B></TD> |
297 |
</TR>
|
298 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
299 |
<TD><CODE>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> |
300 |
</TR>
|
301 |
</TABLE>
|
302 |
|
303 |
<P>
|
304 |
|
305 |
<!-- ============ FIELD DETAIL =========== -->
|
306 |
|
307 |
|
308 |
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
309 |
|
310 |
<A NAME="constructor_detail"><!-- --></A> |
311 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
312 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
313 |
<TD COLSPAN=1><FONT SIZE="+2"> |
314 |
<B>Constructor Detail</B></FONT></TD> |
315 |
</TR>
|
316 |
</TABLE>
|
317 |
|
318 |
<A NAME="DwgUtil()"><!-- --></A><H3> |
319 |
DwgUtil</H3>
|
320 |
<PRE>
|
321 |
public <B>DwgUtil</B>()</PRE> |
322 |
<DL>
|
323 |
</DL>
|
324 |
|
325 |
<!-- ============ METHOD DETAIL ========== -->
|
326 |
|
327 |
<A NAME="method_detail"><!-- --></A> |
328 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
329 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
330 |
<TD COLSPAN=1><FONT SIZE="+2"> |
331 |
<B>Method Detail</B></FONT></TD> |
332 |
</TR>
|
333 |
</TABLE>
|
334 |
|
335 |
<A NAME="readExtendedData(int[], int)"><!-- --></A><H3> |
336 |
readExtendedData</H3>
|
337 |
<PRE>
|
338 |
public static java.util.Vector <B>readExtendedData</B>(int[] data, |
339 |
int offset)
|
340 |
throws java.lang.Exception</PRE>
|
341 |
<DL>
|
342 |
<DD>Read the extended data for a DWG object
|
343 |
Don't use in this version. Serious bugs detected |
344 |
<P>
|
345 |
<DD><DL> |
346 |
<DT><B>Parameters:</B><DD><CODE>data</CODE> - Array of unsigned bytes obtained from the DWG binary file<DD><CODE>offset</CODE> - The current bit offset where the value begins |
347 |
<DT><B>Returns:</B><DD>Vector This vector has two parts. First is an int value that represents |
348 |
the new offset, and second is the extended data of a DWG object |
349 |
<DT><B>Throws:</B> |
350 |
<DD><CODE>java.lang.Exception</CODE> - If an unexpected bit value is found in the DWG file. Occurs |
351 |
when we are looking for LwPolylines.</DL>
|
352 |
</DD>
|
353 |
</DL>
|
354 |
<HR>
|
355 |
|
356 |
<A NAME="getDefaultDouble(int[], int, double)"><!-- --></A><H3> |
357 |
getDefaultDouble</H3>
|
358 |
<PRE>
|
359 |
public static java.util.Vector <B>getDefaultDouble</B>(int[] data, |
360 |
int offset,
|
361 |
double defVal)
|
362 |
throws java.lang.Exception</PRE>
|
363 |
<DL>
|
364 |
<DD>Read a double value from a group of unsigned bytes and a default double
|
365 |
<P>
|
366 |
<DD><DL> |
367 |
<DT><B>Parameters:</B><DD><CODE>data</CODE> - Array of unsigned bytes obtained from the DWG binary file<DD><CODE>offset</CODE> - The current bit offset where the value begins<DD><CODE>defVal</CODE> - Default double value |
368 |
<DT><B>Returns:</B><DD>Vector This vector has two parts. First is an int value that represents |
369 |
the new offset, and second is the double value |
370 |
<DT><B>Throws:</B> |
371 |
<DD><CODE>java.lang.Exception</CODE> - If an unexpected bit value is found in the DWG file. Occurs |
372 |
when we are looking for LwPolylines.</DL>
|
373 |
</DD>
|
374 |
</DL>
|
375 |
<HR>
|
376 |
|
377 |
<A NAME="getBitDouble(int[], int)"><!-- --></A><H3> |
378 |
getBitDouble</H3>
|
379 |
<PRE>
|
380 |
public static java.util.Vector <B>getBitDouble</B>(int[] data, |
381 |
int offset)
|
382 |
throws java.lang.Exception</PRE>
|
383 |
<DL>
|
384 |
<DD>Read a double value from a group of unsigned bytes
|
385 |
<P>
|
386 |
<DD><DL> |
387 |
<DT><B>Parameters:</B><DD><CODE>data</CODE> - Array of unsigned bytes obtained from the DWG binary file<DD><CODE>offset</CODE> - The current bit offset where the value begins |
388 |
<DT><B>Returns:</B><DD>Vector This vector has two parts. First is an int value that represents |
389 |
the new offset, and second is the double value |
390 |
<DT><B>Throws:</B> |
391 |
<DD><CODE>java.lang.Exception</CODE> - If an unexpected bit value is found in the DWG file. Occurs |
392 |
when we are looking for LwPolylines.</DL>
|
393 |
</DD>
|
394 |
</DL>
|
395 |
<HR>
|
396 |
|
397 |
<A NAME="getRawDouble(int[], int)"><!-- --></A><H3> |
398 |
getRawDouble</H3>
|
399 |
<PRE>
|
400 |
public static java.util.Vector <B>getRawDouble</B>(int[] data, |
401 |
int offset)
|
402 |
throws java.lang.Exception</PRE>
|
403 |
<DL>
|
404 |
<DD>Read a double value from a group of unsigned bytes
|
405 |
<P>
|
406 |
<DD><DL> |
407 |
<DT><B>Parameters:</B><DD><CODE>data</CODE> - Array of unsigned bytes obtained from the DWG binary file<DD><CODE>offset</CODE> - The current bit offset where the value begins |
408 |
<DT><B>Returns:</B><DD>Vector This vector has two parts. First is an int value that represents |
409 |
the new offset, and second is the double value |
410 |
<DT><B>Throws:</B> |
411 |
<DD><CODE>java.lang.Exception</CODE> - If an unexpected bit value is found in the DWG file. Occurs |
412 |
when we are looking for LwPolylines.</DL>
|
413 |
</DD>
|
414 |
</DL>
|
415 |
<HR>
|
416 |
|
417 |
<A NAME="getBitShort(int[], int)"><!-- --></A><H3> |
418 |
getBitShort</H3>
|
419 |
<PRE>
|
420 |
public static java.util.Vector <B>getBitShort</B>(int[] data, |
421 |
int offset)
|
422 |
throws java.lang.Exception</PRE>
|
423 |
<DL>
|
424 |
<DD>Read a short value from a group of unsigned bytes
|
425 |
<P>
|
426 |
<DD><DL> |
427 |
<DT><B>Parameters:</B><DD><CODE>data</CODE> - Array of unsigned bytes obtained from the DWG binary file<DD><CODE>offset</CODE> - The current bit offset where the value begins |
428 |
<DT><B>Returns:</B><DD>Vector This vector has two parts. First is an int value that represents |
429 |
the new offset, and second is the short value |
430 |
<DT><B>Throws:</B> |
431 |
<DD><CODE>java.lang.Exception</CODE> - If an unexpected bit value is found in the DWG file. Occurs |
432 |
when we are looking for LwPolylines.</DL>
|
433 |
</DD>
|
434 |
</DL>
|
435 |
<HR>
|
436 |
|
437 |
<A NAME="getRawShort(int[], int)"><!-- --></A><H3> |
438 |
getRawShort</H3>
|
439 |
<PRE>
|
440 |
public static java.util.Vector <B>getRawShort</B>(int[] data, |
441 |
int offset)
|
442 |
throws java.lang.Exception</PRE>
|
443 |
<DL>
|
444 |
<DD>Read a short value from a group of unsigned bytes
|
445 |
<P>
|
446 |
<DD><DL> |
447 |
<DT><B>Parameters:</B><DD><CODE>data</CODE> - Array of unsigned bytes obtained from the DWG binary file<DD><CODE>offset</CODE> - The current bit offset where the value begins |
448 |
<DT><B>Returns:</B><DD>Vector This vector has two parts. First is an int value that represents |
449 |
the new offset, and second is the short value |
450 |
<DT><B>Throws:</B> |
451 |
<DD><CODE>java.lang.Exception</CODE> - If an unexpected bit value is found in the DWG file. Occurs |
452 |
when we are looking for LwPolylines.</DL>
|
453 |
</DD>
|
454 |
</DL>
|
455 |
<HR>
|
456 |
|
457 |
<A NAME="getBitLong(int[], int)"><!-- --></A><H3> |
458 |
getBitLong</H3>
|
459 |
<PRE>
|
460 |
public static java.util.Vector <B>getBitLong</B>(int[] data, |
461 |
int offset)
|
462 |
throws java.lang.Exception</PRE>
|
463 |
<DL>
|
464 |
<DD>Read a long value from a group of unsigned bytes
|
465 |
<P>
|
466 |
<DD><DL> |
467 |
<DT><B>Parameters:</B><DD><CODE>data</CODE> - Array of unsigned bytes obtained from the DWG binary file<DD><CODE>offset</CODE> - The current bit offset where the value begins |
468 |
<DT><B>Returns:</B><DD>Vector This vector has two parts. First is an int value that represents |
469 |
the new offset, and second is the long value |
470 |
<DT><B>Throws:</B> |
471 |
<DD><CODE>java.lang.Exception</CODE> - If an unexpected bit value is found in the DWG file. Occurs |
472 |
when we are looking for LwPolylines.</DL>
|
473 |
</DD>
|
474 |
</DL>
|
475 |
<HR>
|
476 |
|
477 |
<A NAME="getRawLong(int[], int)"><!-- --></A><H3> |
478 |
getRawLong</H3>
|
479 |
<PRE>
|
480 |
public static java.util.Vector <B>getRawLong</B>(int[] data, |
481 |
int offset)</PRE> |
482 |
<DL>
|
483 |
<DD>Read a long value from a group of unsigned bytes
|
484 |
<P>
|
485 |
<DD><DL> |
486 |
<DT><B>Parameters:</B><DD><CODE>data</CODE> - Array of unsigned bytes obtained from the DWG binary file<DD><CODE>offset</CODE> - The current bit offset where the value begins |
487 |
<DT><B>Returns:</B><DD>Vector This vector has two parts. First is an int value that represents |
488 |
the new offset, and second is the long value |
489 |
<DT><B>Throws:</B> |
490 |
<DD><CODE>java.lang.Exception</CODE> - If an unexpected bit value is found in the DWG file. Occurs |
491 |
when we are looking for LwPolylines.</DL>
|
492 |
</DD>
|
493 |
</DL>
|
494 |
<HR>
|
495 |
|
496 |
<A NAME="getRawChar(int[], int)"><!-- --></A><H3> |
497 |
getRawChar</H3>
|
498 |
<PRE>
|
499 |
public static java.util.Vector <B>getRawChar</B>(int[] data, |
500 |
int offset)
|
501 |
throws java.lang.Exception</PRE>
|
502 |
<DL>
|
503 |
<DD>Read a char value from a group of unsigned bytes
|
504 |
<P>
|
505 |
<DD><DL> |
506 |
<DT><B>Parameters:</B><DD><CODE>data</CODE> - Array of unsigned bytes obtained from the DWG binary file<DD><CODE>offset</CODE> - The current bit offset where the value begins |
507 |
<DT><B>Returns:</B><DD>Vector This vector has two parts. First is an int value that represents |
508 |
the new offset, and second is the char value |
509 |
<DT><B>Throws:</B> |
510 |
<DD><CODE>java.lang.Exception</CODE> - If an unexpected bit value is found in the DWG file. Occurs |
511 |
when we are looking for LwPolylines.</DL>
|
512 |
</DD>
|
513 |
</DL>
|
514 |
<HR>
|
515 |
|
516 |
<A NAME="getModularChar(int[], int)"><!-- --></A><H3> |
517 |
getModularChar</H3>
|
518 |
<PRE>
|
519 |
public static java.util.Vector <B>getModularChar</B>(int[] data, |
520 |
int offset)
|
521 |
throws java.lang.Exception</PRE>
|
522 |
<DL>
|
523 |
<DD>Read a char value from a group of unsigned bytes
|
524 |
<P>
|
525 |
<DD><DL> |
526 |
<DT><B>Parameters:</B><DD><CODE>data</CODE> - Array of unsigned bytes obtained from the DWG binary file<DD><CODE>offset</CODE> - The current bit offset where the value begins |
527 |
<DT><B>Returns:</B><DD>Vector This vector has two parts. First is an int value that represents |
528 |
the new offset, and second is the char value |
529 |
<DT><B>Throws:</B> |
530 |
<DD><CODE>java.lang.Exception</CODE> - If an unexpected bit value is found in the DWG file. Occurs |
531 |
when we are looking for LwPolylines.</DL>
|
532 |
</DD>
|
533 |
</DL>
|
534 |
<HR>
|
535 |
|
536 |
<A NAME="getTextString(int[], int)"><!-- --></A><H3> |
537 |
getTextString</H3>
|
538 |
<PRE>
|
539 |
public static java.util.Vector <B>getTextString</B>(int[] data, |
540 |
int offset)
|
541 |
throws java.lang.Exception</PRE>
|
542 |
<DL>
|
543 |
<DD>Read a String from a group of unsigned bytes
|
544 |
<P>
|
545 |
<DD><DL> |
546 |
<DT><B>Parameters:</B><DD><CODE>data</CODE> - Array of unsigned bytes obtained from the DWG binary file<DD><CODE>offset</CODE> - The current bit offset where the value begins |
547 |
<DT><B>Returns:</B><DD>Vector This vector has two parts. First is an int value that represents |
548 |
the new offset, and second is the String |
549 |
<DT><B>Throws:</B> |
550 |
<DD><CODE>java.lang.Exception</CODE> - If an unexpected bit value is found in the DWG file. Occurs |
551 |
when we are looking for LwPolylines.</DL>
|
552 |
</DD>
|
553 |
</DL>
|
554 |
<HR>
|
555 |
|
556 |
<A NAME="getHandle(int[], int)"><!-- --></A><H3> |
557 |
getHandle</H3>
|
558 |
<PRE>
|
559 |
public static java.util.Vector <B>getHandle</B>(int[] data, |
560 |
int offset)
|
561 |
throws java.lang.Exception</PRE>
|
562 |
<DL>
|
563 |
<DD>Read a int value (the handle of a DWG object) from a group of unsigned bytes
|
564 |
<P>
|
565 |
<DD><DL> |
566 |
<DT><B>Parameters:</B><DD><CODE>data</CODE> - Array of unsigned bytes obtained from the DWG binary file<DD><CODE>offset</CODE> - The current bit offset where the value begins |
567 |
<DT><B>Returns:</B><DD>Vector This vector has two parts. First is an int value that represents |
568 |
the new offset, and second is the int value (handle of a DWG object) |
569 |
<DT><B>Throws:</B> |
570 |
<DD><CODE>java.lang.Exception</CODE> - If an unexpected bit value is found in the DWG file. Occurs |
571 |
when we are looking for LwPolylines.</DL>
|
572 |
</DD>
|
573 |
</DL>
|
574 |
<HR>
|
575 |
|
576 |
<A NAME="getModularShort(java.nio.ByteBuffer)"><!-- --></A><H3> |
577 |
getModularShort</H3>
|
578 |
<PRE>
|
579 |
public static int <B>getModularShort</B>(java.nio.ByteBuffer bb)</PRE> |
580 |
<DL>
|
581 |
<DD>Read a int value (the size of a modular short) from a ByteBuffer
|
582 |
<P>
|
583 |
<DD><DL> |
584 |
<DT><B>Parameters:</B><DD><CODE>bb</CODE> - Data given as a ByteBuffer |
585 |
<DT><B>Returns:</B><DD>int Size of the modular short</DL> |
586 |
</DD>
|
587 |
</DL>
|
588 |
<HR>
|
589 |
|
590 |
<A NAME="getBits(int[], int, int)"><!-- --></A><H3> |
591 |
getBits</H3>
|
592 |
<PRE>
|
593 |
public static java.lang.Object <B>getBits</B>(int[] data, |
594 |
int count,
|
595 |
int offset)
|
596 |
throws java.lang.Exception</PRE>
|
597 |
<DL>
|
598 |
<DD>Returns a set of bits from a group of unsigned bytes
|
599 |
<P>
|
600 |
<DD><DL> |
601 |
<DT><B>Parameters:</B><DD><CODE>data</CODE> - Array of unsigned bytes obtained from the DWG binary file<DD><CODE>count</CODE> - Bit counter<DD><CODE>offset</CODE> - The current bit offset where the value begins |
602 |
<DT><B>Returns:</B><DD>This method returns an array of bytes or an int value |
603 |
<DT><B>Throws:</B> |
604 |
<DD><CODE>java.lang.Exception</CODE> - If an unexpected bit value is found in the DWG file. Occurs |
605 |
when we are looking for LwPolylines.</DL>
|
606 |
</DD>
|
607 |
</DL>
|
608 |
<HR>
|
609 |
|
610 |
<A NAME="testBit(int[], int)"><!-- --></A><H3> |
611 |
testBit</H3>
|
612 |
<PRE>
|
613 |
public static java.util.Vector <B>testBit</B>(int[] data, |
614 |
int offset)</PRE> |
615 |
<DL>
|
616 |
<DD>Test a bit obtained from a set of unsigned bytes
|
617 |
<P>
|
618 |
<DD><DL> |
619 |
<DT><B>Parameters:</B><DD><CODE>data</CODE> - Array of unsigned bytes obtained from the DWG binary file<DD><CODE>offset</CODE> - The current bit offset where the value begins |
620 |
<DT><B>Returns:</B><DD>Vector This vector has two parts. First is an int value that represents |
621 |
the new offset, and second is a bit flag</DL>
|
622 |
</DD>
|
623 |
</DL>
|
624 |
<HR>
|
625 |
|
626 |
<A NAME="bytesToMachineBytes(byte[])"><!-- --></A><H3> |
627 |
bytesToMachineBytes</H3>
|
628 |
<PRE>
|
629 |
public static int[] <B>bytesToMachineBytes</B>(byte[] data)</PRE> |
630 |
<DL>
|
631 |
<DD>Convert bytes to machine value bytes
|
632 |
<P>
|
633 |
<DD><DL> |
634 |
<DT><B>Parameters:</B><DD><CODE>data</CODE> - Input of array of bytes |
635 |
<DT><B>Returns:</B><DD>int[] Output of array of machine bytes</DL> |
636 |
</DD>
|
637 |
</DL>
|
638 |
<HR>
|
639 |
|
640 |
<A NAME="handleBinToHandleInt(java.util.Vector)"><!-- --></A><H3> |
641 |
handleBinToHandleInt</H3>
|
642 |
<PRE>
|
643 |
public static int <B>handleBinToHandleInt</B>(java.util.Vector layerHandle)</PRE> |
644 |
<DL>
|
645 |
<DD>Obtain the int value of a handle given in binary format
|
646 |
<P>
|
647 |
<DD><DL> |
648 |
<DT><B>Parameters:</B><DD><CODE>layerHandle</CODE> - Handle in binary format |
649 |
<DT><B>Returns:</B><DD>int Int value of the handle</DL> |
650 |
</DD>
|
651 |
</DL>
|
652 |
<!-- ========= END OF CLASS DATA ========= -->
|
653 |
<HR>
|
654 |
|
655 |
|
656 |
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
657 |
<A NAME="navbar_bottom"><!-- --></A> |
658 |
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
659 |
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
660 |
<TR>
|
661 |
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
662 |
<A NAME="navbar_bottom_firstrow"><!-- --></A> |
663 |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
664 |
<TR ALIGN="center" VALIGN="top"> |
665 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
666 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
667 |
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
668 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/DwgUtil.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
669 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
670 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
671 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
672 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
673 |
</TR>
|
674 |
</TABLE>
|
675 |
</TD>
|
676 |
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
677 |
</EM>
|
678 |
</TD>
|
679 |
</TR>
|
680 |
|
681 |
<TR>
|
682 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
683 |
<A HREF="../../../../../com/iver/cit/jdwglib/dwg/DwgSectionOffset.html" title="class in com.iver.cit.jdwglib.dwg"><B>PREV CLASS</B></A> |
684 |
NEXT CLASS</FONT></TD> |
685 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
686 |
<A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A> |
687 |
<A HREF="DwgUtil.html" target="_top"><B>NO FRAMES</B></A> |
688 |
<SCRIPT type="text/javascript"> |
689 |
<!--
|
690 |
if(window==top) {
|
691 |
document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
692 |
}
|
693 |
//-->
|
694 |
</SCRIPT>
|
695 |
<NOSCRIPT>
|
696 |
<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> |
697 |
</NOSCRIPT>
|
698 |
|
699 |
</FONT></TD> |
700 |
</TR>
|
701 |
<TR>
|
702 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
703 |
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
704 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
705 |
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
706 |
</TR>
|
707 |
</TABLE>
|
708 |
<A NAME="skip-navbar_bottom"></A> |
709 |
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
710 |
|
711 |
<HR>
|
712 |
|
713 |
</BODY>
|
714 |
</HTML>
|