Use field variable with qualified field name. FIX namespace!
[marc4j.git] / apidoc / org / marc4j / MarcXmlWriter.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 MarcXmlWriter (MARC4J API)\r
8 </TITLE>\r
9 \r
10 <META NAME="keywords" CONTENT="org.marc4j.MarcXmlWriter 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="MarcXmlWriter (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/MarcXmlWriter.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/MarcXmlReader.html" title="class in org.marc4j"><B>PREV CLASS</B></A>&nbsp;\r
56 &nbsp;<A HREF="../../org/marc4j/RecordStack.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/MarcXmlWriter.html" target="_top"><B>FRAMES</B></A>  &nbsp;\r
59 &nbsp;<A HREF="MarcXmlWriter.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;<A HREF="#field_summary">FIELD</A>&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;<A HREF="#field_detail">FIELD</A>&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 MarcXmlWriter</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.MarcXmlWriter</B>\r
94 </PRE>\r
95 <DL>\r
96 <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../org/marc4j/MarcWriter.html" title="interface in org.marc4j">MarcWriter</A></DD>\r
97 </DL>\r
98 <HR>\r
99 <DL>\r
100 <DT><PRE>public class <B>MarcXmlWriter</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/MarcWriter.html" title="interface in org.marc4j">MarcWriter</A></DL>\r
101 </PRE>\r
102 \r
103 <P>\r
104 Class for writing MARC record objects in MARCXML format. This class outputs a
105  SAX event stream to the given <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/OutputStream.html" title="class or interface in java.io"><CODE>OutputStream</CODE></A>&nbsp; or
106  <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/transform/Result.html" title="class or interface in javax.xml.transform"><CODE>Result</CODE></A>&nbsp;object. It can be used in a SAX
107  pipeline to postprocess the result. By default this class uses a nulll
108  transform. It is strongly recommended to use a dedicated XML serializer.
109  
110  <p>
111  This class requires a JAXP compliant XML parser and XSLT processor. The
112  underlying SAX2 parser should be namespace aware. In addition this class
113  requires <a href="http://icu.sourceforge.net/">ICU4J </a> to perform Unicode
114  normalization. A stripped down version of 2.6 originating from the <a
115  href="http://www.cafeconleche.org/XOM/">XOM </a> project is included in this
116  distribution.
117  </p>
118  <p>
119  The following example reads a file with MARC records and writes MARCXML
120  records in UTF-8 encoding to the console:
121  </p>
122  
123  <pre>
124   
125       InputStream input = new FileInputStream(&quot;input.mrc&quot;)
126       MarcReader reader = new MarcStreamReader(input);
127               
128       MarcWriter writer = new MarcXmlWriter(System.out, true);
129       while (reader.hasNext()) {
130           Record record = reader.next();
131           writer.write(record);
132       }
133       writer.close();
134    
135  </pre>
136  
137  <p>
138  To perform a character conversion like MARC-8 to UCS/Unicode register a
139  <code>CharConverter</code>:
140  </p>
141  
142  <pre>
143  writer.setConverter(new AnselToUnicode());
144  </pre>
145  
146  <p>
147  In addition you can perform Unicode normalization. This is for example not
148  done by the MARC-8 to UCS/Unicode converter. With Unicode normalization text
149  is transformed into the canonical composed form. For example &quot;a´bc&quot;
150  is normalized to &quot;ábc&quot;. To perform normalization set Unicode
151  normalization to true:
152  </p>
153  
154  <pre>
155  writer.setUnicodeNormalization(true);
156  </pre>
157  
158  <p>
159  Please note that it's not garanteed to work if you try to convert normalized
160  Unicode back to MARC-8 encoding using
161  <A HREF="../../org/marc4j/converter/impl/UnicodeToAnsel.html" title="class in org.marc4j.converter.impl"><CODE>UnicodeToAnsel</CODE></A>.
162  </p>
163  <p>
164  This class provides very basic formatting options. For more advanced options
165  create an instance of this class with a
166  <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/transform/sax/SAXResult.html" title="class or interface in javax.xml.transform.sax"><CODE>SAXResult</CODE></A>&nbsp;containing a
167  <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/org/xml/sax/ContentHandler.html" title="class or interface in org.xml.sax"><CODE>ContentHandler</CODE></A>&nbsp;derived from a dedicated XML
168  serializer.
169  </p>
170  
171  <p>
172  The following example uses
173  <code>org.apache.xml.serialize.XMLSerializer</code> to write MARC records
174  to XML using MARC-8 to UCS/Unicode conversion and Unicode normalization:
175  </p>
176  
177  <pre>
178   
179       InputStream input = new FileInputStream(&quot;input.mrc&quot;)
180       MarcReader reader = new MarcStreamReader(input);
181                 
182       OutputFormat format = new OutputFormat(&quot;xml&quot;,&quot;UTF-8&quot;, true);
183       OutputStream out = new FileOutputStream(&quot;output.xml&quot;);
184       XMLSerializer serializer = new XMLSerializer(out, format);
185       Result result = new SAXResult(serializer.asContentHandler());
186                 
187       MarcXmlWriter writer = new MarcXmlWriter(result);
188       writer.setConverter(new AnselToUnicode());
189       while (reader.hasNext()) {
190           Record record = reader.next();
191           writer.write(record);
192       }
193       writer.close();
194    
195  </pre>
196  
197  <p>
198  You can post-process the result using a <code>Source</code> object pointing
199  to a stylesheet resource and a <code>Result</code> object to hold the
200  transformation result tree. The example below converts MARC to MARCXML and
201  transforms the result tree to MODS using the stylesheet provided by The
202  Library of Congress:
203  </p>
204  
205  <pre>
206   
207       String stylesheetUrl = &quot;http://www.loc.gov/standards/mods/v3/MARC21slim2MODS3.xsl&quot;;
208       Source stylesheet = new StreamSource(stylesheetUrl);
209          
210       Result result = new StreamResult(System.out);
211             
212       InputStream input = new FileInputStream(&quot;input.mrc&quot;)
213       MarcReader reader = new MarcStreamReader(input);
214       MarcXmlWriter writer = new MarcXmlWriter(result, stylesheet);
215       writer.setConverter(new AnselToUnicode());
216       while (reader.hasNext()) {
217           Record record = (Record) reader.next();
218           writer.write(record);
219       }
220       writer.close();
221    
222  </pre>
223  
224  <p>
225  It is also possible to write the result into a DOM Node:
226  </p>
227  
228  <pre>
229   
230       InputStream input = new FileInputStream(&quot;input.mrc&quot;)
231       MarcReader reader = new MarcStreamReader(input);
232       DOMResult result = new DOMResult();
233       MarcXmlWriter writer = new MarcXmlWriter(result);
234       writer.setConverter(new AnselToUnicode());
235       while (reader.hasNext()) {
236           Record record = (Record) reader.next();
237           writer.write(record);
238       }
239       writer.close();
240          
241       Document doc = (Document) result.getNode();
242    
243  </pre>\r
244 <P>\r
245 \r
246 <P>\r
247 <DL>\r
248 <DT><B>Version:</B></DT>\r
249   <DD>$Revision: 1.9 $</DD>\r
250 <DT><B>Author:</B></DT>\r
251   <DD>Bas Peters</DD>\r
252 </DL>\r
253 <HR>\r
254 \r
255 <P>\r
256 <!-- =========== FIELD SUMMARY =========== -->\r
257 \r
258 <A NAME="field_summary"><!-- --></A>\r
259 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
260 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">\r
261 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">\r
262 <B>Field Summary</B></FONT></TH>\r
263 </TR>\r
264 <TR BGCOLOR="white" CLASS="TableRowColor">\r
265 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
266 <CODE>protected static&nbsp;<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></CODE></FONT></TD>\r
267 <TD><CODE><B><A HREF="../../org/marc4j/MarcXmlWriter.html#COLLECTION">COLLECTION</A></B></CODE>\r
268 \r
269 <BR>\r
270 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>\r
271 </TR>\r
272 <TR BGCOLOR="white" CLASS="TableRowColor">\r
273 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
274 <CODE>protected static&nbsp;<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></CODE></FONT></TD>\r
275 <TD><CODE><B><A HREF="../../org/marc4j/MarcXmlWriter.html#CONTROL_FIELD">CONTROL_FIELD</A></B></CODE>\r
276 \r
277 <BR>\r
278 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>\r
279 </TR>\r
280 <TR BGCOLOR="white" CLASS="TableRowColor">\r
281 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
282 <CODE>protected static&nbsp;<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></CODE></FONT></TD>\r
283 <TD><CODE><B><A HREF="../../org/marc4j/MarcXmlWriter.html#DATA_FIELD">DATA_FIELD</A></B></CODE>\r
284 \r
285 <BR>\r
286 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>\r
287 </TR>\r
288 <TR BGCOLOR="white" CLASS="TableRowColor">\r
289 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
290 <CODE>protected static&nbsp;<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></CODE></FONT></TD>\r
291 <TD><CODE><B><A HREF="../../org/marc4j/MarcXmlWriter.html#LEADER">LEADER</A></B></CODE>\r
292 \r
293 <BR>\r
294 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>\r
295 </TR>\r
296 <TR BGCOLOR="white" CLASS="TableRowColor">\r
297 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
298 <CODE>protected static&nbsp;<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></CODE></FONT></TD>\r
299 <TD><CODE><B><A HREF="../../org/marc4j/MarcXmlWriter.html#RECORD">RECORD</A></B></CODE>\r
300 \r
301 <BR>\r
302 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>\r
303 </TR>\r
304 <TR BGCOLOR="white" CLASS="TableRowColor">\r
305 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
306 <CODE>protected static&nbsp;<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></CODE></FONT></TD>\r
307 <TD><CODE><B><A HREF="../../org/marc4j/MarcXmlWriter.html#SUBFIELD">SUBFIELD</A></B></CODE>\r
308 \r
309 <BR>\r
310 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>\r
311 </TR>\r
312 </TABLE>\r
313 &nbsp;\r
314 <!-- ======== CONSTRUCTOR SUMMARY ======== -->\r
315 \r
316 <A NAME="constructor_summary"><!-- --></A>\r
317 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
318 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">\r
319 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">\r
320 <B>Constructor Summary</B></FONT></TH>\r
321 </TR>\r
322 <TR BGCOLOR="white" CLASS="TableRowColor">\r
323 <TD><CODE><B><A HREF="../../org/marc4j/MarcXmlWriter.html#MarcXmlWriter(java.io.OutputStream)">MarcXmlWriter</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/OutputStream.html" title="class or interface in java.io">OutputStream</A>&nbsp;out)</CODE>\r
324 \r
325 <BR>\r
326 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an instance with the specified output stream.</TD>\r
327 </TR>\r
328 <TR BGCOLOR="white" CLASS="TableRowColor">\r
329 <TD><CODE><B><A HREF="../../org/marc4j/MarcXmlWriter.html#MarcXmlWriter(java.io.OutputStream, boolean)">MarcXmlWriter</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/OutputStream.html" title="class or interface in java.io">OutputStream</A>&nbsp;out,\r
330               boolean&nbsp;indent)</CODE>\r
331 \r
332 <BR>\r
333 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an instance with the specified output stream and indentation.</TD>\r
334 </TR>\r
335 <TR BGCOLOR="white" CLASS="TableRowColor">\r
336 <TD><CODE><B><A HREF="../../org/marc4j/MarcXmlWriter.html#MarcXmlWriter(java.io.OutputStream, java.lang.String)">MarcXmlWriter</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/OutputStream.html" title="class or interface in java.io">OutputStream</A>&nbsp;out,\r
337               <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;encoding)</CODE>\r
338 \r
339 <BR>\r
340 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an instance with the specified output stream and character
341  encoding.</TD>\r
342 </TR>\r
343 <TR BGCOLOR="white" CLASS="TableRowColor">\r
344 <TD><CODE><B><A HREF="../../org/marc4j/MarcXmlWriter.html#MarcXmlWriter(java.io.OutputStream, java.lang.String, boolean)">MarcXmlWriter</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/OutputStream.html" title="class or interface in java.io">OutputStream</A>&nbsp;out,\r
345               <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;encoding,\r
346               boolean&nbsp;indent)</CODE>\r
347 \r
348 <BR>\r
349 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an instance with the specified output stream, character
350  encoding and indentation.</TD>\r
351 </TR>\r
352 <TR BGCOLOR="white" CLASS="TableRowColor">\r
353 <TD><CODE><B><A HREF="../../org/marc4j/MarcXmlWriter.html#MarcXmlWriter(javax.xml.transform.Result)">MarcXmlWriter</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/transform/Result.html" title="class or interface in javax.xml.transform">Result</A>&nbsp;result)</CODE>\r
354 \r
355 <BR>\r
356 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an instance with the specified result.</TD>\r
357 </TR>\r
358 <TR BGCOLOR="white" CLASS="TableRowColor">\r
359 <TD><CODE><B><A HREF="../../org/marc4j/MarcXmlWriter.html#MarcXmlWriter(javax.xml.transform.Result, javax.xml.transform.Source)">MarcXmlWriter</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/transform/Result.html" title="class or interface in javax.xml.transform">Result</A>&nbsp;result,\r
360               <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
361 \r
362 <BR>\r
363 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an instance with the specified stylesheet source and result.</TD>\r
364 </TR>\r
365 <TR BGCOLOR="white" CLASS="TableRowColor">\r
366 <TD><CODE><B><A HREF="../../org/marc4j/MarcXmlWriter.html#MarcXmlWriter(javax.xml.transform.Result, java.lang.String)">MarcXmlWriter</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/transform/Result.html" title="class or interface in javax.xml.transform">Result</A>&nbsp;result,\r
367               <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
368 \r
369 <BR>\r
370 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an instance with the specified stylesheet location and result.</TD>\r
371 </TR>\r
372 </TABLE>\r
373 &nbsp;\r
374 <!-- ========== METHOD SUMMARY =========== -->\r
375 \r
376 <A NAME="method_summary"><!-- --></A>\r
377 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
378 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">\r
379 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">\r
380 <B>Method Summary</B></FONT></TH>\r
381 </TR>\r
382 <TR BGCOLOR="white" CLASS="TableRowColor">\r
383 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
384 <CODE>&nbsp;void</CODE></FONT></TD>\r
385 <TD><CODE><B><A HREF="../../org/marc4j/MarcXmlWriter.html#close()">close</A></B>()</CODE>\r
386 \r
387 <BR>\r
388 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Closes the writer.</TD>\r
389 </TR>\r
390 <TR BGCOLOR="white" CLASS="TableRowColor">\r
391 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
392 <CODE>&nbsp;<A HREF="../../org/marc4j/converter/CharConverter.html" title="class in org.marc4j.converter">CharConverter</A></CODE></FONT></TD>\r
393 <TD><CODE><B><A HREF="../../org/marc4j/MarcXmlWriter.html#getConverter()">getConverter</A></B>()</CODE>\r
394 \r
395 <BR>\r
396 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the character converter.</TD>\r
397 </TR>\r
398 <TR BGCOLOR="white" CLASS="TableRowColor">\r
399 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
400 <CODE>protected &nbsp;char[]</CODE></FONT></TD>\r
401 <TD><CODE><B><A HREF="../../org/marc4j/MarcXmlWriter.html#getDataElement(java.lang.String)">getDataElement</A></B>(<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;data)</CODE>\r
402 \r
403 <BR>\r
404 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>\r
405 </TR>\r
406 <TR BGCOLOR="white" CLASS="TableRowColor">\r
407 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
408 <CODE>&nbsp;boolean</CODE></FONT></TD>\r
409 <TD><CODE><B><A HREF="../../org/marc4j/MarcXmlWriter.html#getUnicodeNormalization()">getUnicodeNormalization</A></B>()</CODE>\r
410 \r
411 <BR>\r
412 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if this writer will perform Unicode normalization, false
413  otherwise.</TD>\r
414 </TR>\r
415 <TR BGCOLOR="white" CLASS="TableRowColor">\r
416 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
417 <CODE>&nbsp;boolean</CODE></FONT></TD>\r
418 <TD><CODE><B><A HREF="../../org/marc4j/MarcXmlWriter.html#hasIndent()">hasIndent</A></B>()</CODE>\r
419 \r
420 <BR>\r
421 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if indentation is active, false otherwise.</TD>\r
422 </TR>\r
423 <TR BGCOLOR="white" CLASS="TableRowColor">\r
424 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
425 <CODE>&nbsp;void</CODE></FONT></TD>\r
426 <TD><CODE><B><A HREF="../../org/marc4j/MarcXmlWriter.html#setConverter(org.marc4j.converter.CharConverter)">setConverter</A></B>(<A HREF="../../org/marc4j/converter/CharConverter.html" title="class in org.marc4j.converter">CharConverter</A>&nbsp;converter)</CODE>\r
427 \r
428 <BR>\r
429 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the character converter.</TD>\r
430 </TR>\r
431 <TR BGCOLOR="white" CLASS="TableRowColor">\r
432 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
433 <CODE>protected &nbsp;void</CODE></FONT></TD>\r
434 <TD><CODE><B><A HREF="../../org/marc4j/MarcXmlWriter.html#setHandler(javax.xml.transform.Result, javax.xml.transform.Source)">setHandler</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/transform/Result.html" title="class or interface in javax.xml.transform">Result</A>&nbsp;result,\r
435            <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
436 \r
437 <BR>\r
438 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>\r
439 </TR>\r
440 <TR BGCOLOR="white" CLASS="TableRowColor">\r
441 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
442 <CODE>&nbsp;void</CODE></FONT></TD>\r
443 <TD><CODE><B><A HREF="../../org/marc4j/MarcXmlWriter.html#setIndent(boolean)">setIndent</A></B>(boolean&nbsp;indent)</CODE>\r
444 \r
445 <BR>\r
446 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Activates or deactivates indentation.</TD>\r
447 </TR>\r
448 <TR BGCOLOR="white" CLASS="TableRowColor">\r
449 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
450 <CODE>&nbsp;void</CODE></FONT></TD>\r
451 <TD><CODE><B><A HREF="../../org/marc4j/MarcXmlWriter.html#setUnicodeNormalization(boolean)">setUnicodeNormalization</A></B>(boolean&nbsp;normalize)</CODE>\r
452 \r
453 <BR>\r
454 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If set to true this writer will perform Unicode normalization on data
455  elements using normalization form C (NFC).</TD>\r
456 </TR>\r
457 <TR BGCOLOR="white" CLASS="TableRowColor">\r
458 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
459 <CODE>protected &nbsp;void</CODE></FONT></TD>\r
460 <TD><CODE><B><A HREF="../../org/marc4j/MarcXmlWriter.html#toXml(org.marc4j.marc.Record)">toXml</A></B>(<A HREF="../../org/marc4j/marc/Record.html" title="interface in org.marc4j.marc">Record</A>&nbsp;record)</CODE>\r
461 \r
462 <BR>\r
463 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>\r
464 </TR>\r
465 <TR BGCOLOR="white" CLASS="TableRowColor">\r
466 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
467 <CODE>&nbsp;void</CODE></FONT></TD>\r
468 <TD><CODE><B><A HREF="../../org/marc4j/MarcXmlWriter.html#write(org.marc4j.marc.Record)">write</A></B>(<A HREF="../../org/marc4j/marc/Record.html" title="interface in org.marc4j.marc">Record</A>&nbsp;record)</CODE>\r
469 \r
470 <BR>\r
471 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes a Record object to the result.</TD>\r
472 </TR>\r
473 <TR BGCOLOR="white" CLASS="TableRowColor">\r
474 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
475 <CODE>protected &nbsp;void</CODE></FONT></TD>\r
476 <TD><CODE><B><A HREF="../../org/marc4j/MarcXmlWriter.html#writeEndDocument()">writeEndDocument</A></B>()</CODE>\r
477 \r
478 <BR>\r
479 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes the root end tag to the result.</TD>\r
480 </TR>\r
481 <TR BGCOLOR="white" CLASS="TableRowColor">\r
482 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">\r
483 <CODE>protected &nbsp;void</CODE></FONT></TD>\r
484 <TD><CODE><B><A HREF="../../org/marc4j/MarcXmlWriter.html#writeStartDocument()">writeStartDocument</A></B>()</CODE>\r
485 \r
486 <BR>\r
487 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes the root start tag to the result.</TD>\r
488 </TR>\r
489 </TABLE>\r
490 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>\r
491 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
492 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">\r
493 <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
494 </TR>\r
495 <TR BGCOLOR="white" CLASS="TableRowColor">\r
496 <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
497 </TR>\r
498 </TABLE>\r
499 &nbsp;\r
500 <P>\r
501 \r
502 <!-- ============ FIELD DETAIL =========== -->\r
503 \r
504 <A NAME="field_detail"><!-- --></A>\r
505 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
506 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">\r
507 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">\r
508 <B>Field Detail</B></FONT></TH>\r
509 </TR>\r
510 </TABLE>\r
511 \r
512 <A NAME="CONTROL_FIELD"><!-- --></A><H3>\r
513 CONTROL_FIELD</H3>\r
514 <PRE>\r
515 protected static final <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> <B>CONTROL_FIELD</B></PRE>\r
516 <DL>\r
517 <DL>\r
518 <DT><B>See Also:</B><DD><A HREF="../../constant-values.html#org.marc4j.MarcXmlWriter.CONTROL_FIELD">Constant Field Values</A></DL>\r
519 </DL>\r
520 <HR>\r
521 \r
522 <A NAME="DATA_FIELD"><!-- --></A><H3>\r
523 DATA_FIELD</H3>\r
524 <PRE>\r
525 protected static final <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> <B>DATA_FIELD</B></PRE>\r
526 <DL>\r
527 <DL>\r
528 <DT><B>See Also:</B><DD><A HREF="../../constant-values.html#org.marc4j.MarcXmlWriter.DATA_FIELD">Constant Field Values</A></DL>\r
529 </DL>\r
530 <HR>\r
531 \r
532 <A NAME="SUBFIELD"><!-- --></A><H3>\r
533 SUBFIELD</H3>\r
534 <PRE>\r
535 protected static final <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> <B>SUBFIELD</B></PRE>\r
536 <DL>\r
537 <DL>\r
538 <DT><B>See Also:</B><DD><A HREF="../../constant-values.html#org.marc4j.MarcXmlWriter.SUBFIELD">Constant Field Values</A></DL>\r
539 </DL>\r
540 <HR>\r
541 \r
542 <A NAME="COLLECTION"><!-- --></A><H3>\r
543 COLLECTION</H3>\r
544 <PRE>\r
545 protected static final <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> <B>COLLECTION</B></PRE>\r
546 <DL>\r
547 <DL>\r
548 <DT><B>See Also:</B><DD><A HREF="../../constant-values.html#org.marc4j.MarcXmlWriter.COLLECTION">Constant Field Values</A></DL>\r
549 </DL>\r
550 <HR>\r
551 \r
552 <A NAME="RECORD"><!-- --></A><H3>\r
553 RECORD</H3>\r
554 <PRE>\r
555 protected static final <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> <B>RECORD</B></PRE>\r
556 <DL>\r
557 <DL>\r
558 <DT><B>See Also:</B><DD><A HREF="../../constant-values.html#org.marc4j.MarcXmlWriter.RECORD">Constant Field Values</A></DL>\r
559 </DL>\r
560 <HR>\r
561 \r
562 <A NAME="LEADER"><!-- --></A><H3>\r
563 LEADER</H3>\r
564 <PRE>\r
565 protected static final <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> <B>LEADER</B></PRE>\r
566 <DL>\r
567 <DL>\r
568 <DT><B>See Also:</B><DD><A HREF="../../constant-values.html#org.marc4j.MarcXmlWriter.LEADER">Constant Field Values</A></DL>\r
569 </DL>\r
570 \r
571 <!-- ========= CONSTRUCTOR DETAIL ======== -->\r
572 \r
573 <A NAME="constructor_detail"><!-- --></A>\r
574 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
575 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">\r
576 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">\r
577 <B>Constructor Detail</B></FONT></TH>\r
578 </TR>\r
579 </TABLE>\r
580 \r
581 <A NAME="MarcXmlWriter(java.io.OutputStream)"><!-- --></A><H3>\r
582 MarcXmlWriter</H3>\r
583 <PRE>\r
584 public <B>MarcXmlWriter</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/OutputStream.html" title="class or interface in java.io">OutputStream</A>&nbsp;out)</PRE>\r
585 <DL>\r
586 <DD>Constructs an instance with the specified output stream.
587  
588  The default character encoding for UTF-8 is used.\r
589 <P>\r
590 <DL>\r
591 \r
592 <DT><B>Throws:</B>\r
593 <DD><CODE><A HREF="../../org/marc4j/MarcException.html" title="class in org.marc4j">MarcException</A></CODE></DL>\r
594 </DL>\r
595 <HR>\r
596 \r
597 <A NAME="MarcXmlWriter(java.io.OutputStream, boolean)"><!-- --></A><H3>\r
598 MarcXmlWriter</H3>\r
599 <PRE>\r
600 public <B>MarcXmlWriter</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/OutputStream.html" title="class or interface in java.io">OutputStream</A>&nbsp;out,\r
601                      boolean&nbsp;indent)</PRE>\r
602 <DL>\r
603 <DD>Constructs an instance with the specified output stream and indentation.
604  
605  The default character encoding for UTF-8 is used.\r
606 <P>\r
607 <DL>\r
608 \r
609 <DT><B>Throws:</B>\r
610 <DD><CODE><A HREF="../../org/marc4j/MarcException.html" title="class in org.marc4j">MarcException</A></CODE></DL>\r
611 </DL>\r
612 <HR>\r
613 \r
614 <A NAME="MarcXmlWriter(java.io.OutputStream, java.lang.String)"><!-- --></A><H3>\r
615 MarcXmlWriter</H3>\r
616 <PRE>\r
617 public <B>MarcXmlWriter</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/OutputStream.html" title="class or interface in java.io">OutputStream</A>&nbsp;out,\r
618                      <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;encoding)</PRE>\r
619 <DL>\r
620 <DD>Constructs an instance with the specified output stream and character
621  encoding.\r
622 <P>\r
623 <DL>\r
624 \r
625 <DT><B>Throws:</B>\r
626 <DD><CODE><A HREF="../../org/marc4j/MarcException.html" title="class in org.marc4j">MarcException</A></CODE></DL>\r
627 </DL>\r
628 <HR>\r
629 \r
630 <A NAME="MarcXmlWriter(java.io.OutputStream, java.lang.String, boolean)"><!-- --></A><H3>\r
631 MarcXmlWriter</H3>\r
632 <PRE>\r
633 public <B>MarcXmlWriter</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/OutputStream.html" title="class or interface in java.io">OutputStream</A>&nbsp;out,\r
634                      <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;encoding,\r
635                      boolean&nbsp;indent)</PRE>\r
636 <DL>\r
637 <DD>Constructs an instance with the specified output stream, character
638  encoding and indentation.\r
639 <P>\r
640 <DL>\r
641 \r
642 <DT><B>Throws:</B>\r
643 <DD><CODE><A HREF="../../org/marc4j/MarcException.html" title="class in org.marc4j">MarcException</A></CODE></DL>\r
644 </DL>\r
645 <HR>\r
646 \r
647 <A NAME="MarcXmlWriter(javax.xml.transform.Result)"><!-- --></A><H3>\r
648 MarcXmlWriter</H3>\r
649 <PRE>\r
650 public <B>MarcXmlWriter</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/transform/Result.html" title="class or interface in javax.xml.transform">Result</A>&nbsp;result)</PRE>\r
651 <DL>\r
652 <DD>Constructs an instance with the specified result.\r
653 <P>\r
654 <DL>\r
655 <DT><B>Parameters:</B><DD><CODE>result</CODE> - \r
656 <DT><B>Throws:</B>\r
657 <DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/org/xml/sax/SAXException.html" title="class or interface in org.xml.sax">SAXException</A></CODE></DL>\r
658 </DL>\r
659 <HR>\r
660 \r
661 <A NAME="MarcXmlWriter(javax.xml.transform.Result, java.lang.String)"><!-- --></A><H3>\r
662 MarcXmlWriter</H3>\r
663 <PRE>\r
664 public <B>MarcXmlWriter</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/transform/Result.html" title="class or interface in javax.xml.transform">Result</A>&nbsp;result,\r
665                      <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
666 <DL>\r
667 <DD>Constructs an instance with the specified stylesheet location and result.\r
668 <P>\r
669 <DL>\r
670 <DT><B>Parameters:</B><DD><CODE>result</CODE> - \r
671 <DT><B>Throws:</B>\r
672 <DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/org/xml/sax/SAXException.html" title="class or interface in org.xml.sax">SAXException</A></CODE></DL>\r
673 </DL>\r
674 <HR>\r
675 \r
676 <A NAME="MarcXmlWriter(javax.xml.transform.Result, javax.xml.transform.Source)"><!-- --></A><H3>\r
677 MarcXmlWriter</H3>\r
678 <PRE>\r
679 public <B>MarcXmlWriter</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/transform/Result.html" title="class or interface in javax.xml.transform">Result</A>&nbsp;result,\r
680                      <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
681 <DL>\r
682 <DD>Constructs an instance with the specified stylesheet source and result.\r
683 <P>\r
684 <DL>\r
685 <DT><B>Parameters:</B><DD><CODE>result</CODE> - \r
686 <DT><B>Throws:</B>\r
687 <DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/org/xml/sax/SAXException.html" title="class or interface in org.xml.sax">SAXException</A></CODE></DL>\r
688 </DL>\r
689 \r
690 <!-- ============ METHOD DETAIL ========== -->\r
691 \r
692 <A NAME="method_detail"><!-- --></A>\r
693 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">\r
694 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">\r
695 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">\r
696 <B>Method Detail</B></FONT></TH>\r
697 </TR>\r
698 </TABLE>\r
699 \r
700 <A NAME="close()"><!-- --></A><H3>\r
701 close</H3>\r
702 <PRE>\r
703 public void <B>close</B>()</PRE>\r
704 <DL>\r
705 <DD><B>Description copied from interface: <CODE><A HREF="../../org/marc4j/MarcWriter.html#close()">MarcWriter</A></CODE></B></DD>\r
706 <DD>Closes the writer.\r
707 <P>\r
708 <DD><DL>\r
709 <DT><B>Specified by:</B><DD><CODE><A HREF="../../org/marc4j/MarcWriter.html#close()">close</A></CODE> in interface <CODE><A HREF="../../org/marc4j/MarcWriter.html" title="interface in org.marc4j">MarcWriter</A></CODE></DL>\r
710 </DD>\r
711 <DD><DL>\r
712 </DL>\r
713 </DD>\r
714 </DL>\r
715 <HR>\r
716 \r
717 <A NAME="getConverter()"><!-- --></A><H3>\r
718 getConverter</H3>\r
719 <PRE>\r
720 public <A HREF="../../org/marc4j/converter/CharConverter.html" title="class in org.marc4j.converter">CharConverter</A> <B>getConverter</B>()</PRE>\r
721 <DL>\r
722 <DD>Returns the character converter.\r
723 <P>\r
724 <DD><DL>\r
725 <DT><B>Specified by:</B><DD><CODE><A HREF="../../org/marc4j/MarcWriter.html#getConverter()">getConverter</A></CODE> in interface <CODE><A HREF="../../org/marc4j/MarcWriter.html" title="interface in org.marc4j">MarcWriter</A></CODE></DL>\r
726 </DD>\r
727 <DD><DL>\r
728 \r
729 <DT><B>Returns:</B><DD>CharConverter the character converter</DL>\r
730 </DD>\r
731 </DL>\r
732 <HR>\r
733 \r
734 <A NAME="setConverter(org.marc4j.converter.CharConverter)"><!-- --></A><H3>\r
735 setConverter</H3>\r
736 <PRE>\r
737 public void <B>setConverter</B>(<A HREF="../../org/marc4j/converter/CharConverter.html" title="class in org.marc4j.converter">CharConverter</A>&nbsp;converter)</PRE>\r
738 <DL>\r
739 <DD>Sets the character converter.\r
740 <P>\r
741 <DD><DL>\r
742 <DT><B>Specified by:</B><DD><CODE><A HREF="../../org/marc4j/MarcWriter.html#setConverter(org.marc4j.converter.CharConverter)">setConverter</A></CODE> in interface <CODE><A HREF="../../org/marc4j/MarcWriter.html" title="interface in org.marc4j">MarcWriter</A></CODE></DL>\r
743 </DD>\r
744 <DD><DL>\r
745 <DT><B>Parameters:</B><DD><CODE>converter</CODE> - the character converter</DL>\r
746 </DD>\r
747 </DL>\r
748 <HR>\r
749 \r
750 <A NAME="setUnicodeNormalization(boolean)"><!-- --></A><H3>\r
751 setUnicodeNormalization</H3>\r
752 <PRE>\r
753 public void <B>setUnicodeNormalization</B>(boolean&nbsp;normalize)</PRE>\r
754 <DL>\r
755 <DD>If set to true this writer will perform Unicode normalization on data
756  elements using normalization form C (NFC). The default is false.
757  
758  The implementation used is ICU4J 2.6. This version is based on Unicode
759  4.0.\r
760 <P>\r
761 <DD><DL>\r
762 </DL>\r
763 </DD>\r
764 <DD><DL>\r
765 <DT><B>Parameters:</B><DD><CODE>normalize</CODE> - true if this writer performs Unicode normalization, false
766             otherwise</DL>\r
767 </DD>\r
768 </DL>\r
769 <HR>\r
770 \r
771 <A NAME="getUnicodeNormalization()"><!-- --></A><H3>\r
772 getUnicodeNormalization</H3>\r
773 <PRE>\r
774 public boolean <B>getUnicodeNormalization</B>()</PRE>\r
775 <DL>\r
776 <DD>Returns true if this writer will perform Unicode normalization, false
777  otherwise.\r
778 <P>\r
779 <DD><DL>\r
780 </DL>\r
781 </DD>\r
782 <DD><DL>\r
783 \r
784 <DT><B>Returns:</B><DD>boolean - true if this writer performs Unicode normalization,
785          false otherwise.</DL>\r
786 </DD>\r
787 </DL>\r
788 <HR>\r
789 \r
790 <A NAME="setHandler(javax.xml.transform.Result, javax.xml.transform.Source)"><!-- --></A><H3>\r
791 setHandler</H3>\r
792 <PRE>\r
793 protected void <B>setHandler</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/transform/Result.html" title="class or interface in javax.xml.transform">Result</A>&nbsp;result,\r
794                           <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)\r
795                    throws <A HREF="../../org/marc4j/MarcException.html" title="class in org.marc4j">MarcException</A></PRE>\r
796 <DL>\r
797 <DD><DL>\r
798 </DL>\r
799 </DD>\r
800 <DD><DL>\r
801 \r
802 <DT><B>Throws:</B>\r
803 <DD><CODE><A HREF="../../org/marc4j/MarcException.html" title="class in org.marc4j">MarcException</A></CODE></DL>\r
804 </DD>\r
805 </DL>\r
806 <HR>\r
807 \r
808 <A NAME="writeStartDocument()"><!-- --></A><H3>\r
809 writeStartDocument</H3>\r
810 <PRE>\r
811 protected void <B>writeStartDocument</B>()</PRE>\r
812 <DL>\r
813 <DD>Writes the root start tag to the result.\r
814 <P>\r
815 <DD><DL>\r
816 </DL>\r
817 </DD>\r
818 <DD><DL>\r
819 \r
820 <DT><B>Throws:</B>\r
821 <DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/org/xml/sax/SAXException.html" title="class or interface in org.xml.sax">SAXException</A></CODE></DL>\r
822 </DD>\r
823 </DL>\r
824 <HR>\r
825 \r
826 <A NAME="writeEndDocument()"><!-- --></A><H3>\r
827 writeEndDocument</H3>\r
828 <PRE>\r
829 protected void <B>writeEndDocument</B>()</PRE>\r
830 <DL>\r
831 <DD>Writes the root end tag to the result.\r
832 <P>\r
833 <DD><DL>\r
834 </DL>\r
835 </DD>\r
836 <DD><DL>\r
837 \r
838 <DT><B>Throws:</B>\r
839 <DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/org/xml/sax/SAXException.html" title="class or interface in org.xml.sax">SAXException</A></CODE></DL>\r
840 </DD>\r
841 </DL>\r
842 <HR>\r
843 \r
844 <A NAME="write(org.marc4j.marc.Record)"><!-- --></A><H3>\r
845 write</H3>\r
846 <PRE>\r
847 public void <B>write</B>(<A HREF="../../org/marc4j/marc/Record.html" title="interface in org.marc4j.marc">Record</A>&nbsp;record)</PRE>\r
848 <DL>\r
849 <DD>Writes a Record object to the result.\r
850 <P>\r
851 <DD><DL>\r
852 <DT><B>Specified by:</B><DD><CODE><A HREF="../../org/marc4j/MarcWriter.html#write(org.marc4j.marc.Record)">write</A></CODE> in interface <CODE><A HREF="../../org/marc4j/MarcWriter.html" title="interface in org.marc4j">MarcWriter</A></CODE></DL>\r
853 </DD>\r
854 <DD><DL>\r
855 <DT><B>Parameters:</B><DD><CODE>record</CODE> - -
856             the <code>Record</code> object\r
857 <DT><B>Throws:</B>\r
858 <DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/org/xml/sax/SAXException.html" title="class or interface in org.xml.sax">SAXException</A></CODE></DL>\r
859 </DD>\r
860 </DL>\r
861 <HR>\r
862 \r
863 <A NAME="hasIndent()"><!-- --></A><H3>\r
864 hasIndent</H3>\r
865 <PRE>\r
866 public boolean <B>hasIndent</B>()</PRE>\r
867 <DL>\r
868 <DD>Returns true if indentation is active, false otherwise.\r
869 <P>\r
870 <DD><DL>\r
871 </DL>\r
872 </DD>\r
873 <DD><DL>\r
874 \r
875 <DT><B>Returns:</B><DD>boolean</DL>\r
876 </DD>\r
877 </DL>\r
878 <HR>\r
879 \r
880 <A NAME="setIndent(boolean)"><!-- --></A><H3>\r
881 setIndent</H3>\r
882 <PRE>\r
883 public void <B>setIndent</B>(boolean&nbsp;indent)</PRE>\r
884 <DL>\r
885 <DD>Activates or deactivates indentation. Default value is false.\r
886 <P>\r
887 <DD><DL>\r
888 </DL>\r
889 </DD>\r
890 <DD><DL>\r
891 <DT><B>Parameters:</B><DD><CODE>indent</CODE> - </DL>\r
892 </DD>\r
893 </DL>\r
894 <HR>\r
895 \r
896 <A NAME="toXml(org.marc4j.marc.Record)"><!-- --></A><H3>\r
897 toXml</H3>\r
898 <PRE>\r
899 protected void <B>toXml</B>(<A HREF="../../org/marc4j/marc/Record.html" title="interface in org.marc4j.marc">Record</A>&nbsp;record)\r
900               throws <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/org/xml/sax/SAXException.html" title="class or interface in org.xml.sax">SAXException</A></PRE>\r
901 <DL>\r
902 <DD><DL>\r
903 </DL>\r
904 </DD>\r
905 <DD><DL>\r
906 \r
907 <DT><B>Throws:</B>\r
908 <DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/org/xml/sax/SAXException.html" title="class or interface in org.xml.sax">SAXException</A></CODE></DL>\r
909 </DD>\r
910 </DL>\r
911 <HR>\r
912 \r
913 <A NAME="getDataElement(java.lang.String)"><!-- --></A><H3>\r
914 getDataElement</H3>\r
915 <PRE>\r
916 protected char[] <B>getDataElement</B>(<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;data)</PRE>\r
917 <DL>\r
918 <DD><DL>\r
919 </DL>\r
920 </DD>\r
921 <DD><DL>\r
922 </DL>\r
923 </DD>\r
924 </DL>\r
925 <!-- ========= END OF CLASS DATA ========= -->\r
926 <HR>\r
927 \r
928 \r
929 <!-- ======= START OF BOTTOM NAVBAR ====== -->\r
930 <A NAME="navbar_bottom"><!-- --></A>\r
931 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>\r
932 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">\r
933 <TR>\r
934 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">\r
935 <A NAME="navbar_bottom_firstrow"><!-- --></A>\r
936 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">\r
937   <TR ALIGN="center" VALIGN="top">\r
938   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>\r
939   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>\r
940   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>\r
941   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/MarcXmlWriter.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>\r
942   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>\r
943   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>\r
944   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>\r
945   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>\r
946   </TR>\r
947 </TABLE>\r
948 </TD>\r
949 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>\r
950 </EM>\r
951 </TD>\r
952 </TR>\r
953 \r
954 <TR>\r
955 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">\r
956 &nbsp;<A HREF="../../org/marc4j/MarcXmlReader.html" title="class in org.marc4j"><B>PREV CLASS</B></A>&nbsp;\r
957 &nbsp;<A HREF="../../org/marc4j/RecordStack.html" title="class in org.marc4j"><B>NEXT CLASS</B></A></FONT></TD>\r
958 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">\r
959   <A HREF="../../index.html?org/marc4j/MarcXmlWriter.html" target="_top"><B>FRAMES</B></A>  &nbsp;\r
960 &nbsp;<A HREF="MarcXmlWriter.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;\r
961 &nbsp;<SCRIPT type="text/javascript">\r
962   <!--\r
963   if(window==top) {\r
964     document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');\r
965   }\r
966   //-->\r
967 </SCRIPT>\r
968 <NOSCRIPT>\r
969   <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>\r
970 </NOSCRIPT>\r
971 \r
972 \r
973 </FONT></TD>\r
974 </TR>\r
975 <TR>\r
976 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">\r
977   SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>\r
978 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">\r
979 DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>\r
980 </TR>\r
981 </TABLE>\r
982 <A NAME="skip-navbar_bottom"></A>\r
983 <!-- ======== END OF BOTTOM NAVBAR ======= -->\r
984 \r
985 <HR>\r
986 Copyright © 2002-2006 Bas Peters. All Rights Reserved.\r
987 </BODY>\r
988 </HTML>\r