Project

General

Profile

metacat / docs / edu / ucsb / nceas / metacat / DBSAXHandler.html @ 138

1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd">
2
<!--NewPage-->
3
<HTML>
4
<HEAD>
5
<!-- Generated by javadoc on Wed Jun 07 16:35:58 AKDT 2000 -->
6
<TITLE>
7
MetaCat API: Class  DBSAXHandler
8
</TITLE>
9
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
10
</HEAD>
11
<BODY BGCOLOR="white">
12

    
13
<!-- ========== START OF NAVBAR ========== -->
14
<A NAME="navbar_top"><!-- --></A>
15
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
16
<TR>
17
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
18
<A NAME="navbar_top_firstrow"><!-- --></A>
19
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
20
  <TR ALIGN="center" VALIGN="top">
21
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
22
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
23
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/DBSAXHandler.html"><FONT ID="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
24
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
25
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
26
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
27
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
28
  </TR>
29
</TABLE>
30
</TD>
31
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
32
</EM>
33
</TD>
34
</TR>
35

    
36
<TR>
37
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
38
&nbsp;<A HREF="../../../../edu/ucsb/nceas/metacat/DBSAXDocument.html"><B>PREV CLASS</B></A>&nbsp;
39
&nbsp;<A HREF="../../../../edu/ucsb/nceas/metacat/DBSAXNode.html"><B>NEXT CLASS</B></A></FONT></TD>
40
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
41
  <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
42
&nbsp;<A HREF="DBSAXHandler.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
43
</TR>
44
<TR>
45
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
46
  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
47
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
48
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
49
</TR>
50
</TABLE>
51
<!-- =========== END OF NAVBAR =========== -->
52

    
53
<HR>
54
<!-- ======== START OF CLASS DATA ======== -->
55
<H2>
56
<FONT SIZE="-1">
57
edu.ucsb.nceas.metacat</FONT>
58
<BR>
59
Class  DBSAXHandler</H2>
60
<PRE>
61
<B>edu.ucsb.nceas.metacat.DBSAXHandler</B>
62
</PRE>
63
<HR>
64
<DL>
65
<DT>public class <B>DBSAXHandler</B></DL>
66

    
67
<P>
68
A database aware Class implementing callback bethods for the SAX parser to
69
 call when processing the XML stream and generating events
70
<P>
71
<HR>
72

    
73
<P>
74
<!-- ======== INNER CLASS SUMMARY ======== -->
75

    
76

    
77
<!-- =========== FIELD SUMMARY =========== -->
78

    
79

    
80
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
81

    
82
<A NAME="constructor_summary"><!-- --></A>
83
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
84
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
85
<TD COLSPAN=2><FONT SIZE="+2">
86
<B>Constructor Summary</B></FONT></TD>
87
</TR>
88
<TR BGCOLOR="white" CLASS="TableRowColor">
89
<TD><CODE><B><A HREF="../../../../edu/ucsb/nceas/metacat/DBSAXHandler.html#DBSAXHandler(java.sql.Connection)">DBSAXHandler</A></B>(java.sql.Connection&nbsp;conn)</CODE>
90

    
91
<BR>
92
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Construct an instance of the handler class</TD>
93
</TR>
94
</TABLE>
95
&nbsp;
96
<!-- ========== METHOD SUMMARY =========== -->
97

    
98
<A NAME="method_summary"><!-- --></A>
99
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
100
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
101
<TD COLSPAN=2><FONT SIZE="+2">
102
<B>Method Summary</B></FONT></TD>
103
</TR>
104
<TR BGCOLOR="white" CLASS="TableRowColor">
105
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
106
<CODE>&nbsp;void</CODE></FONT></TD>
107
<TD><CODE><B><A HREF="../../../../edu/ucsb/nceas/metacat/DBSAXHandler.html#characters(char[], int, int)">characters</A></B>(char[]&nbsp;cbuf,
108
           int&nbsp;start,
109
           int&nbsp;len)</CODE>
