Original 2.4. With additional eclipse .project/classpath and git ignore
[marc4j.git] / apidoc / org / marc4j / MarcXmlReader.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\r
2 <!--NewPage-->\r
3 <HTML>\r
4 <HEAD>\r
5 <!-- Generated by javadoc (build 1.5.0_06) on Fri Oct 17 16:04:52 EDT 2008 -->\r
6 <TITLE>\r
7 MarcXmlReader (MARC4J API)\r
8 </TITLE>\r
9 \r
10 <META NAME="keywords" CONTENT="org.marc4j.MarcXmlReader class">\r
11 \r
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">\r
13 \r
14 <SCRIPT type="text/javascript">\r
15 function windowTitle()\r
16 {\r
17     parent.document.title="MarcXmlReader (MARC4J API)";\r
18 }\r
19 </SCRIPT>\r
20 <NOSCRIPT>\r
21 </NOSCRIPT>\r
22 \r
23 </HEAD>\r
24 \r
25 <BODY BGCOLOR="white" onload="windowTitle();">\r
26 \r
27 \r
28 <!-- ========= START OF TOP NAVBAR ======= -->\r
29 <A NAME="navbar_top"><!-- --></A>\r
30 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>\r
31 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">\r
32 <TR>\r
33 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">\r
34 <A NAME="navbar_top_firstrow"><!-- --></A>\r
35 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">\r
36   <TR ALIGN="center" VALIGN="top">\r
37   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>\r
38   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>\r
39   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>\r
40   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/MarcXmlReader.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>\r
41   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>\r
42   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>\r
43   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>\r
44   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>\r
45   </TR>\r
46 </TABLE>\r
47 </TD>\r
48 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>\r
49 </EM>\r
50 </TD>\r
51 </TR>\r
52 \r
53 <TR>\r
54 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">\r
55 &nbsp;<A HREF="../../org/marc4j/MarcXmlParserThread.html" title="class in org.marc4j"><B>PREV CLASS</B></A>&nbsp;\r
56 &nbsp;<A HREF="../../org/marc4j/MarcXmlWriter.html" title="class in org.marc4j"><B>NEXT CLASS</B></A></FONT></TD>\r
57 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">\r
58   <A HREF="../../index.html?org/marc4j/MarcXmlReader.html" target="_top"><B>FRAMES</B></A>  &nbsp;\r
59 &nbsp;<A HREF="MarcXmlReader.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;\r
60 &nbsp;<SCRIPT type="text/javascript">\r
61   <!--\r
62   if(window==top) {\r
63     document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');\r
64   }\r
65   //-->\r
66 </SCRIPT>\r
67 <NOSCRIPT>\r
68   <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>\r
69 </NOSCRIPT>\r
70 \r
71 \r
72 </FONT></TD>\r
73 </TR>\r
74 <TR>\r
75 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">\r
76   SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>\r
77 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">\r
78 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>\r
79 </TR>\r
80 </TABLE>\r
81 <A NAME="skip-navbar_top"></A>\r
82 <!-- ========= END OF TOP NAVBAR ========= -->\r
83 \r
84 <HR>\r
85 <!-- ======== START OF CLASS DATA ======== -->\r
86 <H2>\r
87 <FONT SIZE="-1">\r
88 org.marc4j</FONT>\r
89 <BR>\r
90 Class MarcXmlReader</H2>\r
91 <PRE>\r
92 <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</A>\r
93   <IMG SRC="../../resources/inherit.gif" ALT="extended by "><B>org.marc4j.MarcXmlReader</B>\r
94 </PRE>\r
95 <DL>\r
96 <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../org/marc4j/MarcReader.html" title="interface in org.marc4j">MarcReader</A></DD>\r
97 </DL>\r
98 <HR>\r
99 <DL>\r
100 <DT><PRE>public class <B>MarcXmlReader</B><DT>extends <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A><DT>implements <A HREF="../../org/marc4j/MarcReader.html" title="interface in org.marc4j">MarcReader</A></DL>\r
101 </PRE>\r
102 \r
103 <P>\r
104 An iterator over a collection of MARC records in MARCXML format.
105  <p>
106  Basic usage:
107  </p>
108  
109  <pre>
110  InputStream input = new FileInputStream(&quot;file.xml&quot;);
111  MarcReader reader = new MarcXmlReader(input);
112  while (reader.hasNext()) {
113    Record record = reader.next();
114    // Process record
115  }
116  </pre>
117  
118  <p>Check the <A HREF="../../org/marc4j/marc/package-summary.html"><CODE>org.marc4j.marc</CODE></A>&nbsp;package for examples about the use of 
119  the <A HREF="../../org/marc4j/marc/Record.html" title="interface in org.marc4j.marc"><CODE>Record</CODE></A>&nbsp;object model.</p>
120
121  <p>
122  You can also pre-process the source to create MARC XML from a different format
123  using an XSLT stylesheet. The following example creates an iterator over a
124  collection of MARC records in MARC XML format from a MODS source and outputs
125  MARC records in MARC21 format:
126  </p>
127  
128  <pre>
129  InputStream in = new FileInputStream(&quot;modsfile.xml&quot;);
130  
131  MarcStreamWriter writer = new MarcStreamWriter(System.out, Constants.MARC8);
132  MarcXmlReader reader = new MarcXmlReader(in, &quot;http://www.loc.gov/standards/marcxml/xslt/MODS2MARC21slim.xsl&quot;);
133  while (reader.hasNext()) {
134    Record record = reader.next();
135    writer.write(record);
136  }
137  writer.close();
138  </pre>\r
139 <P>\r
140 \r
141 <P>\r
142 <DL>\r
143 <DT><B>Version:</B></DT>\r
144   <DD>$Revision: 1.4 $</DD>\r
145 <DT><B>Author:</B></DT>\r
146   <DD>Bas Peters</DD>\r
147 </DL>\r
148 <HR>\r
149 \r
150 <P>\r
151 \r
152 <!-- ======== CONSTRUCTOR SUMMARY ======== -->\r
153 \r
154 <A NAME="constructor_summary"><!-- --></A>\r
155 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
156 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">\r
157 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">\r
158 <B>Constructor Summary</B></FONT></TH>\r
159 </TR>\r
160 <TR BGCOLOR="white" CLASS="TableRowColor">\r
161 <TD><CODE><B><A HREF="../../org/marc4j/MarcXmlReader.html#MarcXmlReader(org.xml.sax.InputSource)">MarcXmlReader</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/org/xml/sax/InputSource.html" title="class or interface in org.xml.sax">InputSource</A>&nbsp;input)</CODE>\r
162 \r
163 <BR>\r
164 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an instance with the specified input source.</TD>\r
165 </TR>\r
166 <TR BGCOLOR="white" CLASS="TableRowColor">\r
167 <TD><CODE><B><A HREF="../../org/marc4j/MarcXmlReader.html#MarcXmlReader(org.xml.sax.InputSource, javax.xml.transform.Source)">MarcXmlReader</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/org/xml/sax/InputSource.html" title="class or interface in org.xml.sax">InputSource</A>&nbsp;input,\r
168               <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/transform/Source.html" title="class or interface in javax.xml.transform">Source</A>&nbsp;stylesheet)</CODE>\r
169 \r
170 <BR>\r
171 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an instance with the specified input source and stylesheet
172  source.</TD>\r
173 </TR>\r
174 <TR BGCOLOR="white" CLASS="TableRowColor">\r
175 <TD><CODE><B><A HREF="../../org/marc4j/MarcXmlReader.html#MarcXmlReader(org.xml.sax.InputSource, javax.xml.transform.sax.TransformerHandler)">MarcXmlReader</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/org/xml/sax/InputSource.html" title="class or interface in org.xml.sax">InputSource</A>&nbsp;input,\r
176               <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/transform/sax/TransformerHandler.html" title="class or interface in javax.xml.transform.sax">TransformerHandler</A>&nbsp;th)</CODE>\r
177 \r
178 <BR>\r
179 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an instance with the specified input source and transformer
180  handler.</TD>\r
181 </TR>\r
182 <TR BGCOLOR="white" CLASS="TableRowColor">\r
183 <TD><CODE><B><A HREF="../../org/marc4j/MarcXmlReader.html#MarcXmlReader(java.io.InputStream)">MarcXmlReader</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/InputStream.html" title="class or interface in java.io">InputStream</A>&nbsp;input)</CODE>\r
184 \r
185 <BR>\r
186 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an instance with the specified input stream.</TD>\r
187 </TR>\r
188 <TR BGCOLOR="white" CLASS="TableRowColor">\r
189 <TD><CODE><B><A HREF="../../org/marc4j/MarcXmlReader.html#MarcXmlReader(java.io.InputStream, javax.xml.transform.Source)">MarcXmlReader</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/InputStream.html" title="class or interface in java.io">InputStream</A>&nbsp;input,\r
190               <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/transform/Source.html" title="class or interface in javax.xml.transform">Source</A>&nbsp;stylesheet)</CODE>\r
191 \r
192 <BR>\r
193 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an instance with the specified input stream and stylesheet
194  source.</TD>\r
195 </TR>\r
196 <TR BGCOLOR="white" CLASS="TableRowColor">\r
197 <TD><CODE><B><A HREF="../../org/marc4j/MarcXmlReader.html#MarcXmlReader(java.io.InputStream, java.lang.String)">MarcXmlReader</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/InputStream.html" title="class or interface in java.io">InputStream</A>&nbsp;input,\r
198               <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;stylesheetUrl)</CODE>\r
199 \r
200 <BR>\r
201 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an instance with the specified input stream and stylesheet
202  location.</TD>\r
203 </TR>\r
204 <TR BGCOLOR="white" CLASS="TableRowColor">\r
205 <TD><CODE><B><A HREF="../../org/marc4j/MarcXmlReader.html#MarcXmlReader(java.io.InputStream, javax.xml.transform.sax.TransformerHandler)">MarcXmlReader</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/InputStream.html" title="class or interface in java.io">InputStream</A>&nbsp;input,\r
206               <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/transform/sax/TransformerHandler.html" title="class or interface in javax.xml.transform.sax">TransformerHandler</A>&nbsp;th)</CODE>\r
207 \r
208 <BR>\r
209 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an instance with the specified input stream and transformer
210  handler.</TD>\r
211 </TR>\r
212 </TABLE>\r
213 &nbsp;\r
214 <!-- ========== METHOD SUMMARY =========== -->\r
215 \r
216 <A NAME="method_summary"><!-- --></A>\r
217 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
218 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">\r
219 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">\r
220 <B>Method Summary</B></FONT></TH>\r
221 </TR>\r
222 <TR BGCOLOR="white" CLASS="TableRowColor">\r
223 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
224 <CODE>&nbsp;boolean</CODE></FONT></TD>\r
225 <TD><CODE><B><A HREF="../../org/marc4j/MarcXmlReader.html#hasNext()">hasNext</A></B>()</CODE>\r
226 \r
227 <BR>\r
228 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the iteration has more records, false otherwise.</TD>\r
229 </TR>\r
230 <TR BGCOLOR="white" CLASS="TableRowColor">\r
231 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
232 <CODE>&nbsp;<A HREF="../../org/marc4j/marc/Record.html" title="interface in org.marc4j.marc">Record</A></CODE></FONT></TD>\r
233 <TD><CODE><B><A HREF="../../org/marc4j/MarcXmlReader.html#next()">next</A></B>()</CODE>\r
234 \r
235 <BR>\r
236 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the next record in the iteration.</TD>\r
237 </TR>\r
238 </TABLE>\r
239 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>\r
240 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
241 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">\r
242 <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TH>\r
243 </TR>\r
244 <TR BGCOLOR="white" CLASS="TableRowColor">\r
245 <TD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>\r
246 </TR>\r
247 </TABLE>\r
248 &nbsp;\r
249 <P>\r
250 \r
251 <!-- ========= CONSTRUCTOR DETAIL ======== -->\r
252 \r
253 <A NAME="constructor_detail"><!-- --></A>\r
254 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
255 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">\r
256 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">\r
257 <B>Constructor Detail</B></FONT></TH>\r
258 </TR>\r
259 </TABLE>\r
260 \r
261 <A NAME="MarcXmlReader(java.io.InputStream)"><!-- --></A><H3>\r
262 MarcXmlReader</H3>\r
263 <PRE>\r
264 public <B>MarcXmlReader</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/InputStream.html" title="class or interface in java.io">InputStream</A>&nbsp;input)</PRE>\r
265 <DL>\r
266 <DD>Constructs an instance with the specified input stream.\r
267 <P>\r
268 <DL>\r
269 <DT><B>Parameters:</B><DD><CODE>input</CODE> - the input stream</DL>\r
270 </DL>\r
271 <HR>\r
272 \r
273 <A NAME="MarcXmlReader(org.xml.sax.InputSource)"><!-- --></A><H3>\r
274 MarcXmlReader</H3>\r
275 <PRE>\r
276 public <B>MarcXmlReader</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/org/xml/sax/InputSource.html" title="class or interface in org.xml.sax">InputSource</A>&nbsp;input)</PRE>\r
277 <DL>\r
278 <DD>Constructs an instance with the specified input source.\r
279 <P>\r
280 <DL>\r
281 <DT><B>Parameters:</B><DD><CODE>input</CODE> - the input source</DL>\r
282 </DL>\r
283 <HR>\r
284 \r
285 <A NAME="MarcXmlReader(java.io.InputStream, java.lang.String)"><!-- --></A><H3>\r
286 MarcXmlReader</H3>\r
287 <PRE>\r
288 public <B>MarcXmlReader</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/InputStream.html" title="class or interface in java.io">InputStream</A>&nbsp;input,\r
289                      <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;stylesheetUrl)</PRE>\r
290 <DL>\r
291 <DD>Constructs an instance with the specified input stream and stylesheet
292  location.
293  
294  The stylesheet is used to transform the source file and should produce
295  valid MARC XML records. The result is then used to create
296  <code>Record</code> objects.\r
297 <P>\r
298 <DL>\r
299 <DT><B>Parameters:</B><DD><CODE>input</CODE> - the input stream<DD><CODE>stylesheetUrl</CODE> - the stylesheet location</DL>\r
300 </DL>\r
301 <HR>\r
302 \r
303 <A NAME="MarcXmlReader(java.io.InputStream, javax.xml.transform.Source)"><!-- --></A><H3>\r
304 MarcXmlReader</H3>\r
305 <PRE>\r
306 public <B>MarcXmlReader</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/InputStream.html" title="class or interface in java.io">InputStream</A>&nbsp;input,\r
307                      <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/transform/Source.html" title="class or interface in javax.xml.transform">Source</A>&nbsp;stylesheet)</PRE>\r
308 <DL>\r
309 <DD>Constructs an instance with the specified input stream and stylesheet
310  source.
311  
312  The stylesheet is used to transform the source file and should produce
313  valid MARCXML records. The result is then used to create
314  <code>Record</code> objects.\r
315 <P>\r
316 <DL>\r
317 <DT><B>Parameters:</B><DD><CODE>input</CODE> - the input stream<DD><CODE>stylesheet</CODE> - the stylesheet source</DL>\r
318 </DL>\r
319 <HR>\r
320 \r
321 <A NAME="MarcXmlReader(org.xml.sax.InputSource, javax.xml.transform.Source)"><!-- --></A><H3>\r
322 MarcXmlReader</H3>\r
323 <PRE>\r
324 public <B>MarcXmlReader</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/org/xml/sax/InputSource.html" title="class or interface in org.xml.sax">InputSource</A>&nbsp;input,\r
325                      <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/transform/Source.html" title="class or interface in javax.xml.transform">Source</A>&nbsp;stylesheet)</PRE>\r
326 <DL>\r
327 <DD>Constructs an instance with the specified input source and stylesheet
328  source.
329  
330  The stylesheet is used to transform the source file and should produce
331  valid MARCXML records. The result is then used to create
332  <code>Record</code> objects.\r
333 <P>\r
334 <DL>\r
335 <DT><B>Parameters:</B><DD><CODE>input</CODE> - the input source<DD><CODE>stylesheet</CODE> - the stylesheet source</DL>\r
336 </DL>\r
337 <HR>\r
338 \r
339 <A NAME="MarcXmlReader(java.io.InputStream, javax.xml.transform.sax.TransformerHandler)"><!-- --></A><H3>\r
340 MarcXmlReader</H3>\r
341 <PRE>\r
342 public <B>MarcXmlReader</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/InputStream.html" title="class or interface in java.io">InputStream</A>&nbsp;input,\r
343                      <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/transform/sax/TransformerHandler.html" title="class or interface in javax.xml.transform.sax">TransformerHandler</A>&nbsp;th)</PRE>\r
344 <DL>\r
345 <DD>Constructs an instance with the specified input stream and transformer
346  handler.
347  
348  The <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/transform/sax/TransformerHandler.html" title="class or interface in javax.xml.transform.sax"><CODE>TransformerHandler</CODE></A>&nbsp;is used to
349  transform the source file and should produce valid MARCXML records. The
350  result is then used to create <code>Record</code> objects. A
351  <code>TransformerHandler</code> can be obtained from a
352  <code>SAXTransformerFactory</code> with either a
353  <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/transform/Source.html" title="class or interface in javax.xml.transform"><CODE>Source</CODE></A>&nbsp;or
354  <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/transform/Templates.html" title="class or interface in javax.xml.transform"><CODE>Templates</CODE></A>&nbsp;object.\r
355 <P>\r
356 <DL>\r
357 <DT><B>Parameters:</B><DD><CODE>input</CODE> - the input stream<DD><CODE>th</CODE> - the transformation content handler</DL>\r
358 </DL>\r
359 <HR>\r
360 \r
361 <A NAME="MarcXmlReader(org.xml.sax.InputSource, javax.xml.transform.sax.TransformerHandler)"><!-- --></A><H3>\r
362 MarcXmlReader</H3>\r
363 <PRE>\r
364 public <B>MarcXmlReader</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/org/xml/sax/InputSource.html" title="class or interface in org.xml.sax">InputSource</A>&nbsp;input,\r
365                      <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/transform/sax/TransformerHandler.html" title="class or interface in javax.xml.transform.sax">TransformerHandler</A>&nbsp;th)</PRE>\r
366 <DL>\r
367 <DD>Constructs an instance with the specified input source and transformer
368  handler.
369  
370  The <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/transform/sax/TransformerHandler.html" title="class or interface in javax.xml.transform.sax"><CODE>TransformerHandler</CODE></A>&nbsp;is used to
371  transform the source file and should produce valid MARCXML records. The
372  result is then used to create <code>Record</code> objects. A
373  <code>TransformerHandler</code> can be obtained from a
374  <code>SAXTransformerFactory</code> with either a
375  <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/transform/Source.html" title="class or interface in javax.xml.transform"><CODE>Source</CODE></A>&nbsp;or
376  <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/transform/Templates.html" title="class or interface in javax.xml.transform"><CODE>Templates</CODE></A>&nbsp;object.\r
377 <P>\r
378 <DL>\r
379 <DT><B>Parameters:</B><DD><CODE>input</CODE> - the input source<DD><CODE>th</CODE> - the transformation content handler</DL>\r
380 </DL>\r
381 \r
382 <!-- ============ METHOD DETAIL ========== -->\r
383 \r
384 <A NAME="method_detail"><!-- --></A>\r
385 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
386 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">\r
387 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">\r
388 <B>Method Detail</B></FONT></TH>\r
389 </TR>\r
390 </TABLE>\r
391 \r
392 <A NAME="hasNext()"><!-- --></A><H3>\r
393 hasNext</H3>\r
394 <PRE>\r
395 public boolean <B>hasNext</B>()</PRE>\r
396 <DL>\r
397 <DD>Returns true if the iteration has more records, false otherwise.\r
398 <P>\r
399 <DD><DL>\r
400 <DT><B>Specified by:</B><DD><CODE><A HREF="../../org/marc4j/MarcReader.html#hasNext()">hasNext</A></CODE> in interface <CODE><A HREF="../../org/marc4j/MarcReader.html" title="interface in org.marc4j">MarcReader</A></CODE></DL>\r
401 </DD>\r
402 <DD><DL>\r
403 \r
404 <DT><B>Returns:</B><DD>boolean - true if the iteration has more records, false otherwise</DL>\r
405 </DD>\r
406 </DL>\r
407 <HR>\r
408 \r
409 <A NAME="next()"><!-- --></A><H3>\r
410 next</H3>\r
411 <PRE>\r
412 public <A HREF="../../org/marc4j/marc/Record.html" title="interface in org.marc4j.marc">Record</A> <B>next</B>()</PRE>\r
413 <DL>\r
414 <DD>Returns the next record in the iteration.\r
415 <P>\r
416 <DD><DL>\r
417 <DT><B>Specified by:</B><DD><CODE><A HREF="../../org/marc4j/MarcReader.html#next()">next</A></CODE> in interface <CODE><A HREF="../../org/marc4j/MarcReader.html" title="interface in org.marc4j">MarcReader</A></CODE></DL>\r
418 </DD>\r
419 <DD><DL>\r
420 \r
421 <DT><B>Returns:</B><DD>Record - the record object</DL>\r
422 </DD>\r
423 </DL>\r
424 <!-- ========= END OF CLASS DATA ========= -->\r
425 <HR>\r
426 \r
427 \r
428 <!-- ======= START OF BOTTOM NAVBAR ====== -->\r
429 <A NAME="navbar_bottom"><!-- --></A>\r
430 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>\r
431 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">\r
432 <TR>\r
433 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">\r
434 <A NAME="navbar_bottom_firstrow"><!-- --></A>\r
435 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">\r
436   <TR ALIGN="center" VALIGN="top">\r
437   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>\r
438   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>\r
439   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>\r
440   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/MarcXmlReader.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>\r
441   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>\r
442   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>\r
443   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>\r
444   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>\r
445   </TR>\r
446 </TABLE>\r
447 </TD>\r
448 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>\r
449 </EM>\r
450 </TD>\r
451 </TR>\r
452 \r
453 <TR>\r
454 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">\r
455 &nbsp;<A HREF="../../org/marc4j/MarcXmlParserThread.html" title="class in org.marc4j"><B>PREV CLASS</B></A>&nbsp;\r
456 &nbsp;<A HREF="../../org/marc4j/MarcXmlWriter.html" title="class in org.marc4j"><B>NEXT CLASS</B></A></FONT></TD>\r
457 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">\r
458   <A HREF="../../index.html?org/marc4j/MarcXmlReader.html" target="_top"><B>FRAMES</B></A>  &nbsp;\r
459 &nbsp;<A HREF="MarcXmlReader.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;\r
460 &nbsp;<SCRIPT type="text/javascript">\r
461   <!--\r
462   if(window==top) {\r
463     document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');\r
464   }\r
465   //-->\r
466 </SCRIPT>\r
467 <NOSCRIPT>\r
468   <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>\r
469 </NOSCRIPT>\r
470 \r
471 \r
472 </FONT></TD>\r
473 </TR>\r
474 <TR>\r
475 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">\r
476   SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>\r
477 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">\r
478 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>\r
479 </TR>\r
480 </TABLE>\r
481 <A NAME="skip-navbar_bottom"></A>\r
482 <!-- ======== END OF BOTTOM NAVBAR ======= -->\r
483 \r
484 <HR>\r
485 Copyright © 2002-2006 Bas Peters. All Rights Reserved.\r
486 </BODY>\r
487 </HTML>\r