source: sandbox/expresso-solr/solr/docs/api/org/apache/solr/common/util/StrUtils.html @ 7588

Revision 7588, 28.7 KB checked in by adir, 11 years ago (diff)

Ticket #000 - Adicionando a integracao de buscas com Solr na base a ser isnerida na comunidade

Line 
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.6.0_24) on Mon Jun 25 15:26:26 EDT 2012 -->
6<META http-equiv="Content-Type" content="text/html; charset=utf-8">
7<TITLE>
8StrUtils (Solr 4.0.0-ALPHA API)
9</TITLE>
10
11<META NAME="date" CONTENT="2012-06-25">
12
13<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
14
15<SCRIPT type="text/javascript">
16function windowTitle()
17{
18    if (location.href.indexOf('is-external=true') == -1) {
19        parent.document.title="StrUtils (Solr 4.0.0-ALPHA API)";
20    }
21}
22</SCRIPT>
23<NOSCRIPT>
24</NOSCRIPT>
25
26</HEAD>
27
28<BODY BGCOLOR="white" onload="windowTitle();">
29<HR>
30
31
32<!-- ========= START OF TOP NAVBAR ======= -->
33<A NAME="navbar_top"><!-- --></A>
34<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
35<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
36<TR>
37<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
38<A NAME="navbar_top_firstrow"><!-- --></A>
39<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
40  <TR ALIGN="center" VALIGN="top">
41  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
42  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
43  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
44  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/StrUtils.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
45  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
46  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
47  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
48  </TR>
49</TABLE>
50</TD>
51<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
52</EM>
53</TD>
54</TR>
55
56<TR>
57<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
58&nbsp;<A HREF="../../../../../org/apache/solr/common/util/SimpleOrderedMap.html" title="class in org.apache.solr.common.util"><B>PREV CLASS</B></A>&nbsp;
59&nbsp;<A HREF="../../../../../org/apache/solr/common/util/XML.html" title="class in org.apache.solr.common.util"><B>NEXT CLASS</B></A></FONT></TD>
60<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
61  <A HREF="../../../../../index.html?org/apache/solr/common/util/StrUtils.html" target="_top"><B>FRAMES</B></A>  &nbsp;
62&nbsp;<A HREF="StrUtils.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
63&nbsp;<SCRIPT type="text/javascript">
64  <!--
65  if(window==top) {
66    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
67  }
68  //-->
69</SCRIPT>
70<NOSCRIPT>
71  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
72</NOSCRIPT>
73
74
75</FONT></TD>
76</TR>
77<TR>
78<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
79  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>
80<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
81DETAIL:&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>
82</TR>
83</TABLE>
84<A NAME="skip-navbar_top"></A>
85<!-- ========= END OF TOP NAVBAR ========= -->
86
87<HR>
88<!-- ======== START OF CLASS DATA ======== -->
89<H2>
90<FONT SIZE="-1">
91org.apache.solr.common.util</FONT>
92<BR>
93Class StrUtils</H2>
94<PRE>
95<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
96  <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.solr.common.util.StrUtils</B>
97</PRE>
98<HR>
99<DL>
100<DT><PRE>public class <B>StrUtils</B><DT>extends <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></DL>
101</PRE>
102
103<P>
104<HR>
105
106<P>
107<!-- =========== FIELD SUMMARY =========== -->
108
109<A NAME="field_summary"><!-- --></A>
110<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
111<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
112<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
113<B>Field Summary</B></FONT></TH>
114</TR>
115<TR BGCOLOR="white" CLASS="TableRowColor">
116<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
117<CODE>static&nbsp;char[]</CODE></FONT></TD>
118<TD><CODE><B><A HREF="../../../../../org/apache/solr/common/util/StrUtils.html#HEX_DIGITS">HEX_DIGITS</A></B></CODE>
119
120<BR>
121&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
122</TR>
123</TABLE>
124&nbsp;
125<!-- ======== CONSTRUCTOR SUMMARY ======== -->
126
127<A NAME="constructor_summary"><!-- --></A>
128<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
129<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
130<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
131<B>Constructor Summary</B></FONT></TH>
132</TR>
133<TR BGCOLOR="white" CLASS="TableRowColor">
134<TD><CODE><B><A HREF="../../../../../org/apache/solr/common/util/StrUtils.html#StrUtils()">StrUtils</A></B>()</CODE>
135
136<BR>
137&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
138</TR>
139</TABLE>
140&nbsp;
141<!-- ========== METHOD SUMMARY =========== -->
142
143<A NAME="method_summary"><!-- --></A>
144<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
145<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
146<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
147<B>Method Summary</B></FONT></TH>
148</TR>
149<TR BGCOLOR="white" CLASS="TableRowColor">
150<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
151<CODE>static&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
152<TD><CODE><B><A HREF="../../../../../org/apache/solr/common/util/StrUtils.html#join(java.util.List, char)">join</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;?&gt;&nbsp;items,
153     char&nbsp;separator)</CODE>
154
155<BR>
156&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a backslash escaped string, joining all the items.</TD>
157</TR>
158<TR BGCOLOR="white" CLASS="TableRowColor">
159<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
160<CODE>static&nbsp;boolean</CODE></FONT></TD>
161<TD><CODE><B><A HREF="../../../../../org/apache/solr/common/util/StrUtils.html#parseBool(java.lang.String)">parseBool</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;s)</CODE>
162
163<BR>
164&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;how to transform a String into a boolean...</TD>
165</TR>
166<TR BGCOLOR="white" CLASS="TableRowColor">
167<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
168<CODE>static&nbsp;boolean</CODE></FONT></TD>
169<TD><CODE><B><A HREF="../../../../../org/apache/solr/common/util/StrUtils.html#parseBool(java.lang.String, boolean)">parseBool</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;s,
170          boolean&nbsp;def)</CODE>
171
172<BR>
173&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang"><CODE>NullPointerException</CODE></A> and <A HREF="../../../../../org/apache/solr/common/SolrException.html" title="class in org.apache.solr.common"><CODE>SolrException</CODE></A> free version of <A HREF="../../../../../org/apache/solr/common/util/StrUtils.html#parseBool(java.lang.String)"><CODE>parseBool(String)</CODE></A></TD>
174</TR>
175<TR BGCOLOR="white" CLASS="TableRowColor">
176<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
177<CODE>static&nbsp;boolean</CODE></FONT></TD>
178<TD><CODE><B><A HREF="../../../../../org/apache/solr/common/util/StrUtils.html#parseBoolean(java.lang.String)">parseBoolean</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;s)</CODE>
179
180<BR>
181&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return if a string starts with '1', 't', or 'T'
182  and return false otherwise.</TD>
183</TR>
184<TR BGCOLOR="white" CLASS="TableRowColor">
185<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
186<CODE>static&nbsp;void</CODE></FONT></TD>
187<TD><CODE><B><A HREF="../../../../../org/apache/solr/common/util/StrUtils.html#partialURLEncodeVal(java.lang.Appendable, java.lang.String)">partialURLEncodeVal</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Appendable.html?is-external=true" title="class or interface in java.lang">Appendable</A>&nbsp;dest,
188                    <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;val)</CODE>
189
190<BR>
191&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;URLEncodes a value, replacing only enough chars so that
192 the URL may be unambiguously pasted back into a browser.</TD>
193</TR>
194<TR BGCOLOR="white" CLASS="TableRowColor">
195<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
196<CODE>static&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&gt;</CODE></FONT></TD>
197<TD><CODE><B><A HREF="../../../../../org/apache/solr/common/util/StrUtils.html#splitFileNames(java.lang.String)">splitFileNames</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;fileNames)</CODE>
198
199<BR>
200&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Splits file names separated by comma character.</TD>
201</TR>
202<TR BGCOLOR="white" CLASS="TableRowColor">
203<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
204<CODE>static&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&gt;</CODE></FONT></TD>
205<TD><CODE><B><A HREF="../../../../../org/apache/solr/common/util/StrUtils.html#splitSmart(java.lang.String, char)">splitSmart</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;s,
206           char&nbsp;separator)</CODE>
207
208<BR>
209&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Split a string based on a separator, but don't split if it's inside
210 a string.</TD>
211</TR>
212<TR BGCOLOR="white" CLASS="TableRowColor">
213<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
214<CODE>static&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&gt;</CODE></FONT></TD>
215<TD><CODE><B><A HREF="../../../../../org/apache/solr/common/util/StrUtils.html#splitSmart(java.lang.String, java.lang.String, boolean)">splitSmart</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;s,
216           <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;separator,
217           boolean&nbsp;decode)</CODE>
218
219<BR>
220&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Splits a backslash escaped string on the separator.</TD>
221</TR>
222<TR BGCOLOR="white" CLASS="TableRowColor">
223<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
224<CODE>static&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&gt;</CODE></FONT></TD>
225<TD><CODE><B><A HREF="../../../../../org/apache/solr/common/util/StrUtils.html#splitWS(java.lang.String, boolean)">splitWS</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;s,
226        boolean&nbsp;decode)</CODE>
227
228<BR>
229&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
230</TR>
231<TR BGCOLOR="white" CLASS="TableRowColor">
232<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
233<CODE>static&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&gt;</CODE></FONT></TD>
234<TD><CODE><B><A HREF="../../../../../org/apache/solr/common/util/StrUtils.html#toLower(java.util.List)">toLower</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&gt;&nbsp;strings)</CODE>
235
236<BR>
237&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
238</TR>
239</TABLE>
240&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
241<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
242<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
243<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
244</TR>
245<TR BGCOLOR="white" CLASS="TableRowColor">
246<TD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
247</TR>
248</TABLE>
249&nbsp;
250<P>
251
252<!-- ============ FIELD DETAIL =========== -->
253
254<A NAME="field_detail"><!-- --></A>
255<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
256<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
257<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
258<B>Field Detail</B></FONT></TH>
259</TR>
260</TABLE>
261
262<A NAME="HEX_DIGITS"><!-- --></A><H3>
263HEX_DIGITS</H3>
264<PRE>
265public static final char[] <B>HEX_DIGITS</B></PRE>
266<DL>
267<DL>
268</DL>
269</DL>
270
271<!-- ========= CONSTRUCTOR DETAIL ======== -->
272
273<A NAME="constructor_detail"><!-- --></A>
274<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
275<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
276<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
277<B>Constructor Detail</B></FONT></TH>
278</TR>
279</TABLE>
280
281<A NAME="StrUtils()"><!-- --></A><H3>
282StrUtils</H3>
283<PRE>
284public <B>StrUtils</B>()</PRE>
285<DL>
286</DL>
287
288<!-- ============ METHOD DETAIL ========== -->
289
290<A NAME="method_detail"><!-- --></A>
291<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
292<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
293<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
294<B>Method Detail</B></FONT></TH>
295</TR>
296</TABLE>
297
298<A NAME="splitSmart(java.lang.String, char)"><!-- --></A><H3>
299splitSmart</H3>
300<PRE>
301public static <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&gt; <B>splitSmart</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;s,
302                                      char&nbsp;separator)</PRE>
303<DL>
304<DD>Split a string based on a separator, but don't split if it's inside
305 a string.  Assume '\' escapes the next char both inside and
306 outside strings.
307<P>
308<DD><DL>
309</DL>
310</DD>
311</DL>
312<HR>
313
314<A NAME="splitSmart(java.lang.String, java.lang.String, boolean)"><!-- --></A><H3>
315splitSmart</H3>
316<PRE>
317public static <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&gt; <B>splitSmart</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;s,
318                                      <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;separator,
319                                      boolean&nbsp;decode)</PRE>
320<DL>
321<DD>Splits a backslash escaped string on the separator.
322 <p>
323 Current backslash escaping supported:
324 <br> \n \t \r \b \f are escaped the same as a Java String
325 <br> Other characters following a backslash are produced verbatim (\c => c)
326<P>
327<DD><DL>
328<DT><B>Parameters:</B><DD><CODE>s</CODE> - the string to split<DD><CODE>separator</CODE> - the separator to split on<DD><CODE>decode</CODE> - decode backslash escaping</DL>
329</DD>
330</DL>
331<HR>
332
333<A NAME="splitFileNames(java.lang.String)"><!-- --></A><H3>
334splitFileNames</H3>
335<PRE>
336public static <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&gt; <B>splitFileNames</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;fileNames)</PRE>
337<DL>
338<DD>Splits file names separated by comma character.
339 File names can contain comma characters escaped by backslash '\'
340<P>
341<DD><DL>
342<DT><B>Parameters:</B><DD><CODE>fileNames</CODE> - the string containing file names
343<DT><B>Returns:</B><DD>a list of file names with the escaping backslashed removed</DL>
344</DD>
345</DL>
346<HR>
347
348<A NAME="join(java.util.List, char)"><!-- --></A><H3>
349join</H3>
350<PRE>
351public static <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>join</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;?&gt;&nbsp;items,
352                          char&nbsp;separator)</PRE>
353<DL>
354<DD>Creates a backslash escaped string, joining all the items.
355<P>
356<DD><DL>
357</DL>
358</DD>
359</DL>
360<HR>
361
362<A NAME="splitWS(java.lang.String, boolean)"><!-- --></A><H3>
363splitWS</H3>
364<PRE>
365public static <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&gt; <B>splitWS</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;s,
366                                   boolean&nbsp;decode)</PRE>
367<DL>
368<DD><DL>
369</DL>
370</DD>
371</DL>
372<HR>
373
374<A NAME="toLower(java.util.List)"><!-- --></A><H3>
375toLower</H3>
376<PRE>
377public static <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&gt; <B>toLower</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A>&lt;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&gt;&nbsp;strings)</PRE>
378<DL>
379<DD><DL>
380</DL>
381</DD>
382</DL>
383<HR>
384
385<A NAME="parseBoolean(java.lang.String)"><!-- --></A><H3>
386parseBoolean</H3>
387<PRE>
388public static boolean <B>parseBoolean</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;s)</PRE>
389<DL>
390<DD>Return if a string starts with '1', 't', or 'T'
391  and return false otherwise.
392<P>
393<DD><DL>
394</DL>
395</DD>
396</DL>
397<HR>
398
399<A NAME="parseBool(java.lang.String)"><!-- --></A><H3>
400parseBool</H3>
401<PRE>
402public static boolean <B>parseBool</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;s)</PRE>
403<DL>
404<DD>how to transform a String into a boolean... more flexible than
405 Boolean.parseBoolean() to enable easier integration with html forms.
406<P>
407<DD><DL>
408</DL>
409</DD>
410</DL>
411<HR>
412
413<A NAME="parseBool(java.lang.String, boolean)"><!-- --></A><H3>
414parseBool</H3>
415<PRE>
416public static boolean <B>parseBool</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;s,
417                                boolean&nbsp;def)</PRE>
418<DL>
419<DD><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang"><CODE>NullPointerException</CODE></A> and <A HREF="../../../../../org/apache/solr/common/SolrException.html" title="class in org.apache.solr.common"><CODE>SolrException</CODE></A> free version of <A HREF="../../../../../org/apache/solr/common/util/StrUtils.html#parseBool(java.lang.String)"><CODE>parseBool(String)</CODE></A>
420<P>
421<DD><DL>
422<DT><B>Parameters:</B><DD><CODE>s</CODE> - <DD><CODE>def</CODE> -
423<DT><B>Returns:</B><DD>parsed boolean value (or def, if s is null or invalid)</DL>
424</DD>
425</DL>
426<HR>
427
428<A NAME="partialURLEncodeVal(java.lang.Appendable, java.lang.String)"><!-- --></A><H3>
429partialURLEncodeVal</H3>
430<PRE>
431public static void <B>partialURLEncodeVal</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Appendable.html?is-external=true" title="class or interface in java.lang">Appendable</A>&nbsp;dest,
432                                       <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;val)
433                                throws <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE>
434<DL>
435<DD>URLEncodes a value, replacing only enough chars so that
436 the URL may be unambiguously pasted back into a browser.
437 <p>
438 Characters with a numeric value less than 32 are encoded.
439 &amp;,=,%,+,space are encoded.
440 <p>
441<P>
442<DD><DL>
443
444<DT><B>Throws:</B>
445<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL>
446</DD>
447</DL>
448<!-- ========= END OF CLASS DATA ========= -->
449<HR>
450
451
452<!-- ======= START OF BOTTOM NAVBAR ====== -->
453<A NAME="navbar_bottom"><!-- --></A>
454<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
455<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
456<TR>
457<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
458<A NAME="navbar_bottom_firstrow"><!-- --></A>
459<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
460  <TR ALIGN="center" VALIGN="top">
461  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
462  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
463  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
464  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/StrUtils.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
465  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
466  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
467  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
468  </TR>
469</TABLE>
470</TD>
471<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
472</EM>
473</TD>
474</TR>
475
476<TR>
477<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
478&nbsp;<A HREF="../../../../../org/apache/solr/common/util/SimpleOrderedMap.html" title="class in org.apache.solr.common.util"><B>PREV CLASS</B></A>&nbsp;
479&nbsp;<A HREF="../../../../../org/apache/solr/common/util/XML.html" title="class in org.apache.solr.common.util"><B>NEXT CLASS</B></A></FONT></TD>
480<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
481  <A HREF="../../../../../index.html?org/apache/solr/common/util/StrUtils.html" target="_top"><B>FRAMES</B></A>  &nbsp;
482&nbsp;<A HREF="StrUtils.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
483&nbsp;<SCRIPT type="text/javascript">
484  <!--
485  if(window==top) {
486    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
487  }
488  //-->
489</SCRIPT>
490<NOSCRIPT>
491  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
492</NOSCRIPT>
493
494
495</FONT></TD>
496</TR>
497<TR>
498<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
499  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>
500<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
501DETAIL:&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>
502</TR>
503</TABLE>
504<A NAME="skip-navbar_bottom"></A>
505<!-- ======== END OF BOTTOM NAVBAR ======= -->
506
507<HR>
508
509          <address>Copyright &copy; 2000-2012 Apache Software Foundation.  All Rights Reserved.</address>
510          <script src='../../../../../prettify.js' type='text/javascript'></script>
511          <script type='text/javascript'>
512            (function(){
513              var oldonload = window.onload;
514              if (typeof oldonload != 'function') {
515                window.onload = prettyPrint;
516              } else {
517                window.onload = function() {
518                  oldonload();
519                  prettyPrint();
520                }
521              }
522            })();
523          </script>
524       
525</BODY>
526</HTML>
Note: See TracBrowser for help on using the repository browser.