source: sandbox/expresso-solr/solr/docs/api/org/apache/solr/client/solrj/util/ClientUtils.html @ 7588

Revision 7588, 31.8 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>
8ClientUtils (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="ClientUtils (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/ClientUtils.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;PREV CLASS&nbsp;
59&nbsp;NEXT CLASS</FONT></TD>
60<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
61  <A HREF="../../../../../../index.html?org/apache/solr/client/solrj/util/ClientUtils.html" target="_top"><B>FRAMES</B></A>  &nbsp;
62&nbsp;<A HREF="ClientUtils.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.client.solrj.util</FONT>
92<BR>
93Class ClientUtils</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.client.solrj.util.ClientUtils</B>
97</PRE>
98<HR>
99<DL>
100<DT><PRE>public class <B>ClientUtils</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<DL>
105<DT><B>Since:</B></DT>
106  <DD>solr 1.3</DD>
107</DL>
108<HR>
109
110<P>
111<!-- =========== FIELD SUMMARY =========== -->
112
113<A NAME="field_summary"><!-- --></A>
114<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
115<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
116<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
117<B>Field Summary</B></FONT></TH>
118</TR>
119<TR BGCOLOR="white" CLASS="TableRowColor">
120<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
121<CODE>static&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</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>
122<TD><CODE><B><A HREF="../../../../../../org/apache/solr/client/solrj/util/ClientUtils.html#fmts">fmts</A></B></CODE>
123
124<BR>
125&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../../../org/apache/solr/common/util/DateUtil.html#DEFAULT_DATE_FORMATS"><CODE>DateUtil.DEFAULT_DATE_FORMATS</CODE></A></I></TD>
126</TR>
127<TR BGCOLOR="white" CLASS="TableRowColor">
128<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
129<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>
130<TD><CODE><B><A HREF="../../../../../../org/apache/solr/client/solrj/util/ClientUtils.html#TEXT_XML">TEXT_XML</A></B></CODE>
131
132<BR>
133&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
134</TR>
135<TR BGCOLOR="white" CLASS="TableRowColor">
136<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
137<CODE>static&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/TimeZone.html?is-external=true" title="class or interface in java.util">TimeZone</A></CODE></FONT></TD>
138<TD><CODE><B><A HREF="../../../../../../org/apache/solr/client/solrj/util/ClientUtils.html#UTC">UTC</A></B></CODE>
139
140<BR>
141&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../../../org/apache/solr/common/util/DateUtil.html#UTC"><CODE>DateUtil.UTC</CODE></A>.</I></TD>
142</TR>
143</TABLE>
144&nbsp;
145<!-- ======== CONSTRUCTOR SUMMARY ======== -->
146
147<A NAME="constructor_summary"><!-- --></A>
148<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
149<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
150<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
151<B>Constructor Summary</B></FONT></TH>
152</TR>
153<TR BGCOLOR="white" CLASS="TableRowColor">
154<TD><CODE><B><A HREF="../../../../../../org/apache/solr/client/solrj/util/ClientUtils.html#ClientUtils()">ClientUtils</A></B>()</CODE>
155
156<BR>
157&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
158</TR>
159</TABLE>
160&nbsp;
161<!-- ========== METHOD SUMMARY =========== -->
162
163<A NAME="method_summary"><!-- --></A>
164<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
165<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
166<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
167<B>Method Summary</B></FONT></TH>
168</TR>
169<TR BGCOLOR="white" CLASS="TableRowColor">
170<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
171<CODE>static&nbsp;void</CODE></FONT></TD>
172<TD><CODE><B><A HREF="../../../../../../org/apache/solr/client/solrj/util/ClientUtils.html#appendMap(java.lang.String, java.util.Map, java.util.Map)">appendMap</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;collection,
173          <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</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>,<A HREF="../../../../../../org/apache/solr/common/cloud/Slice.html" title="class in org.apache.solr.common.cloud">Slice</A>&gt;&nbsp;map1,
174          <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</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>,<A HREF="../../../../../../org/apache/solr/common/cloud/Slice.html" title="class in org.apache.solr.common.cloud">Slice</A>&gt;&nbsp;map2)</CODE>
175
176<BR>
177&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
178</TR>
179<TR BGCOLOR="white" CLASS="TableRowColor">
180<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
181<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>
182<TD><CODE><B><A HREF="../../../../../../org/apache/solr/client/solrj/util/ClientUtils.html#escapeQueryChars(java.lang.String)">escapeQueryChars</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>
183
184<BR>
185&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;See: <A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//queryparser/org/apache/lucene/queryparser/classic/package-summary.html?is-external=true"><CODE>queryparser syntax</CODE></A>
186 for more information on Escaping Special Characters</TD>
187</TR>
188<TR BGCOLOR="white" CLASS="TableRowColor">
189<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
190<CODE>static&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/text/DateFormat.html?is-external=true" title="class or interface in java.text">DateFormat</A></CODE></FONT></TD>
191<TD><CODE><B><A HREF="../../../../../../org/apache/solr/client/solrj/util/ClientUtils.html#getThreadLocalDateFormat()">getThreadLocalDateFormat</A></B>()</CODE>
192
193<BR>
194&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../../../org/apache/solr/common/util/DateUtil.html#getThreadLocalDateFormat()"><CODE>DateUtil.getThreadLocalDateFormat()</CODE></A></I></TD>
195</TR>
196<TR BGCOLOR="white" CLASS="TableRowColor">
197<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
198<CODE>static&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util">Date</A></CODE></FONT></TD>
199<TD><CODE><B><A HREF="../../../../../../org/apache/solr/client/solrj/util/ClientUtils.html#parseDate(java.lang.String)">parseDate</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;d)</CODE>
200
201<BR>
202&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../../../org/apache/solr/common/util/DateUtil.html#parseDate(java.lang.String)"><CODE>DateUtil.parseDate(String)</CODE></A></I></TD>
203</TR>
204<TR BGCOLOR="white" CLASS="TableRowColor">
205<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
206<CODE>static&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A>&lt;<A HREF="../../../../../../org/apache/solr/common/util/ContentStream.html" title="interface in org.apache.solr.common.util">ContentStream</A>&gt;</CODE></FONT></TD>
207<TD><CODE><B><A HREF="../../../../../../org/apache/solr/client/solrj/util/ClientUtils.html#toContentStreams(java.lang.String, java.lang.String)">toContentStreams</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;str,
208                 <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;contentType)</CODE>
209
210<BR>
211&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Take a string and make it an iterable ContentStream</TD>
212</TR>
213<TR BGCOLOR="white" CLASS="TableRowColor">
214<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
215<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>
216<TD><CODE><B><A HREF="../../../../../../org/apache/solr/client/solrj/util/ClientUtils.html#toQueryString(org.apache.solr.common.params.SolrParams, boolean)">toQueryString</A></B>(<A HREF="../../../../../../org/apache/solr/common/params/SolrParams.html" title="class in org.apache.solr.common.params">SolrParams</A>&nbsp;params,
217              boolean&nbsp;xml)</CODE>
218
219<BR>
220&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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="../../../../../../org/apache/solr/common/SolrDocument.html" title="class in org.apache.solr.common">SolrDocument</A></CODE></FONT></TD>
225<TD><CODE><B><A HREF="../../../../../../org/apache/solr/client/solrj/util/ClientUtils.html#toSolrDocument(org.apache.solr.common.SolrInputDocument)">toSolrDocument</A></B>(<A HREF="../../../../../../org/apache/solr/common/SolrInputDocument.html" title="class in org.apache.solr.common">SolrInputDocument</A>&nbsp;d)</CODE>
226
227<BR>
228&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
229</TR>
230<TR BGCOLOR="white" CLASS="TableRowColor">
231<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
232<CODE>static&nbsp;<A HREF="../../../../../../org/apache/solr/common/SolrInputDocument.html" title="class in org.apache.solr.common">SolrInputDocument</A></CODE></FONT></TD>
233<TD><CODE><B><A HREF="../../../../../../org/apache/solr/client/solrj/util/ClientUtils.html#toSolrInputDocument(org.apache.solr.common.SolrDocument)">toSolrInputDocument</A></B>(<A HREF="../../../../../../org/apache/solr/common/SolrDocument.html" title="class in org.apache.solr.common">SolrDocument</A>&nbsp;d)</CODE>
234
235<BR>
236&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
237</TR>
238<TR BGCOLOR="white" CLASS="TableRowColor">
239<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
240<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>
241<TD><CODE><B><A HREF="../../../../../../org/apache/solr/client/solrj/util/ClientUtils.html#toXML(org.apache.solr.common.SolrInputDocument)">toXML</A></B>(<A HREF="../../../../../../org/apache/solr/common/SolrInputDocument.html" title="class in org.apache.solr.common">SolrInputDocument</A>&nbsp;doc)</CODE>
242
243<BR>
244&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
245</TR>
246<TR BGCOLOR="white" CLASS="TableRowColor">
247<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
248<CODE>static&nbsp;void</CODE></FONT></TD>
249<TD><CODE><B><A HREF="../../../../../../org/apache/solr/client/solrj/util/ClientUtils.html#writeXML(org.apache.solr.common.SolrInputDocument, java.io.Writer)">writeXML</A></B>(<A HREF="../../../../../../org/apache/solr/common/SolrInputDocument.html" title="class in org.apache.solr.common">SolrInputDocument</A>&nbsp;doc,
250         <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</A>&nbsp;writer)</CODE>
251
252<BR>
253&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
254</TR>
255</TABLE>
256&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
257<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
258<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
259<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>
260</TR>
261<TR BGCOLOR="white" CLASS="TableRowColor">
262<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>
263</TR>
264</TABLE>
265&nbsp;
266<P>
267
268<!-- ============ FIELD DETAIL =========== -->
269
270<A NAME="field_detail"><!-- --></A>
271<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
272<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
273<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
274<B>Field Detail</B></FONT></TH>
275</TR>
276</TABLE>
277
278<A NAME="TEXT_XML"><!-- --></A><H3>
279TEXT_XML</H3>
280<PRE>
281public static final <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>TEXT_XML</B></PRE>
282<DL>
283<DL>
284<DT><B>See Also:</B><DD><A HREF="../../../../../../constant-values.html#org.apache.solr.client.solrj.util.ClientUtils.TEXT_XML">Constant Field Values</A></DL>
285</DL>
286<HR>
287
288<A NAME="fmts"><!-- --></A><H3>
289fmts</H3>
290<PRE>
291<FONT SIZE="-1"><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</A>
292</FONT>public static final <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</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>fmts</B></PRE>
293<DL>
294<DD><B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../../../org/apache/solr/common/util/DateUtil.html#DEFAULT_DATE_FORMATS"><CODE>DateUtil.DEFAULT_DATE_FORMATS</CODE></A></I><DL>
295</DL>
296</DL>
297<HR>
298
299<A NAME="UTC"><!-- --></A><H3>
300UTC</H3>
301<PRE>
302<FONT SIZE="-1"><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</A>
303</FONT>public static <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/TimeZone.html?is-external=true" title="class or interface in java.util">TimeZone</A> <B>UTC</B></PRE>
304<DL>
305<DD><B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../../../org/apache/solr/common/util/DateUtil.html#UTC"><CODE>DateUtil.UTC</CODE></A>.</I><DL>
306</DL>
307</DL>
308
309<!-- ========= CONSTRUCTOR DETAIL ======== -->
310
311<A NAME="constructor_detail"><!-- --></A>
312<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
313<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
314<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
315<B>Constructor Detail</B></FONT></TH>
316</TR>
317</TABLE>
318
319<A NAME="ClientUtils()"><!-- --></A><H3>
320ClientUtils</H3>
321<PRE>
322public <B>ClientUtils</B>()</PRE>
323<DL>
324</DL>
325
326<!-- ============ METHOD DETAIL ========== -->
327
328<A NAME="method_detail"><!-- --></A>
329<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
330<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
331<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
332<B>Method Detail</B></FONT></TH>
333</TR>
334</TABLE>
335
336<A NAME="toContentStreams(java.lang.String, java.lang.String)"><!-- --></A><H3>
337toContentStreams</H3>
338<PRE>
339public static <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</A>&lt;<A HREF="../../../../../../org/apache/solr/common/util/ContentStream.html" title="interface in org.apache.solr.common.util">ContentStream</A>&gt; <B>toContentStreams</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;str,
340                                                         <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;contentType)</PRE>
341<DL>
342<DD>Take a string and make it an iterable ContentStream
343<P>
344<DD><DL>
345</DL>
346</DD>
347</DL>
348<HR>
349
350<A NAME="toSolrInputDocument(org.apache.solr.common.SolrDocument)"><!-- --></A><H3>
351toSolrInputDocument</H3>
352<PRE>
353public static <A HREF="../../../../../../org/apache/solr/common/SolrInputDocument.html" title="class in org.apache.solr.common">SolrInputDocument</A> <B>toSolrInputDocument</B>(<A HREF="../../../../../../org/apache/solr/common/SolrDocument.html" title="class in org.apache.solr.common">SolrDocument</A>&nbsp;d)</PRE>
354<DL>
355<DD><DL>
356<DT><B>Parameters:</B><DD><CODE>d</CODE> - SolrDocument to convert
357<DT><B>Returns:</B><DD>a SolrInputDocument with the same fields and values as the
358   SolrDocument.  All boosts are 1.0f</DL>
359</DD>
360</DL>
361<HR>
362
363<A NAME="toSolrDocument(org.apache.solr.common.SolrInputDocument)"><!-- --></A><H3>
364toSolrDocument</H3>
365<PRE>
366public static <A HREF="../../../../../../org/apache/solr/common/SolrDocument.html" title="class in org.apache.solr.common">SolrDocument</A> <B>toSolrDocument</B>(<A HREF="../../../../../../org/apache/solr/common/SolrInputDocument.html" title="class in org.apache.solr.common">SolrInputDocument</A>&nbsp;d)</PRE>
367<DL>
368<DD><DL>
369<DT><B>Parameters:</B><DD><CODE>d</CODE> - SolrInputDocument to convert
370<DT><B>Returns:</B><DD>a SolrDocument with the same fields and values as the SolrInputDocument</DL>
371</DD>
372</DL>
373<HR>
374
375<A NAME="writeXML(org.apache.solr.common.SolrInputDocument, java.io.Writer)"><!-- --></A><H3>
376writeXML</H3>
377<PRE>
378public static void <B>writeXML</B>(<A HREF="../../../../../../org/apache/solr/common/SolrInputDocument.html" title="class in org.apache.solr.common">SolrInputDocument</A>&nbsp;doc,
379                            <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Writer.html?is-external=true" title="class or interface in java.io">Writer</A>&nbsp;writer)
380                     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>
381<DL>
382<DD><DL>
383
384<DT><B>Throws:</B>
385<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>
386</DD>
387</DL>
388<HR>
389
390<A NAME="toXML(org.apache.solr.common.SolrInputDocument)"><!-- --></A><H3>
391toXML</H3>
392<PRE>
393public 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>toXML</B>(<A HREF="../../../../../../org/apache/solr/common/SolrInputDocument.html" title="class in org.apache.solr.common">SolrInputDocument</A>&nbsp;doc)</PRE>
394<DL>
395<DD><DL>
396</DL>
397</DD>
398</DL>
399<HR>
400
401<A NAME="parseDate(java.lang.String)"><!-- --></A><H3>
402parseDate</H3>
403<PRE>
404<FONT SIZE="-1"><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</A>
405</FONT>public static <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util">Date</A> <B>parseDate</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;d)
406                      throws <A HREF="http://download.oracle.com/javase/6/docs/api/java/text/ParseException.html?is-external=true" title="class or interface in java.text">ParseException</A></PRE>
407<DL>
408<DD><B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../../../../org/apache/solr/common/util/DateUtil.html#parseDate(java.lang.String)"><CODE>DateUtil.parseDate(String)</CODE></A></I>
409<P>
410<DD>Returns a formatter that can be use by the current thread if needed to
411 convert Date objects to the Internal representation.
412<P>
413<DD><DL>
414
415<DT><B>Throws:</B>
416<DD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/text/ParseException.html?is-external=true" title="class or interface in java.text">ParseException</A></CODE></DL>
417</DD>
418</DL>
419<HR>
420
421<A NAME="getThreadLocalDateFormat()"><!-- --></A><H3>
422getThreadLocalDateFormat</H3>
423<PRE>
424<FONT SIZE="-1"><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</A>
425</FONT>public static <A HREF="http://download.oracle.com/javase/6/docs/api/java/text/DateFormat.html?is-external=true" title="class or interface in java.text">DateFormat</A> <B>getThreadLocalDateFormat</B>()</PRE>
426<DL>
427<DD><B>Deprecated.</B>&nbsp;<I>use <A HREF="../../../../../../org/apache/solr/common/util/DateUtil.html#getThreadLocalDateFormat()"><CODE>DateUtil.getThreadLocalDateFormat()</CODE></A></I>
428<P>
429<DD>Returns a formatter that can be use by the current thread if needed to
430 convert Date objects to the Internal representation.
431<P>
432<DD><DL>
433</DL>
434</DD>
435</DL>
436<HR>
437
438<A NAME="escapeQueryChars(java.lang.String)"><!-- --></A><H3>
439escapeQueryChars</H3>
440<PRE>
441public 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>escapeQueryChars</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>
442<DL>
443<DD>See: <A HREF="http://lucene.apache.org/java/4_0_0-ALPHA//queryparser/org/apache/lucene/queryparser/classic/package-summary.html?is-external=true"><CODE>queryparser syntax</CODE></A> 
444 for more information on Escaping Special Characters
445<P>
446<DD><DL>
447</DL>
448</DD>
449</DL>
450<HR>
451
452<A NAME="toQueryString(org.apache.solr.common.params.SolrParams, boolean)"><!-- --></A><H3>
453toQueryString</H3>
454<PRE>
455public 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>toQueryString</B>(<A HREF="../../../../../../org/apache/solr/common/params/SolrParams.html" title="class in org.apache.solr.common.params">SolrParams</A>&nbsp;params,
456                                   boolean&nbsp;xml)</PRE>
457<DL>
458<DD><DL>
459</DL>
460</DD>
461</DL>
462<HR>
463
464<A NAME="appendMap(java.lang.String, java.util.Map, java.util.Map)"><!-- --></A><H3>
465appendMap</H3>
466<PRE>
467public static void <B>appendMap</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;collection,
468                             <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</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>,<A HREF="../../../../../../org/apache/solr/common/cloud/Slice.html" title="class in org.apache.solr.common.cloud">Slice</A>&gt;&nbsp;map1,
469                             <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</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>,<A HREF="../../../../../../org/apache/solr/common/cloud/Slice.html" title="class in org.apache.solr.common.cloud">Slice</A>&gt;&nbsp;map2)</PRE>
470<DL>
471<DD><DL>
472</DL>
473</DD>
474</DL>
475<!-- ========= END OF CLASS DATA ========= -->
476<HR>
477
478
479<!-- ======= START OF BOTTOM NAVBAR ====== -->
480<A NAME="navbar_bottom"><!-- --></A>
481<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
482<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
483<TR>
484<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
485<A NAME="navbar_bottom_firstrow"><!-- --></A>
486<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
487  <TR ALIGN="center" VALIGN="top">
488  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
489  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
490  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
491  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/ClientUtils.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
492  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
493  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
494  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
495  </TR>
496</TABLE>
497</TD>
498<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
499</EM>
500</TD>
501</TR>
502
503<TR>
504<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
505&nbsp;PREV CLASS&nbsp;
506&nbsp;NEXT CLASS</FONT></TD>
507<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
508  <A HREF="../../../../../../index.html?org/apache/solr/client/solrj/util/ClientUtils.html" target="_top"><B>FRAMES</B></A>  &nbsp;
509&nbsp;<A HREF="ClientUtils.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
510&nbsp;<SCRIPT type="text/javascript">
511  <!--
512  if(window==top) {
513    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
514  }
515  //-->
516</SCRIPT>
517<NOSCRIPT>
518  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
519</NOSCRIPT>
520
521
522</FONT></TD>
523</TR>
524<TR>
525<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
526  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>
527<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
528DETAIL:&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>
529</TR>
530</TABLE>
531<A NAME="skip-navbar_bottom"></A>
532<!-- ======== END OF BOTTOM NAVBAR ======= -->
533
534<HR>
535
536          <address>Copyright &copy; 2000-2012 Apache Software Foundation.  All Rights Reserved.</address>
537          <script src='../../../../../../prettify.js' type='text/javascript'></script>
538          <script type='text/javascript'>
539            (function(){
540              var oldonload = window.onload;
541              if (typeof oldonload != 'function') {
542                window.onload = prettyPrint;
543              } else {
544                window.onload = function() {
545                  oldonload();
546                  prettyPrint();
547                }
548              }
549            })();
550          </script>
551       
552</BODY>
553</HTML>
Note: See TracBrowser for help on using the repository browser.