Project

General

Profile

1 31 jones
<!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 50 jones
<!-- Generated by javadoc on Mon Apr 17 13:49:15 AKDT 2000 -->
6 31 jones
<TITLE>
7
: Class  DBSAXWriter
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="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
22
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="overview-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
23
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
24
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
25
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
26
  </TR>
27
</TABLE>
28
</TD>
29
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
30
</EM>
31
</TD>
32
</TR>
33
34
<TR>
35
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
36
&nbsp;<A HREF="DBSAXHandler.html"><B>PREV CLASS</B></A>&nbsp;
37
&nbsp;<A HREF="DBSimpleQuery.html"><B>NEXT CLASS</B></A></FONT></TD>
38
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
39
  <A HREF="index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
40
&nbsp;<A HREF="DBSAXWriter.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
41
</TR>
42
<TR>
43
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
44
  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
45
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
46
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
47
</TR>
48
</TABLE>
49
<!-- =========== END OF NAVBAR =========== -->
50
51
<HR>
52
<!-- ======== START OF CLASS DATA ======== -->
53
<H2>
54
Class  DBSAXWriter</H2>
55
<PRE>
56
java.lang.Object
57
  |
58
  +--<B>DBSAXWriter</B>
59
</PRE>
60
<HR>
61
<DL>
62
<DT>public class <B>DBSAXWriter</B><DT>extends java.lang.Object</DL>
63
64
<P>
65
A Class that reads in an XML text document and
66
 write its contents to a database connection using SAX
67
<P>
68
<HR>
69
70
<P>
71
<!-- ======== INNER CLASS SUMMARY ======== -->
72
73
74
<!-- =========== FIELD SUMMARY =========== -->
75
76
77
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
78
79
<A NAME="constructor_summary"><!-- --></A>
80
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
81
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
82
<TD COLSPAN=2><FONT SIZE="+2">
83
<B>Constructor Summary</B></FONT></TD>
84
</TR>
85
<TR BGCOLOR="white" CLASS="TableRowColor">
86
<TD><CODE><B><A HREF="DBSAXWriter.html#DBSAXWriter(java.lang.String, java.lang.String, java.lang.String, java.lang.String)">DBSAXWriter</A></B>(java.lang.String&nbsp;filename,
87
            java.lang.String&nbsp;user,
88
            java.lang.String&nbsp;password,
89
            java.lang.String&nbsp;dbstring)</CODE>
90
91
<BR>
92
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;construct a new instance of the class to write an XML file to the database</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>static&nbsp;java.net.URL</CODE></FONT></TD>
107
<TD><CODE><B><A HREF="DBSAXWriter.html#fileToURL(java.io.File)">fileToURL</A></B>(java.io.File&nbsp;file)</CODE>
108
109
<BR>
110
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Utility method to convert a file handle into a URL</TD>
111
</TR>
112
<TR BGCOLOR="white" CLASS="TableRowColor">
113
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
114
<CODE>static&nbsp;void</CODE></FONT></TD>
115
<TD><CODE><B><A HREF="DBSAXWriter.html#main(java.lang.String[])">main</A></B>(java.lang.String[]&nbsp;args)</CODE>
116
117
<BR>
118
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the main routine used to test the DBSAXWriter utility.</TD>
119
</TR>
120
</TABLE>
121
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
122
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
123
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
124
<TD><B>Methods inherited from class java.lang.Object</B></TD>
125
</TR>
126
<TR BGCOLOR="white" CLASS="TableRowColor">
127
<TD><CODE>clone,
128
equals,
129
finalize,
130
getClass,
131
hashCode,
132
notify,
133
notifyAll,
134
toString,
135
wait,
136
wait,
137
wait</CODE></TD>
138
</TR>
139
</TABLE>
140
&nbsp;
141
<P>
142
143
<!-- ============ FIELD DETAIL =========== -->
144
145
146
<!-- ========= CONSTRUCTOR DETAIL ======== -->
147
148
<A NAME="constructor_detail"><!-- --></A>
149
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
150
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
151
<TD COLSPAN=1><FONT SIZE="+2">
152
<B>Constructor Detail</B></FONT></TD>
153
</TR>
154
</TABLE>
155
156
<A NAME="DBSAXWriter(java.lang.String, java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
157
DBSAXWriter</H3>
158
<PRE>
159
public <B>DBSAXWriter</B>(java.lang.String&nbsp;filename,
160
                   java.lang.String&nbsp;user,
161
                   java.lang.String&nbsp;password,
162
                   java.lang.String&nbsp;dbstring)
163
            throws java.io.IOException,
164
                   java.sql.SQLException,
165
                   java.lang.ClassNotFoundException</PRE>
166
<DL>
167
<DD>construct a new instance of the class to write an XML file to the database<DD><DL>
168
<DT><B>Parameters:</B><DD><CODE>filename</CODE> - the filename to be loaded into the database<DD><CODE>user</CODE> - the username to use for the database connection<DD><CODE>password</CODE> - the password to use for the database connection<DD><CODE>dbstring</CODE> - the connection info to use for the database connection</DL>
169
</DD>
170
</DL>
171
172
<!-- ============ METHOD DETAIL ========== -->
173
174
<A NAME="method_detail"><!-- --></A>
175
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
176
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
177
<TD COLSPAN=1><FONT SIZE="+2">
178
<B>Method Detail</B></FONT></TD>
179
</TR>
180
</TABLE>
181
182
<A NAME="main(java.lang.String[])"><!-- --></A><H3>
183
main</H3>
184
<PRE>
185
public static void <B>main</B>(java.lang.String[]&nbsp;args)</PRE>
186
<DL>
187
<DD>the main routine used to test the DBSAXWriter utility.
188
189
 Usage: java DBSAXWriter <filename> <user> <password> [dbstring]<DD><DL>
190
<DT><B>Parameters:</B><DD><CODE>filename</CODE> - the filename to be loaded into the database<DD><CODE>user</CODE> - the username to use for the database connection<DD><CODE>password</CODE> - the password to use for the database connection<DD><CODE>dbstring</CODE> - the connection info to use for the database connection</DL>
191
</DD>
192
</DL>
193
<HR>
194
195
<A NAME="fileToURL(java.io.File)"><!-- --></A><H3>
196
fileToURL</H3>
197
<PRE>
198
public static java.net.URL <B>fileToURL</B>(java.io.File&nbsp;file)</PRE>
199
<DL>
200
<DD>Utility method to convert a file handle into a URL</DL>
201
<!-- ========= END OF CLASS DATA ========= -->
202
<HR>
203
204
<!-- ========== START OF NAVBAR ========== -->
205
<A NAME="navbar_bottom"><!-- --></A>
206
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
207
<TR>
208
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
209
<A NAME="navbar_bottom_firstrow"><!-- --></A>
210
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
211
  <TR ALIGN="center" VALIGN="top">
212
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
213
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="overview-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
214
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
215
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
216
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
217
  </TR>
218
</TABLE>
219
</TD>
220
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
221
</EM>
222
</TD>
223
</TR>
224
225
<TR>
226
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
227
&nbsp;<A HREF="DBSAXHandler.html"><B>PREV CLASS</B></A>&nbsp;
228
&nbsp;<A HREF="DBSimpleQuery.html"><B>NEXT CLASS</B></A></FONT></TD>
229
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
230
  <A HREF="index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
231
&nbsp;<A HREF="DBSAXWriter.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
232
</TR>
233
<TR>
234
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
235
  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
236
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
237
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
238
</TR>
239
</TABLE>
240
<!-- =========== END OF NAVBAR =========== -->
241
242
<HR>
243
244
</BODY>
245
</HTML>