1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
\r
5 <!-- Generated by javadoc (build 1.5.0_06) on Fri Oct 17 16:04:52 EDT 2008 -->
\r
7 CharConverter (MARC4J API)
\r
10 <META NAME="keywords" CONTENT="org.marc4j.converter.CharConverter class">
\r
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
\r
14 <SCRIPT type="text/javascript">
\r
15 function windowTitle()
\r
17 parent.document.title="CharConverter (MARC4J API)";
\r
25 <BODY BGCOLOR="white" onload="windowTitle();">
\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
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> </TD>
\r
38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
\r
39 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
\r
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/CharConverter.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
\r
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
\r
42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
\r
43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
\r
44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
\r
48 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
\r
54 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
\r
55 PREV CLASS
\r
56 NEXT CLASS</FONT></TD>
\r
57 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
\r
58 <A HREF="../../../index.html?org/marc4j/converter/CharConverter.html" target="_top"><B>FRAMES</B></A>
\r
59 <A HREF="CharConverter.html" target="_top"><B>NO FRAMES</B></A>
\r
60 <SCRIPT type="text/javascript">
\r
63 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
\r
68 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
\r
75 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
\r
76 SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
\r
77 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
\r
78 DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
\r
81 <A NAME="skip-navbar_top"></A>
\r
82 <!-- ========= END OF TOP NAVBAR ========= -->
\r
85 <!-- ======== START OF CLASS DATA ======== -->
\r
88 org.marc4j.converter</FONT>
\r
90 Class CharConverter</H2>
\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.converter.CharConverter</B>
\r
96 <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../org/marc4j/converter/impl/AnselToUnicode.html" title="class in org.marc4j.converter.impl">AnselToUnicode</A>, <A HREF="../../../org/marc4j/converter/impl/Iso5426ToUnicode.html" title="class in org.marc4j.converter.impl">Iso5426ToUnicode</A>, <A HREF="../../../org/marc4j/converter/impl/Iso6937ToUnicode.html" title="class in org.marc4j.converter.impl">Iso6937ToUnicode</A>, <A HREF="../../../org/marc4j/converter/impl/UnicodeToAnsel.html" title="class in org.marc4j.converter.impl">UnicodeToAnsel</A>, <A HREF="../../../org/marc4j/converter/impl/UnicodeToIso5426.html" title="class in org.marc4j.converter.impl">UnicodeToIso5426</A>, <A HREF="../../../org/marc4j/converter/impl/UnicodeToIso6937.html" title="class in org.marc4j.converter.impl">UnicodeToIso6937</A></DD>
\r
100 <DT><PRE>public abstract class <B>CharConverter</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></DL>
\r
104 Extend this class to create a character converter.
\r
109 <DT><B>Version:</B></DT>
\r
110 <DD>$Revision: 1.3 $</DD>
\r
111 <DT><B>Author:</B></DT>
\r
112 <DD>Bas Peters</DD>
\r
118 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
\r
120 <A NAME="constructor_summary"><!-- --></A>
\r
121 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
122 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
123 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
\r
124 <B>Constructor Summary</B></FONT></TH>
\r
126 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
127 <TD><CODE><B><A HREF="../../../org/marc4j/converter/CharConverter.html#CharConverter()">CharConverter</A></B>()</CODE>
\r
130 </TD>
\r
134 <!-- ========== METHOD SUMMARY =========== -->
\r
136 <A NAME="method_summary"><!-- --></A>
\r
137 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
138 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
139 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
\r
140 <B>Method Summary</B></FONT></TH>
\r
142 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
143 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
144 <CODE> <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
145 <TD><CODE><B><A HREF="../../../org/marc4j/converter/CharConverter.html#convert(byte[])">convert</A></B>(byte[] dataElement)</CODE>
\r
148 Alternate method for performing a character conversion.</TD>
\r
150 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
151 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
152 <CODE>abstract <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
153 <TD><CODE><B><A HREF="../../../org/marc4j/converter/CharConverter.html#convert(char[])">convert</A></B>(char[] dataElement)</CODE>
\r
156 The method that needs to be implemented in a subclass to create a CharConverter.</TD>
\r
158 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
159 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
\r
160 <CODE> <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
161 <TD><CODE><B><A HREF="../../../org/marc4j/converter/CharConverter.html#convert(java.lang.String)">convert</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> dataElement)</CODE>
\r
164 Alternate method for performing a character conversion.</TD>
\r
167 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
\r
168 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
169 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
\r
170 <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
172 <TR BGCOLOR="white" CLASS="TableRowColor">
\r
173 <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
179 <!-- ========= CONSTRUCTOR DETAIL ======== -->
\r
181 <A NAME="constructor_detail"><!-- --></A>
\r
182 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
183 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
184 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
\r
185 <B>Constructor Detail</B></FONT></TH>
\r
189 <A NAME="CharConverter()"><!-- --></A><H3>
\r
192 public <B>CharConverter</B>()</PRE>
\r
196 <!-- ============ METHOD DETAIL ========== -->
\r
198 <A NAME="method_detail"><!-- --></A>
\r
199 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
\r
200 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
\r
201 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
\r
202 <B>Method Detail</B></FONT></TH>
\r
206 <A NAME="convert(char[])"><!-- --></A><H3>
\r
209 public abstract <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>convert</B>(char[] dataElement)</PRE>
\r
211 <DD>The method that needs to be implemented in a subclass to create a CharConverter.
212 Receives a data element extracted from a record as a array of characters, and
213 converts that data and returns the result as a <code>String</code> object.
\r
216 <DT><B>Parameters:</B><DD><CODE>dataElement</CODE> - the data to convert
\r
217 <DT><B>Returns:</B><DD>String the conversion result</DL>
\r
222 <A NAME="convert(byte[])"><!-- --></A><H3>
\r
225 public 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>convert</B>(byte[] dataElement)</PRE>
\r
227 <DD>Alternate method for performing a character conversion. Receives the incoming
228 as a byte array, converts the bytes to characters, and calls the above convert method
229 which must be implemented in the subclass.
\r
232 <DT><B>Parameters:</B><DD><CODE>dataElement</CODE> - the data to convert
\r
233 <DT><B>Returns:</B><DD>String the conversion result</DL>
\r
238 <A NAME="convert(java.lang.String)"><!-- --></A><H3>
\r
241 public 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>convert</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> dataElement)</PRE>
\r
243 <DD>Alternate method for performing a character conversion. Receives the incoming
244 as a String, converts the String to a character array, and calls the above convert
245 method which must be implemented in the subclass.
\r
248 <DT><B>Parameters:</B><DD><CODE>dataElement</CODE> - the data to convert
\r
249 <DT><B>Returns:</B><DD>String the conversion result</DL>
\r
252 <!-- ========= END OF CLASS DATA ========= -->
\r
256 <!-- ======= START OF BOTTOM NAVBAR ====== -->
\r
257 <A NAME="navbar_bottom"><!-- --></A>
\r
258 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
\r
259 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
\r
261 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
\r
262 <A NAME="navbar_bottom_firstrow"><!-- --></A>
\r
263 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
\r
264 <TR ALIGN="center" VALIGN="top">
\r
265 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
\r
266 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
\r
267 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
\r
268 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/CharConverter.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
\r
269 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
\r
270 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
\r
271 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
\r
272 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
\r
276 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
\r
282 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
\r
283 PREV CLASS
\r
284 NEXT CLASS</FONT></TD>
\r
285 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
\r
286 <A HREF="../../../index.html?org/marc4j/converter/CharConverter.html" target="_top"><B>FRAMES</B></A>
\r
287 <A HREF="CharConverter.html" target="_top"><B>NO FRAMES</B></A>
\r
288 <SCRIPT type="text/javascript">
\r
291 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
\r
296 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
\r
303 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
\r
304 SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
\r
305 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
\r
306 DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
\r
309 <A NAME="skip-navbar_bottom"></A>
\r
310 <!-- ======== END OF BOTTOM NAVBAR ======= -->
\r
313 Copyright © 2002-2006 Bas Peters. All Rights Reserved.
\r