root / trunk / docs / FMap / fmap-api / com / iver / cit / gvsig / fmap / drivers / shp / DbaseFileHeaderNIO.html @ 11445
History | View | Annotate | Download (25.4 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_04) on Mon Feb 14 08:45:49 CET 2005 -->
|
6 |
<TITLE>
|
7 |
DbaseFileHeaderNIO (FMap API) |
8 |
</TITLE>
|
9 |
|
10 |
<META NAME="keywords" CONTENT="com.iver.cit.gvsig.fmap.drivers.shp.DbaseFileHeaderNIO 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="DbaseFileHeaderNIO (FMap API)"; |
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="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
39 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
40 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
41 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
42 |
</TR>
|
43 |
</TABLE>
|
44 |
</TD>
|
45 |
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
46 |
</EM>
|
47 |
</TD>
|
48 |
</TR>
|
49 |
|
50 |
<TR>
|
51 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
52 |
PREV CLASS |
53 |
<A HREF="../../../../../../../com/iver/cit/gvsig/fmap/drivers/shp/DbaseFileNIO.html" title="class in com.iver.cit.gvsig.fmap.drivers.shp"><B>NEXT CLASS</B></A></FONT></TD> |
54 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
55 |
<A HREF="../../../../../../../index.html" target="_top"><B>FRAMES</B></A> |
56 |
<A HREF="DbaseFileHeaderNIO.html" target="_top"><B>NO FRAMES</B></A> |
57 |
<SCRIPT type="text/javascript"> |
58 |
<!--
|
59 |
if(window==top) {
|
60 |
document.writeln('<A HREF="../../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
61 |
}
|
62 |
//-->
|
63 |
</SCRIPT>
|
64 |
<NOSCRIPT>
|
65 |
<A HREF="../../../../../../../allclasses-noframe.html"><B>All Classes</B></A> |
66 |
</NOSCRIPT>
|
67 |
|
68 |
</FONT></TD> |
69 |
</TR>
|
70 |
<TR>
|
71 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
72 |
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
73 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
74 |
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
75 |
</TR>
|
76 |
</TABLE>
|
77 |
<A NAME="skip-navbar_top"></A> |
78 |
<!-- ========= END OF TOP NAVBAR ========= -->
|
79 |
|
80 |
<HR>
|
81 |
<!-- ======== START OF CLASS DATA ======== -->
|
82 |
<H2>
|
83 |
<FONT SIZE="-1"> |
84 |
com.iver.cit.gvsig.fmap.drivers.shp</FONT>
|
85 |
<BR>
|
86 |
Class DbaseFileHeaderNIO</H2>
|
87 |
<PRE>
|
88 |
java.lang.Object |
89 |
<IMG SRC="../../../../../../../resources/inherit.gif" ALT="extended by"><B>com.iver.cit.gvsig.fmap.drivers.shp.DbaseFileHeaderNIO</B> |
90 |
</PRE>
|
91 |
<HR>
|
92 |
<DL>
|
93 |
<DT>public class <B>DbaseFileHeaderNIO</B><DT>extends java.lang.Object</DL> |
94 |
|
95 |
<P>
|
96 |
Class to represent the header of a Dbase III file. Creation date: (5/15/2001 |
97 |
5:15:30 PM) |
98 |
<P>
|
99 |
|
100 |
<P>
|
101 |
<HR>
|
102 |
|
103 |
<P>
|
104 |
<!-- ======== NESTED CLASS SUMMARY ======== -->
|
105 |
|
106 |
|
107 |
<!-- =========== FIELD SUMMARY =========== -->
|
108 |
|
109 |
|
110 |
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
111 |
|
112 |
<A NAME="constructor_summary"><!-- --></A> |
113 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
114 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
115 |
<TD COLSPAN=2><FONT SIZE="+2"> |
116 |
<B>Constructor Summary</B></FONT></TD> |
117 |
</TR>
|
118 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
119 |
<TD><CODE><B><A HREF="../../../../../../../com/iver/cit/gvsig/fmap/drivers/shp/DbaseFileHeaderNIO.html#DbaseFileHeaderNIO()">DbaseFileHeaderNIO</A></B>()</CODE> |
120 |
|
121 |
<BR>
|
122 |
</TD> |
123 |
</TR>
|
124 |
</TABLE>
|
125 |
|
126 |
<!-- ========== METHOD SUMMARY =========== -->
|
127 |
|
128 |
<A NAME="method_summary"><!-- --></A> |
129 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
130 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
131 |
<TD COLSPAN=2><FONT SIZE="+2"> |
132 |
<B>Method Summary</B></FONT></TD> |
133 |
</TR>
|
134 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
135 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
136 |
<CODE> void</CODE></FONT></TD> |
137 |
<TD><CODE><B><A HREF="../../../../../../../com/iver/cit/gvsig/fmap/drivers/shp/DbaseFileHeaderNIO.html#addColumn(java.lang.String, char, int, int)">addColumn</A></B>(java.lang.String inFieldName, |
138 |
char inFieldType,
|
139 |
int inFieldLength,
|
140 |
int inDecimalCount)</CODE> |
141 |
|
142 |
<BR>
|
143 |
Add a column to this DbaseFileHeader. </TD> |
144 |
</TR>
|
145 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
146 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
147 |
<CODE>static <A HREF="../../../../../../../com/iver/cit/gvsig/fmap/drivers/shp/DbaseFileHeaderNIO.html" title="class in com.iver.cit.gvsig.fmap.drivers.shp">DbaseFileHeaderNIO</A></CODE></FONT></TD> |
148 |
<TD><CODE><B><A HREF="../../../../../../../com/iver/cit/gvsig/fmap/drivers/shp/DbaseFileHeaderNIO.html#createDbaseHeader(com.iver.cit.gvsig.fmap.layers.SelectableDataSource)">createDbaseHeader</A></B>(<A HREF="../../../../../../../com/iver/cit/gvsig/fmap/layers/SelectableDataSource.html" title="class in com.iver.cit.gvsig.fmap.layers">SelectableDataSource</A> sds)</CODE> |
149 |
|
150 |
<BR>
|
151 |
DOCUMENT ME!</TD> |
152 |
</TR>
|
153 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
154 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
155 |
<CODE>static <A HREF="../../../../../../../com/iver/cit/gvsig/fmap/drivers/shp/DbaseFileHeaderNIO.html" title="class in com.iver.cit.gvsig.fmap.drivers.shp">DbaseFileHeaderNIO</A></CODE></FONT></TD> |
156 |
<TD><CODE><B><A HREF="../../../../../../../com/iver/cit/gvsig/fmap/drivers/shp/DbaseFileHeaderNIO.html#createNewDbaseHeader()">createNewDbaseHeader</A></B>()</CODE> |
157 |
|
158 |
<BR>
|
159 |
Crea un DbaseFile.</TD> |
160 |
</TR>
|
161 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
162 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
163 |
<CODE> java.lang.Class</CODE></FONT></TD> |
164 |
<TD><CODE><B><A HREF="../../../../../../../com/iver/cit/gvsig/fmap/drivers/shp/DbaseFileHeaderNIO.html#getFieldClass(int)">getFieldClass</A></B>(int i)</CODE> |
165 |
|
166 |
<BR>
|
167 |
Determine the most appropriate Java Class for representing the data in |
168 |
the field. |
169 |
</TD>
|
170 |
</TR>
|
171 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
172 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
173 |
<CODE> int</CODE></FONT></TD> |
174 |
<TD><CODE><B><A HREF="../../../../../../../com/iver/cit/gvsig/fmap/drivers/shp/DbaseFileHeaderNIO.html#getFieldDecimalCount(int)">getFieldDecimalCount</A></B>(int inIndex)</CODE> |
175 |
|
176 |
<BR>
|
177 |
Get the decimal count of this field.</TD> |
178 |
</TR>
|
179 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
180 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
181 |
<CODE> int</CODE></FONT></TD> |
182 |
<TD><CODE><B><A HREF="../../../../../../../com/iver/cit/gvsig/fmap/drivers/shp/DbaseFileHeaderNIO.html#getFieldLength(int)">getFieldLength</A></B>(int inIndex)</CODE> |
183 |
|
184 |
<BR>
|
185 |
Returns the field length in bytes.</TD> |
186 |
</TR>
|
187 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
188 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
189 |
<CODE> java.lang.String</CODE></FONT></TD> |
190 |
<TD><CODE><B><A HREF="../../../../../../../com/iver/cit/gvsig/fmap/drivers/shp/DbaseFileHeaderNIO.html#getFieldName(int)">getFieldName</A></B>(int inIndex)</CODE> |
191 |
|
192 |
<BR>
|
193 |
Get the field name.</TD> |
194 |
</TR>
|
195 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
196 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
197 |
<CODE> char</CODE></FONT></TD> |
198 |
<TD><CODE><B><A HREF="../../../../../../../com/iver/cit/gvsig/fmap/drivers/shp/DbaseFileHeaderNIO.html#getFieldType(int)">getFieldType</A></B>(int inIndex)</CODE> |
199 |
|
200 |
<BR>
|
201 |
Get the character class of the field.</TD> |
202 |
</TR>
|
203 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
204 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
205 |
<CODE> int</CODE></FONT></TD> |
206 |
<TD><CODE><B><A HREF="../../../../../../../com/iver/cit/gvsig/fmap/drivers/shp/DbaseFileHeaderNIO.html#getHeaderLength()">getHeaderLength</A></B>()</CODE> |
207 |
|
208 |
<BR>
|
209 |
Get the length of the header</TD> |
210 |
</TR>
|
211 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
212 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
213 |
<CODE> int</CODE></FONT></TD> |
214 |
<TD><CODE><B><A HREF="../../../../../../../com/iver/cit/gvsig/fmap/drivers/shp/DbaseFileHeaderNIO.html#getLargestFieldSize()">getLargestFieldSize</A></B>()</CODE> |
215 |
|
216 |
<BR>
|
217 |
Get the largest field size of this table.</TD> |
218 |
</TR>
|
219 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
220 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
221 |
<CODE> java.util.Date</CODE></FONT></TD> |
222 |
<TD><CODE><B><A HREF="../../../../../../../com/iver/cit/gvsig/fmap/drivers/shp/DbaseFileHeaderNIO.html#getLastUpdateDate()">getLastUpdateDate</A></B>()</CODE> |
223 |
|
224 |
<BR>
|
225 |
Get the date this file was last updated.</TD> |
226 |
</TR>
|
227 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
228 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
229 |
<CODE> int</CODE></FONT></TD> |
230 |
<TD><CODE><B><A HREF="../../../../../../../com/iver/cit/gvsig/fmap/drivers/shp/DbaseFileHeaderNIO.html#getNumFields()">getNumFields</A></B>()</CODE> |
231 |
|
232 |
<BR>
|
233 |
Return the number of fields in the records.</TD> |
234 |
</TR>
|
235 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
236 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
237 |
<CODE> int</CODE></FONT></TD> |
238 |
<TD><CODE><B><A HREF="../../../../../../../com/iver/cit/gvsig/fmap/drivers/shp/DbaseFileHeaderNIO.html#getNumRecords()">getNumRecords</A></B>()</CODE> |
239 |
|
240 |
<BR>
|
241 |
Return the number of records in the file</TD> |
242 |
</TR>
|
243 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
244 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
245 |
<CODE> int</CODE></FONT></TD> |
246 |
<TD><CODE><B><A HREF="../../../../../../../com/iver/cit/gvsig/fmap/drivers/shp/DbaseFileHeaderNIO.html#getRecordLength()">getRecordLength</A></B>()</CODE> |
247 |
|
248 |
<BR>
|
249 |
Get the length of the records in bytes.</TD> |
250 |
</TR>
|
251 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
252 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
253 |
<CODE> void</CODE></FONT></TD> |
254 |
<TD><CODE><B><A HREF="../../../../../../../com/iver/cit/gvsig/fmap/drivers/shp/DbaseFileHeaderNIO.html#readHeader(java.nio.ByteBuffer)">readHeader</A></B>(java.nio.ByteBuffer in)</CODE> |
255 |
|
256 |
<BR>
|
257 |
Read the header data from the DBF file.</TD> |
258 |
</TR>
|
259 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
260 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
261 |
<CODE> int</CODE></FONT></TD> |
262 |
<TD><CODE><B><A HREF="../../../../../../../com/iver/cit/gvsig/fmap/drivers/shp/DbaseFileHeaderNIO.html#removeColumn(java.lang.String)">removeColumn</A></B>(java.lang.String inFieldName)</CODE> |
263 |
|
264 |
<BR>
|
265 |
Remove a column from this DbaseFileHeader.</TD> |
266 |
</TR>
|
267 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
268 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
269 |
<CODE> void</CODE></FONT></TD> |
270 |
<TD><CODE><B><A HREF="../../../../../../../com/iver/cit/gvsig/fmap/drivers/shp/DbaseFileHeaderNIO.html#setNumRecords(int)">setNumRecords</A></B>(int inNumRecords)</CODE> |
271 |
|
272 |
<BR>
|
273 |
Set the number of records in the file</TD> |
274 |
</TR>
|
275 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
276 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
277 |
<CODE> java.lang.String</CODE></FONT></TD> |
278 |
<TD><CODE><B><A HREF="../../../../../../../com/iver/cit/gvsig/fmap/drivers/shp/DbaseFileHeaderNIO.html#toString()">toString</A></B>()</CODE> |
279 |
|
280 |
<BR>
|
281 |
Get a simple representation of this header.</TD> |
282 |
</TR>
|
283 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
284 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
285 |
<CODE> void</CODE></FONT></TD> |
286 |
<TD><CODE><B><A HREF="../../../../../../../com/iver/cit/gvsig/fmap/drivers/shp/DbaseFileHeaderNIO.html#writeHeader(java.nio.channels.WritableByteChannel)">writeHeader</A></B>(java.nio.channels.WritableByteChannel out)</CODE> |
287 |
|
288 |
<BR>
|
289 |
Write the header data to the DBF file.</TD> |
290 |
</TR>
|
291 |
</TABLE>
|
292 |
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
293 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
294 |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
295 |
<TD><B>Methods inherited from class java.lang.Object</B></TD> |
296 |
</TR>
|
297 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
298 |
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD> |
299 |
</TR>
|
300 |
</TABLE>
|
301 |
|
302 |
<P>
|
303 |
|
304 |
<!-- ============ FIELD DETAIL =========== -->
|
305 |
|
306 |
|
307 |
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
308 |
|
309 |
<A NAME="constructor_detail"><!-- --></A> |
310 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
311 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
312 |
<TD COLSPAN=1><FONT SIZE="+2"> |
313 |
<B>Constructor Detail</B></FONT></TD> |
314 |
</TR>
|
315 |
</TABLE>
|
316 |
|
317 |
<A NAME="DbaseFileHeaderNIO()"><!-- --></A><H3> |
318 |
DbaseFileHeaderNIO</H3>
|
319 |
<PRE>
|
320 |
public <B>DbaseFileHeaderNIO</B>()</PRE> |
321 |
<DL>
|
322 |
</DL>
|
323 |
|
324 |
<!-- ============ METHOD DETAIL ========== -->
|
325 |
|
326 |
<A NAME="method_detail"><!-- --></A> |
327 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
328 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
329 |
<TD COLSPAN=1><FONT SIZE="+2"> |
330 |
<B>Method Detail</B></FONT></TD> |
331 |
</TR>
|
332 |
</TABLE>
|
333 |
|
334 |
<A NAME="getFieldClass(int)"><!-- --></A><H3> |
335 |
getFieldClass</H3>
|
336 |
<PRE>
|
337 |
public java.lang.Class <B>getFieldClass</B>(int i)</PRE> |
338 |
<DL>
|
339 |
<DD>Determine the most appropriate Java Class for representing the data in
|
340 |
the field. |
341 |
<PRE>
|
342 |
All packages are java.lang unless otherwise specified. |
343 |
C (Character) -> String
|
344 |
N (Numeric) -> Integer or Double (depends on field's decimal count)
|
345 |
F (Floating) -> Double
|
346 |
L (Logical) -> Boolean
|
347 |
D (Date) -> java.util.Date
|
348 |
Unknown -> String
|
349 |
</PRE>
|
350 |
<P>
|
351 |
<DD><DL> |
352 |
<DT><B>Parameters:</B><DD><CODE>i</CODE> - The index of the field, from 0 to <CODE>getNumFields() - |
353 |
1</CODE> .
|
354 |
<DT><B>Returns:</B><DD>A Class which closely represents the dbase field type.</DL> |
355 |
</DD>
|
356 |
</DL>
|
357 |
<HR>
|
358 |
|
359 |
<A NAME="addColumn(java.lang.String, char, int, int)"><!-- --></A><H3> |
360 |
addColumn</H3>
|
361 |
<PRE>
|
362 |
public void <B>addColumn</B>(java.lang.String inFieldName, |
363 |
char inFieldType,
|
364 |
int inFieldLength,
|
365 |
int inDecimalCount)</PRE> |
366 |
<DL>
|
367 |
<DD>Add a column to this DbaseFileHeader. The type is one of (C N L or D)
|
368 |
character, number, logical(true/false), or date. The Field length is |
369 |
the total length in bytes reserved for this column. The decimal count |
370 |
only applies to numbers(N), and floating point values (F), and refers |
371 |
to the number of characters to reserve after the decimal point. |
372 |
<B>Don't expect miracles from this...</B> |
373 |
<PRE>
|
374 |
Field Type MaxLength |
375 |
---------- --------- |
376 |
C 254 |
377 |
D 8 |
378 |
F 20 |
379 |
N 18 |
380 |
</PRE>
|
381 |
<P>
|
382 |
<DD><DL> |
383 |
<DT><B>Parameters:</B><DD><CODE>inFieldName</CODE> - The name of the new field, must be less than 10 |
384 |
characters or it gets truncated.<DD><CODE>inFieldType</CODE> - A character representing the dBase field, ( see above |
385 |
). Case insensitive.<DD><CODE>inFieldLength</CODE> - The length of the field, in bytes ( see above )<DD><CODE>inDecimalCount</CODE> - For numeric fields, the number of decimal places |
386 |
to track.</DL>
|
387 |
</DD>
|
388 |
</DL>
|
389 |
<HR>
|
390 |
|
391 |
<A NAME="removeColumn(java.lang.String)"><!-- --></A><H3> |
392 |
removeColumn</H3>
|
393 |
<PRE>
|
394 |
public int <B>removeColumn</B>(java.lang.String inFieldName)</PRE> |
395 |
<DL>
|
396 |
<DD>Remove a column from this DbaseFileHeader.
|
397 |
<P>
|
398 |
<DD><DL> |
399 |
<DT><B>Parameters:</B><DD><CODE>inFieldName</CODE> - The name of the field, will ignore case and trim. |
400 |
<DT><B>Returns:</B><DD>index of the removed column, -1 if no found</DL> |
401 |
</DD>
|
402 |
</DL>
|
403 |
<HR>
|
404 |
|
405 |
<A NAME="getFieldLength(int)"><!-- --></A><H3> |
406 |
getFieldLength</H3>
|
407 |
<PRE>
|
408 |
public int <B>getFieldLength</B>(int inIndex)</PRE> |
409 |
<DL>
|
410 |
<DD>Returns the field length in bytes.
|
411 |
<P>
|
412 |
<DD><DL> |
413 |
<DT><B>Parameters:</B><DD><CODE>inIndex</CODE> - The field index. |
414 |
<DT><B>Returns:</B><DD>The length in bytes.</DL> |
415 |
</DD>
|
416 |
</DL>
|
417 |
<HR>
|
418 |
|
419 |
<A NAME="getFieldDecimalCount(int)"><!-- --></A><H3> |
420 |
getFieldDecimalCount</H3>
|
421 |
<PRE>
|
422 |
public int <B>getFieldDecimalCount</B>(int inIndex)</PRE> |
423 |
<DL>
|
424 |
<DD>Get the decimal count of this field.
|
425 |
<P>
|
426 |
<DD><DL> |
427 |
<DT><B>Parameters:</B><DD><CODE>inIndex</CODE> - The field index. |
428 |
<DT><B>Returns:</B><DD>The decimal count.</DL> |
429 |
</DD>
|
430 |
</DL>
|
431 |
<HR>
|
432 |
|
433 |
<A NAME="getFieldName(int)"><!-- --></A><H3> |
434 |
getFieldName</H3>
|
435 |
<PRE>
|
436 |
public java.lang.String <B>getFieldName</B>(int inIndex)</PRE> |
437 |
<DL>
|
438 |
<DD>Get the field name.
|
439 |
<P>
|
440 |
<DD><DL> |
441 |
<DT><B>Parameters:</B><DD><CODE>inIndex</CODE> - The field index. |
442 |
<DT><B>Returns:</B><DD>The name of the field.</DL> |
443 |
</DD>
|
444 |
</DL>
|
445 |
<HR>
|
446 |
|
447 |
<A NAME="getFieldType(int)"><!-- --></A><H3> |
448 |
getFieldType</H3>
|
449 |
<PRE>
|
450 |
public char <B>getFieldType</B>(int inIndex)</PRE> |
451 |
<DL>
|
452 |
<DD>Get the character class of the field.
|
453 |
<P>
|
454 |
<DD><DL> |
455 |
<DT><B>Parameters:</B><DD><CODE>inIndex</CODE> - The field index. |
456 |
<DT><B>Returns:</B><DD>The dbase character representing this field.</DL> |
457 |
</DD>
|
458 |
</DL>
|
459 |
<HR>
|
460 |
|
461 |
<A NAME="getLastUpdateDate()"><!-- --></A><H3> |
462 |
getLastUpdateDate</H3>
|
463 |
<PRE>
|
464 |
public java.util.Date <B>getLastUpdateDate</B>()</PRE> |
465 |
<DL>
|
466 |
<DD>Get the date this file was last updated.
|
467 |
<P>
|
468 |
<DD><DL> |
469 |
|
470 |
<DT><B>Returns:</B><DD>The Date last modified.</DL> |
471 |
</DD>
|
472 |
</DL>
|
473 |
<HR>
|
474 |
|
475 |
<A NAME="getNumFields()"><!-- --></A><H3> |
476 |
getNumFields</H3>
|
477 |
<PRE>
|
478 |
public int <B>getNumFields</B>()</PRE> |
479 |
<DL>
|
480 |
<DD>Return the number of fields in the records.
|
481 |
<P>
|
482 |
<DD><DL> |
483 |
|
484 |
<DT><B>Returns:</B><DD>The number of fields in this table.</DL> |
485 |
</DD>
|
486 |
</DL>
|
487 |
<HR>
|
488 |
|
489 |
<A NAME="getNumRecords()"><!-- --></A><H3> |
490 |
getNumRecords</H3>
|
491 |
<PRE>
|
492 |
public int <B>getNumRecords</B>()</PRE> |
493 |
<DL>
|
494 |
<DD>Return the number of records in the file
|
495 |
<P>
|
496 |
<DD><DL> |
497 |
|
498 |
<DT><B>Returns:</B><DD>The number of records in this table.</DL> |
499 |
</DD>
|
500 |
</DL>
|
501 |
<HR>
|
502 |
|
503 |
<A NAME="getRecordLength()"><!-- --></A><H3> |
504 |
getRecordLength</H3>
|
505 |
<PRE>
|
506 |
public int <B>getRecordLength</B>()</PRE> |
507 |
<DL>
|
508 |
<DD>Get the length of the records in bytes.
|
509 |
<P>
|
510 |
<DD><DL> |
511 |
|
512 |
<DT><B>Returns:</B><DD>The number of bytes per record.</DL> |
513 |
</DD>
|
514 |
</DL>
|
515 |
<HR>
|
516 |
|
517 |
<A NAME="getHeaderLength()"><!-- --></A><H3> |
518 |
getHeaderLength</H3>
|
519 |
<PRE>
|
520 |
public int <B>getHeaderLength</B>()</PRE> |
521 |
<DL>
|
522 |
<DD>Get the length of the header
|
523 |
<P>
|
524 |
<DD><DL> |
525 |
|
526 |
<DT><B>Returns:</B><DD>The length of the header in bytes.</DL> |
527 |
</DD>
|
528 |
</DL>
|
529 |
<HR>
|
530 |
|
531 |
<A NAME="readHeader(java.nio.ByteBuffer)"><!-- --></A><H3> |
532 |
readHeader</H3>
|
533 |
<PRE>
|
534 |
public void <B>readHeader</B>(java.nio.ByteBuffer in) |
535 |
throws java.io.IOException</PRE>
|
536 |
<DL>
|
537 |
<DD>Read the header data from the DBF file.
|
538 |
<P>
|
539 |
<DD><DL> |
540 |
<DT><B>Parameters:</B><DD><CODE>in</CODE> - DOCUMENT ME! |
541 |
<DT><B>Throws:</B> |
542 |
<DD><CODE>java.io.IOException</CODE> - DOCUMENT ME!</DL> |
543 |
</DD>
|
544 |
</DL>
|
545 |
<HR>
|
546 |
|
547 |
<A NAME="getLargestFieldSize()"><!-- --></A><H3> |
548 |
getLargestFieldSize</H3>
|
549 |
<PRE>
|
550 |
public int <B>getLargestFieldSize</B>()</PRE> |
551 |
<DL>
|
552 |
<DD>Get the largest field size of this table.
|
553 |
<P>
|
554 |
<DD><DL> |
555 |
|
556 |
<DT><B>Returns:</B><DD>The largt field size iiin bytes.</DL> |
557 |
</DD>
|
558 |
</DL>
|
559 |
<HR>
|
560 |
|
561 |
<A NAME="setNumRecords(int)"><!-- --></A><H3> |
562 |
setNumRecords</H3>
|
563 |
<PRE>
|
564 |
public void <B>setNumRecords</B>(int inNumRecords)</PRE> |
565 |
<DL>
|
566 |
<DD>Set the number of records in the file
|
567 |
<P>
|
568 |
<DD><DL> |
569 |
<DT><B>Parameters:</B><DD><CODE>inNumRecords</CODE> - The number of records.</DL> |
570 |
</DD>
|
571 |
</DL>
|
572 |
<HR>
|
573 |
|
574 |
<A NAME="writeHeader(java.nio.channels.WritableByteChannel)"><!-- --></A><H3> |
575 |
writeHeader</H3>
|
576 |
<PRE>
|
577 |
public void <B>writeHeader</B>(java.nio.channels.WritableByteChannel out) |
578 |
throws java.io.IOException</PRE>
|
579 |
<DL>
|
580 |
<DD>Write the header data to the DBF file.
|
581 |
<P>
|
582 |
<DD><DL> |
583 |
<DT><B>Parameters:</B><DD><CODE>out</CODE> - A channel to write to. If you have an OutputStream you can |
584 |
obtain the correct channel by using |
585 |
java.nio.Channels.newChannel(OutputStream out). |
586 |
<DT><B>Throws:</B> |
587 |
<DD><CODE>java.io.IOException</CODE> - If errors occur.</DL> |
588 |
</DD>
|
589 |
</DL>
|
590 |
<HR>
|
591 |
|
592 |
<A NAME="toString()"><!-- --></A><H3> |
593 |
toString</H3>
|
594 |
<PRE>
|
595 |
public java.lang.String <B>toString</B>()</PRE> |
596 |
<DL>
|
597 |
<DD>Get a simple representation of this header.
|
598 |
<P>
|
599 |
<DD><DL> |
600 |
|
601 |
<DT><B>Returns:</B><DD>A String representing the state of the header.</DL> |
602 |
</DD>
|
603 |
</DL>
|
604 |
<HR>
|
605 |
|
606 |
<A NAME="createNewDbaseHeader()"><!-- --></A><H3> |
607 |
createNewDbaseHeader</H3>
|
608 |
<PRE>
|
609 |
public static <A HREF="../../../../../../../com/iver/cit/gvsig/fmap/drivers/shp/DbaseFileHeaderNIO.html" title="class in com.iver.cit.gvsig.fmap.drivers.shp">DbaseFileHeaderNIO</A> <B>createNewDbaseHeader</B>() |
610 |
throws java.io.IOException</PRE>
|
611 |
<DL>
|
612 |
<DD>Crea un DbaseFile.
|
613 |
<P>
|
614 |
<DD><DL> |
615 |
|
616 |
<DT><B>Returns:</B><DD>DbaseFileHeaderNIO |
617 |
<DT><B>Throws:</B> |
618 |
<DD><CODE>java.io.IOException</CODE> - .</DL> |
619 |
</DD>
|
620 |
</DL>
|
621 |
<HR>
|
622 |
|
623 |
<A NAME="createDbaseHeader(com.iver.cit.gvsig.fmap.layers.SelectableDataSource)"><!-- --></A><H3> |
624 |
createDbaseHeader</H3>
|
625 |
<PRE>
|
626 |
public static <A HREF="../../../../../../../com/iver/cit/gvsig/fmap/drivers/shp/DbaseFileHeaderNIO.html" title="class in com.iver.cit.gvsig.fmap.drivers.shp">DbaseFileHeaderNIO</A> <B>createDbaseHeader</B>(<A HREF="../../../../../../../com/iver/cit/gvsig/fmap/layers/SelectableDataSource.html" title="class in com.iver.cit.gvsig.fmap.layers">SelectableDataSource</A> sds) |
627 |
throws java.io.IOException</PRE>
|
628 |
<DL>
|
629 |
<DD>DOCUMENT ME!
|
630 |
<P>
|
631 |
<DD><DL> |
632 |
<DT><B>Parameters:</B><DD><CODE>sds</CODE> - DOCUMENT ME! |
633 |
<DT><B>Returns:</B><DD>DOCUMENT ME! |
634 |
<DT><B>Throws:</B> |
635 |
<DD><CODE>java.io.IOException</CODE> - DOCUMENT ME!</DL> |
636 |
</DD>
|
637 |
</DL>
|
638 |
<!-- ========= END OF CLASS DATA ========= -->
|
639 |
<HR>
|
640 |
|
641 |
|
642 |
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
643 |
<A NAME="navbar_bottom"><!-- --></A> |
644 |
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
645 |
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
646 |
<TR>
|
647 |
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
648 |
<A NAME="navbar_bottom_firstrow"><!-- --></A> |
649 |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
650 |
<TR ALIGN="center" VALIGN="top"> |
651 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
652 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
653 |
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
654 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
655 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
656 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
657 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
658 |
</TR>
|
659 |
</TABLE>
|
660 |
</TD>
|
661 |
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
662 |
</EM>
|
663 |
</TD>
|
664 |
</TR>
|
665 |
|
666 |
<TR>
|
667 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
668 |
PREV CLASS |
669 |
<A HREF="../../../../../../../com/iver/cit/gvsig/fmap/drivers/shp/DbaseFileNIO.html" title="class in com.iver.cit.gvsig.fmap.drivers.shp"><B>NEXT CLASS</B></A></FONT></TD> |
670 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
671 |
<A HREF="../../../../../../../index.html" target="_top"><B>FRAMES</B></A> |
672 |
<A HREF="DbaseFileHeaderNIO.html" target="_top"><B>NO FRAMES</B></A> |
673 |
<SCRIPT type="text/javascript"> |
674 |
<!--
|
675 |
if(window==top) {
|
676 |
document.writeln('<A HREF="../../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
677 |
}
|
678 |
//-->
|
679 |
</SCRIPT>
|
680 |
<NOSCRIPT>
|
681 |
<A HREF="../../../../../../../allclasses-noframe.html"><B>All Classes</B></A> |
682 |
</NOSCRIPT>
|
683 |
|
684 |
</FONT></TD> |
685 |
</TR>
|
686 |
<TR>
|
687 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
688 |
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
689 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
690 |
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
691 |
</TR>
|
692 |
</TABLE>
|
693 |
<A NAME="skip-navbar_bottom"></A> |
694 |
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
695 |
|
696 |
<HR>
|
697 |
|
698 |
</BODY>
|
699 |
</HTML>
|