110

    
111
<BR>
112
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SAX Handler that is called for each XML text node</TD>
113
</TR>
114
<TR BGCOLOR="white" CLASS="TableRowColor">
115
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
116
<CODE>&nbsp;void</CODE></FONT></TD>
117
<TD><CODE><B><A HREF="../../../../edu/ucsb/nceas/metacat/DBSAXHandler.html#comment(java.lang.String)">comment</A></B>(java.lang.String&nbsp;data)</CODE>
118

    
119
<BR>
120
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SAX Handler called once for each comment found: 
121
 node that comment may occur before or after the root element.</TD>
122
</TR>
123
<TR BGCOLOR="white" CLASS="TableRowColor">
124
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
125
<CODE>&nbsp;void</CODE></FONT></TD>
126
<TD><CODE><B><A HREF="../../../../edu/ucsb/nceas/metacat/DBSAXHandler.html#endDoctype()">endDoctype</A></B>()</CODE>
127

    
128
<BR>
129
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SAX Handler that receives notification of end of DTD 
130
 All events in DTDHandler about all unparsed entities and the 
131
 event in EntityResolver for the DTD file declaration appear 
132
 between setDoctype and endDoctype.</TD>
133
</TR>
134
<TR BGCOLOR="white" CLASS="TableRowColor">
135
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
136
<CODE>&nbsp;void</CODE></FONT></TD>
137
<TD><CODE><B><A HREF="../../../../edu/ucsb/nceas/metacat/DBSAXHandler.html#endDocument()">endDocument</A></B>()</CODE>
138

    
139
<BR>
140
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SAX Handler that receives notification of end of the document</TD>
141
</TR>
142
<TR BGCOLOR="white" CLASS="TableRowColor">
143
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
144
<CODE>&nbsp;void</CODE></FONT></TD>
145
<TD><CODE><B><A HREF="../../../../edu/ucsb/nceas/metacat/DBSAXHandler.html#endElement(oracle.xml.parser.v2.NSName)">endElement</A></B>(oracle.xml.parser.v2.NSName&nbsp;name)</CODE>
146

    
147
<BR>
148
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SAX Handler that is called at the end of each XML element</TD>
149
</TR>
150
<TR BGCOLOR="white" CLASS="TableRowColor">
151
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
152
<CODE>&nbsp;void</CODE></FONT></TD>
153
<TD><CODE><B><A HREF="../../../../edu/ucsb/nceas/metacat/DBSAXHandler.html#ignorableWhitespace(char[], int, int)">ignorableWhitespace</A></B>(char[]&nbsp;cbuf,
154
                    int&nbsp;start,
155
                    int&nbsp;len)</CODE>
156

    
157
<BR>
158
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SAX Handler that is called for each XML text node that is Ignorable
159
 white space</TD>
160
</TR>
161
<TR BGCOLOR="white" CLASS="TableRowColor">
162
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
163
<CODE>&nbsp;void</CODE></FONT></TD>
164
<TD><CODE><B><A HREF="../../../../edu/ucsb/nceas/metacat/DBSAXHandler.html#processingInstruction(java.lang.String, java.lang.String)">processingInstruction</A></B>(java.lang.String&nbsp;target,
165
                      java.lang.String&nbsp;data)</CODE>
166

    
167
<BR>
168
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SAX Handler called once for each processing instruction found: 
169
 node that PI may occur before or after the root element.</TD>
