a whole bunch of stuff
[ephemerata.git] / Toady / lib / commons-lang-2.4 / apidocs / org / apache / commons / lang / CharUtils.html
blobfda47d96dc45e33c2506bae476c6ce58683b2fc6
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <!--NewPage-->
3 <HTML>
4 <HEAD>
5 <!-- Generated by javadoc (build 1.4.2_16) on Sat Mar 15 20:43:47 PDT 2008 -->
6 <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
7 <TITLE>
8 CharUtils (Commons Lang 2.4 API)
9 </TITLE>
11 <META NAME="keywords" CONTENT="org.apache.commons.lang.CharUtils class">
13 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
15 <SCRIPT type="text/javascript">
16 function windowTitle()
18 parent.document.title="CharUtils (Commons Lang 2.4 API)";
20 </SCRIPT>
22 </HEAD>
24 <BODY BGCOLOR="white" onload="windowTitle();">
27 <!-- ========= START OF TOP NAVBAR ======= -->
28 <A NAME="navbar_top"><!-- --></A>
29 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
30 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
31 <TR>
32 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
33 <A NAME="navbar_top_firstrow"><!-- --></A>
34 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
35 <TR ALIGN="center" VALIGN="top">
36 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
37 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
38 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
39 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/CharUtils.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
44 </TR>
45 </TABLE>
46 </TD>
47 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
48 </EM>
49 </TD>
50 </TR>
52 <TR>
53 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
54 &nbsp;<A HREF="../../../../org/apache/commons/lang/CharSetUtils.html" title="class in org.apache.commons.lang"><B>PREV CLASS</B></A>&nbsp;
55 &nbsp;<A HREF="../../../../org/apache/commons/lang/ClassUtils.html" title="class in org.apache.commons.lang"><B>NEXT CLASS</B></A></FONT></TD>
56 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
57 <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
58 &nbsp;<A HREF="CharUtils.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
59 &nbsp;<SCRIPT type="text/javascript">
60 <!--
61 if(window==top) {
62 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
64 //-->
65 </SCRIPT>
66 <NOSCRIPT>
67 <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
68 </NOSCRIPT>
70 </FONT></TD>
71 </TR>
72 <TR>
73 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
74 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>
75 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
76 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>
77 </TR>
78 </TABLE>
79 <A NAME="skip-navbar_top"></A>
80 <!-- ========= END OF TOP NAVBAR ========= -->
82 <HR>
83 <!-- ======== START OF CLASS DATA ======== -->
84 <H2>
85 <FONT SIZE="-1">
86 org.apache.commons.lang</FONT>
87 <BR>
88 Class CharUtils</H2>
89 <PRE>
90 java.lang.Object
91 <IMG SRC="../../../../resources/inherit.gif" ALT="extended by"><B>org.apache.commons.lang.CharUtils</B>
92 </PRE>
93 <HR>
94 <DL>
95 <DT>public class <B>CharUtils</B><DT>extends java.lang.Object</DL>
97 <P>
98 <p>Operations on char primitives and Character objects.</p>
100 <p>This class tries to handle <code>null</code> input gracefully.
101 An exception will not be thrown for a <code>null</code> input.
102 Each method documents its behaviour in more detail.</p>
106 <DL>
107 <DT><B>Since:</B></DT>
108 <DD>2.1</DD>
109 <DT><B>Version:</B></DT>
110 <DD>$Id: CharUtils.java 437554 2006-08-28 06:21:41Z bayard $</DD>
111 <DT><B>Author:</B></DT>
112 <DD>Stephen Colebourne</DD>
113 </DL>
114 <HR>
117 <!-- ======== NESTED CLASS SUMMARY ======== -->
120 <!-- =========== FIELD SUMMARY =========== -->
122 <A NAME="field_summary"><!-- --></A>
123 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
124 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
125 <TD COLSPAN=2><FONT SIZE="+2">
126 <B>Field Summary</B></FONT></TD>
127 </TR>
128 <TR BGCOLOR="white" CLASS="TableRowColor">
129 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
130 <CODE>static&nbsp;char</CODE></FONT></TD>
131 <TD><CODE><B><A HREF="../../../../org/apache/commons/lang/CharUtils.html#CR">CR</A></B></CODE>
133 <BR>
134 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>
135 </code> carriage return CR ('\r').</TD>
136 </TR>
137 <TR BGCOLOR="white" CLASS="TableRowColor">
138 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
139 <CODE>static&nbsp;char</CODE></FONT></TD>
140 <TD><CODE><B><A HREF="../../../../org/apache/commons/lang/CharUtils.html#LF">LF</A></B></CODE>
142 <BR>
143 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>
144 </code> linefeed LF ('\n').</TD>
145 </TR>
146 </TABLE>
147 &nbsp;
148 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
150 <A NAME="constructor_summary"><!-- --></A>
151 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
152 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
153 <TD COLSPAN=2><FONT SIZE="+2">
154 <B>Constructor Summary</B></FONT></TD>
155 </TR>
156 <TR BGCOLOR="white" CLASS="TableRowColor">
157 <TD><CODE><B><A HREF="../../../../org/apache/commons/lang/CharUtils.html#CharUtils()">CharUtils</A></B>()</CODE>
159 <BR>
160 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>CharUtils</code> instances should NOT be constructed in standard programming.</TD>
161 </TR>
162 </TABLE>
163 &nbsp;
164 <!-- ========== METHOD SUMMARY =========== -->
166 <A NAME="method_summary"><!-- --></A>
167 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
168 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
169 <TD COLSPAN=2><FONT SIZE="+2">
170 <B>Method Summary</B></FONT></TD>
171 </TR>
172 <TR BGCOLOR="white" CLASS="TableRowColor">
173 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
174 <CODE>static&nbsp;boolean</CODE></FONT></TD>
175 <TD><CODE><B><A HREF="../../../../org/apache/commons/lang/CharUtils.html#isAscii(char)">isAscii</A></B>(char&nbsp;ch)</CODE>
177 <BR>
178 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks whether the character is ASCII 7 bit.</TD>
179 </TR>
180 <TR BGCOLOR="white" CLASS="TableRowColor">
181 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
182 <CODE>static&nbsp;boolean</CODE></FONT></TD>
183 <TD><CODE><B><A HREF="../../../../org/apache/commons/lang/CharUtils.html#isAsciiAlpha(char)">isAsciiAlpha</A></B>(char&nbsp;ch)</CODE>
185 <BR>
186 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks whether the character is ASCII 7 bit alphabetic.</TD>
187 </TR>
188 <TR BGCOLOR="white" CLASS="TableRowColor">
189 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
190 <CODE>static&nbsp;boolean</CODE></FONT></TD>
191 <TD><CODE><B><A HREF="../../../../org/apache/commons/lang/CharUtils.html#isAsciiAlphaLower(char)">isAsciiAlphaLower</A></B>(char&nbsp;ch)</CODE>
193 <BR>
194 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks whether the character is ASCII 7 bit alphabetic lower case.</TD>
195 </TR>
196 <TR BGCOLOR="white" CLASS="TableRowColor">
197 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
198 <CODE>static&nbsp;boolean</CODE></FONT></TD>
199 <TD><CODE><B><A HREF="../../../../org/apache/commons/lang/CharUtils.html#isAsciiAlphanumeric(char)">isAsciiAlphanumeric</A></B>(char&nbsp;ch)</CODE>
201 <BR>
202 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks whether the character is ASCII 7 bit numeric.</TD>
203 </TR>
204 <TR BGCOLOR="white" CLASS="TableRowColor">
205 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
206 <CODE>static&nbsp;boolean</CODE></FONT></TD>
207 <TD><CODE><B><A HREF="../../../../org/apache/commons/lang/CharUtils.html#isAsciiAlphaUpper(char)">isAsciiAlphaUpper</A></B>(char&nbsp;ch)</CODE>
209 <BR>
210 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks whether the character is ASCII 7 bit alphabetic upper case.</TD>
211 </TR>
212 <TR BGCOLOR="white" CLASS="TableRowColor">
213 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
214 <CODE>static&nbsp;boolean</CODE></FONT></TD>
215 <TD><CODE><B><A HREF="../../../../org/apache/commons/lang/CharUtils.html#isAsciiControl(char)">isAsciiControl</A></B>(char&nbsp;ch)</CODE>
217 <BR>
218 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks whether the character is ASCII 7 bit control.</TD>
219 </TR>
220 <TR BGCOLOR="white" CLASS="TableRowColor">
221 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
222 <CODE>static&nbsp;boolean</CODE></FONT></TD>
223 <TD><CODE><B><A HREF="../../../../org/apache/commons/lang/CharUtils.html#isAsciiNumeric(char)">isAsciiNumeric</A></B>(char&nbsp;ch)</CODE>
225 <BR>
226 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks whether the character is ASCII 7 bit numeric.</TD>
227 </TR>
228 <TR BGCOLOR="white" CLASS="TableRowColor">
229 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
230 <CODE>static&nbsp;boolean</CODE></FONT></TD>
231 <TD><CODE><B><A HREF="../../../../org/apache/commons/lang/CharUtils.html#isAsciiPrintable(char)">isAsciiPrintable</A></B>(char&nbsp;ch)</CODE>
233 <BR>
234 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks whether the character is ASCII 7 bit printable.</TD>
235 </TR>
236 <TR BGCOLOR="white" CLASS="TableRowColor">
237 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
238 <CODE>static&nbsp;char</CODE></FONT></TD>
239 <TD><CODE><B><A HREF="../../../../org/apache/commons/lang/CharUtils.html#toChar(java.lang.Character)">toChar</A></B>(java.lang.Character&nbsp;ch)</CODE>
241 <BR>
242 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts the Character to a char throwing an exception for <code>null</code>.</TD>
243 </TR>
244 <TR BGCOLOR="white" CLASS="TableRowColor">
245 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
246 <CODE>static&nbsp;char</CODE></FONT></TD>
247 <TD><CODE><B><A HREF="../../../../org/apache/commons/lang/CharUtils.html#toChar(java.lang.Character, char)">toChar</A></B>(java.lang.Character&nbsp;ch,
248 char&nbsp;defaultValue)</CODE>
250 <BR>
251 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts the Character to a char handling <code>null</code>.</TD>
252 </TR>
253 <TR BGCOLOR="white" CLASS="TableRowColor">
254 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
255 <CODE>static&nbsp;char</CODE></FONT></TD>
256 <TD><CODE><B><A HREF="../../../../org/apache/commons/lang/CharUtils.html#toChar(java.lang.String)">toChar</A></B>(java.lang.String&nbsp;str)</CODE>
258 <BR>
259 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts the String to a char using the first character, throwing
260 an exception on empty Strings.</TD>
261 </TR>
262 <TR BGCOLOR="white" CLASS="TableRowColor">
263 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
264 <CODE>static&nbsp;char</CODE></FONT></TD>
265 <TD><CODE><B><A HREF="../../../../org/apache/commons/lang/CharUtils.html#toChar(java.lang.String, char)">toChar</A></B>(java.lang.String&nbsp;str,
266 char&nbsp;defaultValue)</CODE>
268 <BR>
269 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts the String to a char using the first character, defaulting
270 the value on empty Strings.</TD>
271 </TR>
272 <TR BGCOLOR="white" CLASS="TableRowColor">
273 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
274 <CODE>static&nbsp;java.lang.Character</CODE></FONT></TD>
275 <TD><CODE><B><A HREF="../../../../org/apache/commons/lang/CharUtils.html#toCharacterObject(char)">toCharacterObject</A></B>(char&nbsp;ch)</CODE>
277 <BR>
278 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts the character to a Character.</TD>
279 </TR>
280 <TR BGCOLOR="white" CLASS="TableRowColor">
281 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
282 <CODE>static&nbsp;java.lang.Character</CODE></FONT></TD>
283 <TD><CODE><B><A HREF="../../../../org/apache/commons/lang/CharUtils.html#toCharacterObject(java.lang.String)">toCharacterObject</A></B>(java.lang.String&nbsp;str)</CODE>
285 <BR>
286 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts the String to a Character using the first character, returning
287 null for empty Strings.</TD>
288 </TR>
289 <TR BGCOLOR="white" CLASS="TableRowColor">
290 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
291 <CODE>static&nbsp;int</CODE></FONT></TD>
292 <TD><CODE><B><A HREF="../../../../org/apache/commons/lang/CharUtils.html#toIntValue(char)">toIntValue</A></B>(char&nbsp;ch)</CODE>
294 <BR>
295 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts the character to the Integer it represents, throwing an
296 exception if the character is not numeric.</TD>
297 </TR>
298 <TR BGCOLOR="white" CLASS="TableRowColor">
299 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
300 <CODE>static&nbsp;int</CODE></FONT></TD>
301 <TD><CODE><B><A HREF="../../../../org/apache/commons/lang/CharUtils.html#toIntValue(java.lang.Character)">toIntValue</A></B>(java.lang.Character&nbsp;ch)</CODE>
303 <BR>
304 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts the character to the Integer it represents, throwing an
305 exception if the character is not numeric.</TD>
306 </TR>
307 <TR BGCOLOR="white" CLASS="TableRowColor">
308 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
309 <CODE>static&nbsp;int</CODE></FONT></TD>
310 <TD><CODE><B><A HREF="../../../../org/apache/commons/lang/CharUtils.html#toIntValue(java.lang.Character, int)">toIntValue</A></B>(java.lang.Character&nbsp;ch,
311 int&nbsp;defaultValue)</CODE>
313 <BR>
314 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts the character to the Integer it represents, throwing an
315 exception if the character is not numeric.</TD>
316 </TR>
317 <TR BGCOLOR="white" CLASS="TableRowColor">
318 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
319 <CODE>static&nbsp;int</CODE></FONT></TD>
320 <TD><CODE><B><A HREF="../../../../org/apache/commons/lang/CharUtils.html#toIntValue(char, int)">toIntValue</A></B>(char&nbsp;ch,
321 int&nbsp;defaultValue)</CODE>
323 <BR>
324 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts the character to the Integer it represents, throwing an
325 exception if the character is not numeric.</TD>
326 </TR>
327 <TR BGCOLOR="white" CLASS="TableRowColor">
328 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
329 <CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
330 <TD><CODE><B><A HREF="../../../../org/apache/commons/lang/CharUtils.html#toString(char)">toString</A></B>(char&nbsp;ch)</CODE>
332 <BR>
333 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts the character to a String that contains the one character.</TD>
334 </TR>
335 <TR BGCOLOR="white" CLASS="TableRowColor">
336 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
337 <CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
338 <TD><CODE><B><A HREF="../../../../org/apache/commons/lang/CharUtils.html#toString(java.lang.Character)">toString</A></B>(java.lang.Character&nbsp;ch)</CODE>
340 <BR>
341 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts the character to a String that contains the one character.</TD>
342 </TR>
343 <TR BGCOLOR="white" CLASS="TableRowColor">
344 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
345 <CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
346 <TD><CODE><B><A HREF="../../../../org/apache/commons/lang/CharUtils.html#unicodeEscaped(char)">unicodeEscaped</A></B>(char&nbsp;ch)</CODE>
348 <BR>
349 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts the string to the unicode format ' '.</TD>
350 </TR>
351 <TR BGCOLOR="white" CLASS="TableRowColor">
352 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
353 <CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
354 <TD><CODE><B><A HREF="../../../../org/apache/commons/lang/CharUtils.html#unicodeEscaped(java.lang.Character)">unicodeEscaped</A></B>(java.lang.Character&nbsp;ch)</CODE>
356 <BR>
357 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts the string to the unicode format ' '.</TD>
358 </TR>
359 </TABLE>
360 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
361 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
362 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
363 <TD><B>Methods inherited from class java.lang.Object</B></TD>
364 </TR>
365 <TR BGCOLOR="white" CLASS="TableRowColor">
366 <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
367 </TR>
368 </TABLE>
369 &nbsp;
372 <!-- ============ FIELD DETAIL =========== -->
374 <A NAME="field_detail"><!-- --></A>
375 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
376 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
377 <TD COLSPAN=1><FONT SIZE="+2">
378 <B>Field Detail</B></FONT></TD>
379 </TR>
380 </TABLE>
382 <A NAME="LF"><!-- --></A><H3>
383 LF</H3>
384 <PRE>
385 public static final char <B>LF</B></PRE>
386 <DL>
387 <DD><code>
388 </code> linefeed LF ('\n').
390 <DL>
391 <DT><B>Since:</B></DT>
392 <DD>2.2</DD>
393 <DT><B>See Also:</B><DD><a href="http://java.sun.com/docs/books/jls/third_edition/html/lexical.html#101089">JLF: Escape Sequences
394 for Character and String Literals</a>,
395 <A HREF="../../../../constant-values.html#org.apache.commons.lang.CharUtils.LF">Constant Field Values</A></DL>
396 </DL>
397 <HR>
399 <A NAME="CR"><!-- --></A><H3>
400 CR</H3>
401 <PRE>
402 public static final char <B>CR</B></PRE>
403 <DL>
404 <DD><code>
405 </code> carriage return CR ('\r').
407 <DL>
408 <DT><B>Since:</B></DT>
409 <DD>2.2</DD>
410 <DT><B>See Also:</B><DD><a href="http://java.sun.com/docs/books/jls/third_edition/html/lexical.html#101089">JLF: Escape Sequences
411 for Character and String Literals</a>,
412 <A HREF="../../../../constant-values.html#org.apache.commons.lang.CharUtils.CR">Constant Field Values</A></DL>
413 </DL>
415 <!-- ========= CONSTRUCTOR DETAIL ======== -->
417 <A NAME="constructor_detail"><!-- --></A>
418 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
419 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
420 <TD COLSPAN=1><FONT SIZE="+2">
421 <B>Constructor Detail</B></FONT></TD>
422 </TR>
423 </TABLE>
425 <A NAME="CharUtils()"><!-- --></A><H3>
426 CharUtils</H3>
427 <PRE>
428 public <B>CharUtils</B>()</PRE>
429 <DL>
430 <DD><p><code>CharUtils</code> instances should NOT be constructed in standard programming.
431 Instead, the class should be used as <code>CharUtils.toString('c');</code>.</p>
433 <p>This constructor is public to permit tools that require a JavaBean instance
434 to operate.</p>
436 </DL>
438 <!-- ============ METHOD DETAIL ========== -->
440 <A NAME="method_detail"><!-- --></A>
441 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
442 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
443 <TD COLSPAN=1><FONT SIZE="+2">
444 <B>Method Detail</B></FONT></TD>
445 </TR>
446 </TABLE>
448 <A NAME="toCharacterObject(char)"><!-- --></A><H3>
449 toCharacterObject</H3>
450 <PRE>
451 public static java.lang.Character <B>toCharacterObject</B>(char&nbsp;ch)</PRE>
452 <DL>
453 <DD><p>Converts the character to a Character.</p>
455 <p>For ASCII 7 bit characters, this uses a cache that will return the
456 same Character object each time.</p>
458 <pre>
459 CharUtils.toCharacterObject(' ') = ' '
460 CharUtils.toCharacterObject('A') = 'A'
461 </pre>
463 <DD><DL>
464 <DT><B>Parameters:</B><DD><CODE>ch</CODE> - the character to convert
465 <DT><B>Returns:</B><DD>a Character of the specified character</DL>
466 </DD>
467 </DL>
468 <HR>
470 <A NAME="toCharacterObject(java.lang.String)"><!-- --></A><H3>
471 toCharacterObject</H3>
472 <PRE>
473 public static java.lang.Character <B>toCharacterObject</B>(java.lang.String&nbsp;str)</PRE>
474 <DL>
475 <DD><p>Converts the String to a Character using the first character, returning
476 null for empty Strings.</p>
478 <p>For ASCII 7 bit characters, this uses a cache that will return the
479 same Character object each time.</p>
481 <pre>
482 CharUtils.toCharacterObject(null) = null
483 CharUtils.toCharacterObject("") = null
484 CharUtils.toCharacterObject("A") = 'A'
485 CharUtils.toCharacterObject("BA") = 'B'
486 </pre>
488 <DD><DL>
489 <DT><B>Parameters:</B><DD><CODE>str</CODE> - the character to convert
490 <DT><B>Returns:</B><DD>the Character value of the first letter of the String</DL>
491 </DD>
492 </DL>
493 <HR>
495 <A NAME="toChar(java.lang.Character)"><!-- --></A><H3>
496 toChar</H3>
497 <PRE>
498 public static char <B>toChar</B>(java.lang.Character&nbsp;ch)</PRE>
499 <DL>
500 <DD><p>Converts the Character to a char throwing an exception for <code>null</code>.</p>
502 <pre>
503 CharUtils.toChar(null) = IllegalArgumentException
504 CharUtils.toChar(' ') = ' '
505 CharUtils.toChar('A') = 'A'
506 </pre>
508 <DD><DL>
509 <DT><B>Parameters:</B><DD><CODE>ch</CODE> - the character to convert
510 <DT><B>Returns:</B><DD>the char value of the Character
511 <DT><B>Throws:</B>
512 <DD><CODE>java.lang.IllegalArgumentException</CODE> - if the Character is null</DL>
513 </DD>
514 </DL>
515 <HR>
517 <A NAME="toChar(java.lang.Character, char)"><!-- --></A><H3>
518 toChar</H3>
519 <PRE>
520 public static char <B>toChar</B>(java.lang.Character&nbsp;ch,
521 char&nbsp;defaultValue)</PRE>
522 <DL>
523 <DD><p>Converts the Character to a char handling <code>null</code>.</p>
525 <pre>
526 CharUtils.toChar(null, 'X') = 'X'
527 CharUtils.toChar(' ', 'X') = ' '
528 CharUtils.toChar('A', 'X') = 'A'
529 </pre>
531 <DD><DL>
532 <DT><B>Parameters:</B><DD><CODE>ch</CODE> - the character to convert<DD><CODE>defaultValue</CODE> - the value to use if the Character is null
533 <DT><B>Returns:</B><DD>the char value of the Character or the default if null</DL>
534 </DD>
535 </DL>
536 <HR>
538 <A NAME="toChar(java.lang.String)"><!-- --></A><H3>
539 toChar</H3>
540 <PRE>
541 public static char <B>toChar</B>(java.lang.String&nbsp;str)</PRE>
542 <DL>
543 <DD><p>Converts the String to a char using the first character, throwing
544 an exception on empty Strings.</p>
546 <pre>
547 CharUtils.toChar(null) = IllegalArgumentException
548 CharUtils.toChar("") = IllegalArgumentException
549 CharUtils.toChar("A") = 'A'
550 CharUtils.toChar("BA") = 'B'
551 </pre>
553 <DD><DL>
554 <DT><B>Parameters:</B><DD><CODE>str</CODE> - the character to convert
555 <DT><B>Returns:</B><DD>the char value of the first letter of the String
556 <DT><B>Throws:</B>
557 <DD><CODE>java.lang.IllegalArgumentException</CODE> - if the String is empty</DL>
558 </DD>
559 </DL>
560 <HR>
562 <A NAME="toChar(java.lang.String, char)"><!-- --></A><H3>
563 toChar</H3>
564 <PRE>
565 public static char <B>toChar</B>(java.lang.String&nbsp;str,
566 char&nbsp;defaultValue)</PRE>
567 <DL>
568 <DD><p>Converts the String to a char using the first character, defaulting
569 the value on empty Strings.</p>
571 <pre>
572 CharUtils.toChar(null, 'X') = 'X'
573 CharUtils.toChar("", 'X') = 'X'
574 CharUtils.toChar("A", 'X') = 'A'
575 CharUtils.toChar("BA", 'X') = 'B'
576 </pre>
578 <DD><DL>
579 <DT><B>Parameters:</B><DD><CODE>str</CODE> - the character to convert<DD><CODE>defaultValue</CODE> - the value to use if the Character is null
580 <DT><B>Returns:</B><DD>the char value of the first letter of the String or the default if null</DL>
581 </DD>
582 </DL>
583 <HR>
585 <A NAME="toIntValue(char)"><!-- --></A><H3>
586 toIntValue</H3>
587 <PRE>
588 public static int <B>toIntValue</B>(char&nbsp;ch)</PRE>
589 <DL>
590 <DD><p>Converts the character to the Integer it represents, throwing an
591 exception if the character is not numeric.</p>
593 <p>This method coverts the char '1' to the int 1 and so on.</p>
595 <pre>
596 CharUtils.toIntValue('3') = 3
597 CharUtils.toIntValue('A') = IllegalArgumentException
598 </pre>
600 <DD><DL>
601 <DT><B>Parameters:</B><DD><CODE>ch</CODE> - the character to convert
602 <DT><B>Returns:</B><DD>the int value of the character
603 <DT><B>Throws:</B>
604 <DD><CODE>java.lang.IllegalArgumentException</CODE> - if the character is not ASCII numeric</DL>
605 </DD>
606 </DL>
607 <HR>
609 <A NAME="toIntValue(char, int)"><!-- --></A><H3>
610 toIntValue</H3>
611 <PRE>
612 public static int <B>toIntValue</B>(char&nbsp;ch,
613 int&nbsp;defaultValue)</PRE>
614 <DL>
615 <DD><p>Converts the character to the Integer it represents, throwing an
616 exception if the character is not numeric.</p>
618 <p>This method coverts the char '1' to the int 1 and so on.</p>
620 <pre>
621 CharUtils.toIntValue('3', -1) = 3
622 CharUtils.toIntValue('A', -1) = -1
623 </pre>
625 <DD><DL>
626 <DT><B>Parameters:</B><DD><CODE>ch</CODE> - the character to convert<DD><CODE>defaultValue</CODE> - the default value to use if the character is not numeric
627 <DT><B>Returns:</B><DD>the int value of the character</DL>
628 </DD>
629 </DL>
630 <HR>
632 <A NAME="toIntValue(java.lang.Character)"><!-- --></A><H3>
633 toIntValue</H3>
634 <PRE>
635 public static int <B>toIntValue</B>(java.lang.Character&nbsp;ch)</PRE>
636 <DL>
637 <DD><p>Converts the character to the Integer it represents, throwing an
638 exception if the character is not numeric.</p>
640 <p>This method coverts the char '1' to the int 1 and so on.</p>
642 <pre>
643 CharUtils.toIntValue(null) = IllegalArgumentException
644 CharUtils.toIntValue('3') = 3
645 CharUtils.toIntValue('A') = IllegalArgumentException
646 </pre>
648 <DD><DL>
649 <DT><B>Parameters:</B><DD><CODE>ch</CODE> - the character to convert, not null
650 <DT><B>Returns:</B><DD>the int value of the character
651 <DT><B>Throws:</B>
652 <DD><CODE>java.lang.IllegalArgumentException</CODE> - if the Character is not ASCII numeric or is null</DL>
653 </DD>
654 </DL>
655 <HR>
657 <A NAME="toIntValue(java.lang.Character, int)"><!-- --></A><H3>
658 toIntValue</H3>
659 <PRE>
660 public static int <B>toIntValue</B>(java.lang.Character&nbsp;ch,
661 int&nbsp;defaultValue)</PRE>
662 <DL>
663 <DD><p>Converts the character to the Integer it represents, throwing an
664 exception if the character is not numeric.</p>
666 <p>This method coverts the char '1' to the int 1 and so on.</p>
668 <pre>
669 CharUtils.toIntValue(null, -1) = -1
670 CharUtils.toIntValue('3', -1) = 3
671 CharUtils.toIntValue('A', -1) = -1
672 </pre>
674 <DD><DL>
675 <DT><B>Parameters:</B><DD><CODE>ch</CODE> - the character to convert<DD><CODE>defaultValue</CODE> - the default value to use if the character is not numeric
676 <DT><B>Returns:</B><DD>the int value of the character</DL>
677 </DD>
678 </DL>
679 <HR>
681 <A NAME="toString(char)"><!-- --></A><H3>
682 toString</H3>
683 <PRE>
684 public static java.lang.String <B>toString</B>(char&nbsp;ch)</PRE>
685 <DL>
686 <DD><p>Converts the character to a String that contains the one character.</p>
688 <p>For ASCII 7 bit characters, this uses a cache that will return the
689 same String object each time.</p>
691 <pre>
692 CharUtils.toString(' ') = " "
693 CharUtils.toString('A') = "A"
694 </pre>
696 <DD><DL>
697 <DT><B>Parameters:</B><DD><CODE>ch</CODE> - the character to convert
698 <DT><B>Returns:</B><DD>a String containing the one specified character</DL>
699 </DD>
700 </DL>
701 <HR>
703 <A NAME="toString(java.lang.Character)"><!-- --></A><H3>
704 toString</H3>
705 <PRE>
706 public static java.lang.String <B>toString</B>(java.lang.Character&nbsp;ch)</PRE>
707 <DL>
708 <DD><p>Converts the character to a String that contains the one character.</p>
710 <p>For ASCII 7 bit characters, this uses a cache that will return the
711 same String object each time.</p>
713 <p>If <code>null</code> is passed in, <code>null</code> will be returned.</p>
715 <pre>
716 CharUtils.toString(null) = null
717 CharUtils.toString(' ') = " "
718 CharUtils.toString('A') = "A"
719 </pre>
721 <DD><DL>
722 <DT><B>Parameters:</B><DD><CODE>ch</CODE> - the character to convert
723 <DT><B>Returns:</B><DD>a String containing the one specified character</DL>
724 </DD>
725 </DL>
726 <HR>
728 <A NAME="unicodeEscaped(char)"><!-- --></A><H3>
729 unicodeEscaped</H3>
730 <PRE>
731 public static java.lang.String <B>unicodeEscaped</B>(char&nbsp;ch)</PRE>
732 <DL>
733 <DD><p>Converts the string to the unicode format ' '.</p>
735 <p>This format is the Java source code format.</p>
737 <pre>
738 CharUtils.unicodeEscaped(' ') = " "
739 CharUtils.unicodeEscaped('A') = "A"
740 </pre>
742 <DD><DL>
743 <DT><B>Parameters:</B><DD><CODE>ch</CODE> - the character to convert
744 <DT><B>Returns:</B><DD>the escaped unicode string</DL>
745 </DD>
746 </DL>
747 <HR>
749 <A NAME="unicodeEscaped(java.lang.Character)"><!-- --></A><H3>
750 unicodeEscaped</H3>
751 <PRE>
752 public static java.lang.String <B>unicodeEscaped</B>(java.lang.Character&nbsp;ch)</PRE>
753 <DL>
754 <DD><p>Converts the string to the unicode format ' '.</p>
756 <p>This format is the Java source code format.</p>
758 <p>If <code>null</code> is passed in, <code>null</code> will be returned.</p>
760 <pre>
761 CharUtils.unicodeEscaped(null) = null
762 CharUtils.unicodeEscaped(' ') = " "
763 CharUtils.unicodeEscaped('A') = "A"
764 </pre>
766 <DD><DL>
767 <DT><B>Parameters:</B><DD><CODE>ch</CODE> - the character to convert, may be null
768 <DT><B>Returns:</B><DD>the escaped unicode string, null if null input</DL>
769 </DD>
770 </DL>
771 <HR>
773 <A NAME="isAscii(char)"><!-- --></A><H3>
774 isAscii</H3>
775 <PRE>
776 public static boolean <B>isAscii</B>(char&nbsp;ch)</PRE>
777 <DL>
778 <DD><p>Checks whether the character is ASCII 7 bit.</p>
780 <pre>
781 CharUtils.isAscii('a') = true
782 CharUtils.isAscii('A') = true
783 CharUtils.isAscii('3') = true
784 CharUtils.isAscii('-') = true
785 CharUtils.isAscii('\n') = true
786 CharUtils.isAscii('&copy;') = false
787 </pre>
789 <DD><DL>
790 <DT><B>Parameters:</B><DD><CODE>ch</CODE> - the character to check
791 <DT><B>Returns:</B><DD>true if less than 128</DL>
792 </DD>
793 </DL>
794 <HR>
796 <A NAME="isAsciiPrintable(char)"><!-- --></A><H3>
797 isAsciiPrintable</H3>
798 <PRE>
799 public static boolean <B>isAsciiPrintable</B>(char&nbsp;ch)</PRE>
800 <DL>
801 <DD><p>Checks whether the character is ASCII 7 bit printable.</p>
803 <pre>
804 CharUtils.isAsciiPrintable('a') = true
805 CharUtils.isAsciiPrintable('A') = true
806 CharUtils.isAsciiPrintable('3') = true
807 CharUtils.isAsciiPrintable('-') = true
808 CharUtils.isAsciiPrintable('\n') = false
809 CharUtils.isAsciiPrintable('&copy;') = false
810 </pre>
812 <DD><DL>
813 <DT><B>Parameters:</B><DD><CODE>ch</CODE> - the character to check
814 <DT><B>Returns:</B><DD>true if between 32 and 126 inclusive</DL>
815 </DD>
816 </DL>
817 <HR>
819 <A NAME="isAsciiControl(char)"><!-- --></A><H3>
820 isAsciiControl</H3>
821 <PRE>
822 public static boolean <B>isAsciiControl</B>(char&nbsp;ch)</PRE>
823 <DL>
824 <DD><p>Checks whether the character is ASCII 7 bit control.</p>
826 <pre>
827 CharUtils.isAsciiControl('a') = false
828 CharUtils.isAsciiControl('A') = false
829 CharUtils.isAsciiControl('3') = false
830 CharUtils.isAsciiControl('-') = false
831 CharUtils.isAsciiControl('\n') = true
832 CharUtils.isAsciiControl('&copy;') = false
833 </pre>
835 <DD><DL>
836 <DT><B>Parameters:</B><DD><CODE>ch</CODE> - the character to check
837 <DT><B>Returns:</B><DD>true if less than 32 or equals 127</DL>
838 </DD>
839 </DL>
840 <HR>
842 <A NAME="isAsciiAlpha(char)"><!-- --></A><H3>
843 isAsciiAlpha</H3>
844 <PRE>
845 public static boolean <B>isAsciiAlpha</B>(char&nbsp;ch)</PRE>
846 <DL>
847 <DD><p>Checks whether the character is ASCII 7 bit alphabetic.</p>
849 <pre>
850 CharUtils.isAsciiAlpha('a') = true
851 CharUtils.isAsciiAlpha('A') = true
852 CharUtils.isAsciiAlpha('3') = false
853 CharUtils.isAsciiAlpha('-') = false
854 CharUtils.isAsciiAlpha('\n') = false
855 CharUtils.isAsciiAlpha('&copy;') = false
856 </pre>
858 <DD><DL>
859 <DT><B>Parameters:</B><DD><CODE>ch</CODE> - the character to check
860 <DT><B>Returns:</B><DD>true if between 65 and 90 or 97 and 122 inclusive</DL>
861 </DD>
862 </DL>
863 <HR>
865 <A NAME="isAsciiAlphaUpper(char)"><!-- --></A><H3>
866 isAsciiAlphaUpper</H3>
867 <PRE>
868 public static boolean <B>isAsciiAlphaUpper</B>(char&nbsp;ch)</PRE>
869 <DL>
870 <DD><p>Checks whether the character is ASCII 7 bit alphabetic upper case.</p>
872 <pre>
873 CharUtils.isAsciiAlphaUpper('a') = false
874 CharUtils.isAsciiAlphaUpper('A') = true
875 CharUtils.isAsciiAlphaUpper('3') = false
876 CharUtils.isAsciiAlphaUpper('-') = false
877 CharUtils.isAsciiAlphaUpper('\n') = false
878 CharUtils.isAsciiAlphaUpper('&copy;') = false
879 </pre>
881 <DD><DL>
882 <DT><B>Parameters:</B><DD><CODE>ch</CODE> - the character to check
883 <DT><B>Returns:</B><DD>true if between 65 and 90 inclusive</DL>
884 </DD>
885 </DL>
886 <HR>
888 <A NAME="isAsciiAlphaLower(char)"><!-- --></A><H3>
889 isAsciiAlphaLower</H3>
890 <PRE>
891 public static boolean <B>isAsciiAlphaLower</B>(char&nbsp;ch)</PRE>
892 <DL>
893 <DD><p>Checks whether the character is ASCII 7 bit alphabetic lower case.</p>
895 <pre>
896 CharUtils.isAsciiAlphaLower('a') = true
897 CharUtils.isAsciiAlphaLower('A') = false
898 CharUtils.isAsciiAlphaLower('3') = false
899 CharUtils.isAsciiAlphaLower('-') = false
900 CharUtils.isAsciiAlphaLower('\n') = false
901 CharUtils.isAsciiAlphaLower('&copy;') = false
902 </pre>
904 <DD><DL>
905 <DT><B>Parameters:</B><DD><CODE>ch</CODE> - the character to check
906 <DT><B>Returns:</B><DD>true if between 97 and 122 inclusive</DL>
907 </DD>
908 </DL>
909 <HR>
911 <A NAME="isAsciiNumeric(char)"><!-- --></A><H3>
912 isAsciiNumeric</H3>
913 <PRE>
914 public static boolean <B>isAsciiNumeric</B>(char&nbsp;ch)</PRE>
915 <DL>
916 <DD><p>Checks whether the character is ASCII 7 bit numeric.</p>
918 <pre>
919 CharUtils.isAsciiNumeric('a') = false
920 CharUtils.isAsciiNumeric('A') = false
921 CharUtils.isAsciiNumeric('3') = true
922 CharUtils.isAsciiNumeric('-') = false
923 CharUtils.isAsciiNumeric('\n') = false
924 CharUtils.isAsciiNumeric('&copy;') = false
925 </pre>
927 <DD><DL>
928 <DT><B>Parameters:</B><DD><CODE>ch</CODE> - the character to check
929 <DT><B>Returns:</B><DD>true if between 48 and 57 inclusive</DL>
930 </DD>
931 </DL>
932 <HR>
934 <A NAME="isAsciiAlphanumeric(char)"><!-- --></A><H3>
935 isAsciiAlphanumeric</H3>
936 <PRE>
937 public static boolean <B>isAsciiAlphanumeric</B>(char&nbsp;ch)</PRE>
938 <DL>
939 <DD><p>Checks whether the character is ASCII 7 bit numeric.</p>
941 <pre>
942 CharUtils.isAsciiAlphanumeric('a') = true
943 CharUtils.isAsciiAlphanumeric('A') = true
944 CharUtils.isAsciiAlphanumeric('3') = true
945 CharUtils.isAsciiAlphanumeric('-') = false
946 CharUtils.isAsciiAlphanumeric('\n') = false
947 CharUtils.isAsciiAlphanumeric('&copy;') = false
948 </pre>
950 <DD><DL>
951 <DT><B>Parameters:</B><DD><CODE>ch</CODE> - the character to check
952 <DT><B>Returns:</B><DD>true if between 48 and 57 or 65 and 90 or 97 and 122 inclusive</DL>
953 </DD>
954 </DL>
955 <!-- ========= END OF CLASS DATA ========= -->
956 <HR>
959 <!-- ======= START OF BOTTOM NAVBAR ====== -->
960 <A NAME="navbar_bottom"><!-- --></A>
961 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
962 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
963 <TR>
964 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
965 <A NAME="navbar_bottom_firstrow"><!-- --></A>
966 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
967 <TR ALIGN="center" VALIGN="top">
968 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
969 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
970 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
971 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/CharUtils.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
972 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
973 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
974 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
975 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
976 </TR>
977 </TABLE>
978 </TD>
979 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
980 </EM>
981 </TD>
982 </TR>
984 <TR>
985 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
986 &nbsp;<A HREF="../../../../org/apache/commons/lang/CharSetUtils.html" title="class in org.apache.commons.lang"><B>PREV CLASS</B></A>&nbsp;
987 &nbsp;<A HREF="../../../../org/apache/commons/lang/ClassUtils.html" title="class in org.apache.commons.lang"><B>NEXT CLASS</B></A></FONT></TD>
988 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
989 <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
990 &nbsp;<A HREF="CharUtils.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
991 &nbsp;<SCRIPT type="text/javascript">
992 <!--
993 if(window==top) {
994 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
996 //-->
997 </SCRIPT>
998 <NOSCRIPT>
999 <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
1000 </NOSCRIPT>
1002 </FONT></TD>
1003 </TR>
1004 <TR>
1005 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
1006 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>
1007 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
1008 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>
1009 </TR>
1010 </TABLE>
1011 <A NAME="skip-navbar_bottom"></A>
1012 <!-- ======== END OF BOTTOM NAVBAR ======= -->
1014 <HR>
1015 Copyright © 2001-2008 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.
1016 </BODY>
1017 </HTML>