170
</TR>
171
<TR BGCOLOR="white" CLASS="TableRowColor">
172
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
173
<CODE>&nbsp;void</CODE></FONT></TD>
174
<TD><CODE><B><A HREF="../../../../edu/ucsb/nceas/metacat/DBSAXHandler.html#setDoctype(oracle.xml.parser.v2.DTD)">setDoctype</A></B>(oracle.xml.parser.v2.DTD&nbsp;dtd)</CODE>
175

    
176
<BR>
177
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SAX Handler that receives notification of DTD.</TD>
178
</TR>
179
<TR BGCOLOR="white" CLASS="TableRowColor">
180
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
181
<CODE>&nbsp;void</CODE></FONT></TD>
182
<TD><CODE><B><A HREF="../../../../edu/ucsb/nceas/metacat/DBSAXHandler.html#startDocument()">startDocument</A></B>()</CODE>
183

    
184
<BR>
185
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SAX Handler that receives notification of beginning of the document</TD>
186
</TR>
187
<TR BGCOLOR="white" CLASS="TableRowColor">
188
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
189
<CODE>&nbsp;void</CODE></FONT></TD>
190
<TD><CODE><B><A HREF="../../../../edu/ucsb/nceas/metacat/DBSAXHandler.html#startElement(oracle.xml.parser.v2.NSName, oracle.xml.parser.v2.SAXAttrList)">startElement</A></B>(oracle.xml.parser.v2.NSName&nbsp;name,
191
             oracle.xml.parser.v2.SAXAttrList&nbsp;atts)</CODE>
192

    
193
<BR>
194
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SAX Handler that is called at the start of each XML element</TD>
195
</TR>
196
</TABLE>
197
&nbsp;
198
<P>
199

    
200
<!-- ============ FIELD DETAIL =========== -->
201

    
202

    
203
<!-- ========= CONSTRUCTOR DETAIL ======== -->
204

    
205
<A NAME="constructor_detail"><!-- --></A>
206
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
207
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
208
<TD COLSPAN=1><FONT SIZE="+2">
209
<B>Constructor Detail</B></FONT></TD>
210
</TR>
211
</TABLE>
212

    
213
<A NAME="DBSAXHandler(java.sql.Connection)"><!-- --></A><H3>
214
DBSAXHandler</H3>
215
<PRE>
216
public <B>DBSAXHandler</B>(java.sql.Connection&nbsp;conn)</PRE>
217
<DL>
218
<DD>Construct an instance of the handler class<DD><DL>
219
<DT><B>Parameters:</B><DD><CODE>conn</CODE> - the JDBC connection to which information is written</DL>
220
</DD>
221
</DL>
222

    
223
<!-- ============ METHOD DETAIL ========== -->
224

    
225
<A NAME="method_detail"><!-- --></A>
226
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
227
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
228
<TD COLSPAN=1><FONT SIZE="+2">
229
<B>Method Detail</B></FONT></TD>
230
</TR>
231
</TABLE>
232

    
233
<A NAME="startDocument()"><!-- --></A><H3>
234
startDocument</H3>
235
<PRE>
236
public void <B>startDocument</B>()
237
                   throws org.xml.sax.SAXException</PRE>
238
<DL>
239
<DD>SAX Handler that receives notification of beginning of the document</DL>
240
<HR>
241

    
242
<A NAME="endDocument()"><!-- --></A><H3>
243
endDocument</H3>
244
<PRE>
245
public void <B>endDocument</B>()
246
                 throws org.xml.sax.SAXException</PRE>
247
<DL>
248
<DD>SAX Handler that receives notification of end of the document</DL>
249
<HR>
250

    
251
<A NAME="setDoctype(oracle.xml.parser.v2.DTD)"><!-- --></A><H3>
252
setDoctype</H3>
253
<PRE>
254
public void <B>setDoctype</B>(oracle.xml.parser.v2.DTD&nbsp;dtd)
255
                throws org.xml.sax.SAXException</PRE>
256
<DL>
257
<DD>SAX Handler that receives notification of DTD. Sets the DTD</DL>
258
<HR>
259

    
260
<A NAME="endDoctype()"><!-- --></A><H3>
261
endDoctype</H3>
262
<PRE>
263
public void <B>endDoctype</B>()
264
                throws org.xml.sax.SAXException</PRE>
265
<DL>
266
<DD>SAX Handler that receives notification of end of DTD 
267
 All events in DTDHandler about all unparsed entities and the 
268
 event in EntityResolver for the DTD file declaration appear 
269
 between setDoctype and endDoctype. The rest of parsable external 
270
 entities inside DTD file appear later in the elements from where 
271
 they are referred to.</DL>
272
<HR>
273

    
274
<A NAME="startElement(oracle.xml.parser.v2.NSName, oracle.xml.parser.v2.SAXAttrList)"><!-- --></A><H3>
275
startElement</H3>
276
<PRE>
277
public void <B>startElement</B>(oracle.xml.parser.v2.NSName&nbsp;name,
278
                         oracle.xml.parser.v2.SAXAttrList&nbsp;atts)
279
                  throws org.xml.sax.SAXException</PRE>
280
<DL>
281
<DD>SAX Handler that is called at the start of each XML element</DL>
282
<HR>
283

    
284
<A NAME="characters(char[], int, int)"><!-- --></A><H3>
285
characters</H3>
286
<PRE>
287
public void <B>characters</B>(char[]&nbsp;cbuf,
288
                       int&nbsp;start,
289
                       int&nbsp;len)</PRE>
290
<DL>
291
<DD>SAX Handler that is called for each XML text node</DL>
292
<HR>
293

    
294
<A NAME="ignorableWhitespace(char[], int, int)"><!-- --></A><H3>
295
ignorableWhitespace</H3>
296
<PRE>
297
public void <B>ignorableWhitespace</B>(char[]&nbsp;cbuf,
298
                                int&nbsp;start,
299
                                int&nbsp;len)</PRE>
300
<DL>
301
<DD>SAX Handler that is called for each XML text node that is Ignorable
302
 white space</DL>
303
<HR>
304

    
305
<A NAME="comment(java.lang.String)"><!-- --></A><H3>
306
comment</H3>
307
<PRE>
308
public void <B>comment</B>(java.lang.String&nbsp;data)
309
             throws org.xml.sax.SAXException</PRE>
310
<DL>
311
<DD>SAX Handler called once for each comment found: 
312
 node that comment may occur before or after the root element.</DL>
313
<HR>
314

    
315
<A NAME="processingInstruction(java.lang.String, java.lang.String)"><!-- --></A><H3>
316
processingInstruction</H3>
317
<PRE>
318
public void <B>processingInstruction</B>(java.lang.String&nbsp;target,
319
                                  java.lang.String&nbsp;data)
320
                           throws org.xml.sax.SAXException</PRE>
321
<DL>
322
<DD>SAX Handler called once for each processing instruction found: 
323
 node that PI may occur before or after the root element.</DL>
324
<HR>
325

    
326
<A NAME="endElement(oracle.xml.parser.v2.NSName)"><!-- --></A><H3>
327
endElement</H3>
328
<PRE>
329
public void <B>endElement</B>(oracle.xml.parser.v2.NSName&nbsp;name)
330
                throws org.xml.sax.SAXException</PRE>
331
<DL>
332
<DD>SAX Handler that is called at the end of each XML element</DL>
333
<!-- ========= END OF CLASS DATA ========= -->
334
<HR>
335

    
336
<!-- ========== START OF NAVBAR ========== -->
337
<A NAME="navbar_bottom"><!-- --></A>
338
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
339
<TR>
340
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
341
<A NAME="navbar_bottom_firstrow"><!-- --></A>
342
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
343
  <TR ALIGN="center" VALIGN="top">
344
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
345
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
346
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/DBSAXHandler.html"><FONT ID="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
347
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
348
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
349
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
350
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
351
  </TR>
352
</TABLE>
353
</TD>
354
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
355
</EM>
356
</TD>
357
</TR>
358

    
359
<TR>
360
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
361
&nbsp;<A HREF="../../../../edu/ucsb/nceas/metacat/DBSAXDocument.html"><B>PREV CLASS</B></A>&nbsp;
362
&nbsp;<A HREF="../../../../edu/ucsb/nceas/metacat/DBSAXNode.html"><B>NEXT CLASS</B></A></FONT></TD>
363
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
364
  <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
365
&nbsp;<A HREF="DBSAXHandler.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
366
</TR>
367
<TR>
368
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
369
  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
370
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
371
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
372
</TR>
373
</TABLE>
374
<!-- =========== END OF NAVBAR =========== -->
375

    
376
<HR>
377
<i>Copyright ? 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.</i>
378
</BODY>
379
</HTML>