source: sandbox/expresso-solr/solr/docs/api/solrj/org/apache/solr/client/solrj/request/RequestWriter.LazyContentStream.html @ 7588

Revision 7588, 23.2 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:29 EDT 2012 -->
6<META http-equiv="Content-Type" content="text/html; charset=utf-8">
7<TITLE>
8RequestWriter.LazyContentStream (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="RequestWriter.LazyContentStream (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/RequestWriter.LazyContentStream.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/client/solrj/request/RequestWriter.html" title="class in org.apache.solr.client.solrj.request"><B>PREV CLASS</B></A>&nbsp;
59&nbsp;<A HREF="../../../../../../org/apache/solr/client/solrj/request/SolrPing.html" title="class in org.apache.solr.client.solrj.request"><B>NEXT CLASS</B></A></FONT></TD>
60<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
61  <A HREF="../../../../../../index.html?org/apache/solr/client/solrj/request/RequestWriter.LazyContentStream.html" target="_top"><B>FRAMES</B></A>  &nbsp;
62&nbsp;<A HREF="RequestWriter.LazyContentStream.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;FIELD&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;FIELD&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.request</FONT>
92<BR>
93Class RequestWriter.LazyContentStream</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.request.RequestWriter.LazyContentStream</B>
97</PRE>
98<DL>
99<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../../org/apache/solr/common/util/ContentStream.html" title="interface in org.apache.solr.common.util">ContentStream</A></DD>
100</DL>
101<DL>
102<DT><B>Enclosing class:</B><DD><A HREF="../../../../../../org/apache/solr/client/solrj/request/RequestWriter.html" title="class in org.apache.solr.client.solrj.request">RequestWriter</A></DD>
103</DL>
104<HR>
105<DL>
106<DT><PRE>public class <B>RequestWriter.LazyContentStream</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><DT>implements <A HREF="../../../../../../org/apache/solr/common/util/ContentStream.html" title="interface in org.apache.solr.common.util">ContentStream</A></DL>
107</PRE>
108
109<P>
110<HR>
111
112<P>
113
114<!-- ======== CONSTRUCTOR SUMMARY ======== -->
115
116<A NAME="constructor_summary"><!-- --></A>
117<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
118<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
119<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
120<B>Constructor Summary</B></FONT></TH>
121</TR>
122<TR BGCOLOR="white" CLASS="TableRowColor">
123<TD><CODE><B><A HREF="../../../../../../org/apache/solr/client/solrj/request/RequestWriter.LazyContentStream.html#RequestWriter.LazyContentStream(org.apache.solr.client.solrj.request.UpdateRequest)">RequestWriter.LazyContentStream</A></B>(<A HREF="../../../../../../org/apache/solr/client/solrj/request/UpdateRequest.html" title="class in org.apache.solr.client.solrj.request">UpdateRequest</A>&nbsp;req)</CODE>
124
125<BR>
126&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
127</TR>
128</TABLE>
129&nbsp;
130<!-- ========== METHOD SUMMARY =========== -->
131
132<A NAME="method_summary"><!-- --></A>
133<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
134<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
135<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
136<B>Method Summary</B></FONT></TH>
137</TR>
138<TR BGCOLOR="white" CLASS="TableRowColor">
139<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
140<CODE>&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>
141<TD><CODE><B><A HREF="../../../../../../org/apache/solr/client/solrj/request/RequestWriter.LazyContentStream.html#getContentType()">getContentType</A></B>()</CODE>
142
143<BR>
144&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
145</TR>
146<TR BGCOLOR="white" CLASS="TableRowColor">
147<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
148<CODE>&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>
149<TD><CODE><B><A HREF="../../../../../../org/apache/solr/client/solrj/request/RequestWriter.LazyContentStream.html#getName()">getName</A></B>()</CODE>
150
151<BR>
152&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
153</TR>
154<TR BGCOLOR="white" CLASS="TableRowColor">
155<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
156<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</A></CODE></FONT></TD>
157<TD><CODE><B><A HREF="../../../../../../org/apache/solr/client/solrj/request/RequestWriter.LazyContentStream.html#getReader()">getReader</A></B>()</CODE>
158
159<BR>
160&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get an open stream.</TD>
161</TR>
162<TR BGCOLOR="white" CLASS="TableRowColor">
163<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
164<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</A></CODE></FONT></TD>
165<TD><CODE><B><A HREF="../../../../../../org/apache/solr/client/solrj/request/RequestWriter.LazyContentStream.html#getSize()">getSize</A></B>()</CODE>
166
167<BR>
168&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
169</TR>
170<TR BGCOLOR="white" CLASS="TableRowColor">
171<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
172<CODE>&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>
173<TD><CODE><B><A HREF="../../../../../../org/apache/solr/client/solrj/request/RequestWriter.LazyContentStream.html#getSourceInfo()">getSourceInfo</A></B>()</CODE>
174
175<BR>
176&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
177</TR>
178<TR BGCOLOR="white" CLASS="TableRowColor">
179<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
180<CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A></CODE></FONT></TD>
181<TD><CODE><B><A HREF="../../../../../../org/apache/solr/client/solrj/request/RequestWriter.LazyContentStream.html#getStream()">getStream</A></B>()</CODE>
182
183<BR>
184&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get an open stream.</TD>
185</TR>
186<TR BGCOLOR="white" CLASS="TableRowColor">
187<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
188<CODE>&nbsp;void</CODE></FONT></TD>
189<TD><CODE><B><A HREF="../../../../../../org/apache/solr/client/solrj/request/RequestWriter.LazyContentStream.html#writeTo(java.io.OutputStream)">writeTo</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A>&nbsp;os)</CODE>
190
191<BR>
192&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
193</TR>
194</TABLE>
195&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
196<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
197<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
198<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>
199</TR>
200<TR BGCOLOR="white" CLASS="TableRowColor">
201<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>
202</TR>
203</TABLE>
204&nbsp;
205<P>
206
207<!-- ========= CONSTRUCTOR DETAIL ======== -->
208
209<A NAME="constructor_detail"><!-- --></A>
210<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
211<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
212<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
213<B>Constructor Detail</B></FONT></TH>
214</TR>
215</TABLE>
216
217<A NAME="RequestWriter.LazyContentStream(org.apache.solr.client.solrj.request.UpdateRequest)"><!-- --></A><H3>
218RequestWriter.LazyContentStream</H3>
219<PRE>
220public <B>RequestWriter.LazyContentStream</B>(<A HREF="../../../../../../org/apache/solr/client/solrj/request/UpdateRequest.html" title="class in org.apache.solr.client.solrj.request">UpdateRequest</A>&nbsp;req)</PRE>
221<DL>
222</DL>
223
224<!-- ============ METHOD DETAIL ========== -->
225
226<A NAME="method_detail"><!-- --></A>
227<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
228<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
229<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
230<B>Method Detail</B></FONT></TH>
231</TR>
232</TABLE>
233
234<A NAME="getName()"><!-- --></A><H3>
235getName</H3>
236<PRE>
237public <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>getName</B>()</PRE>
238<DL>
239<DD><DL>
240<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../org/apache/solr/common/util/ContentStream.html#getName()">getName</A></CODE> in interface <CODE><A HREF="../../../../../../org/apache/solr/common/util/ContentStream.html" title="interface in org.apache.solr.common.util">ContentStream</A></CODE></DL>
241</DD>
242<DD><DL>
243</DL>
244</DD>
245</DL>
246<HR>
247
248<A NAME="getSourceInfo()"><!-- --></A><H3>
249getSourceInfo</H3>
250<PRE>
251public <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>getSourceInfo</B>()</PRE>
252<DL>
253<DD><DL>
254<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../org/apache/solr/common/util/ContentStream.html#getSourceInfo()">getSourceInfo</A></CODE> in interface <CODE><A HREF="../../../../../../org/apache/solr/common/util/ContentStream.html" title="interface in org.apache.solr.common.util">ContentStream</A></CODE></DL>
255</DD>
256<DD><DL>
257</DL>
258</DD>
259</DL>
260<HR>
261
262<A NAME="getContentType()"><!-- --></A><H3>
263getContentType</H3>
264<PRE>
265public <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>getContentType</B>()</PRE>
266<DL>
267<DD><DL>
268<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../org/apache/solr/common/util/ContentStream.html#getContentType()">getContentType</A></CODE> in interface <CODE><A HREF="../../../../../../org/apache/solr/common/util/ContentStream.html" title="interface in org.apache.solr.common.util">ContentStream</A></CODE></DL>
269</DD>
270<DD><DL>
271</DL>
272</DD>
273</DL>
274<HR>
275
276<A NAME="getSize()"><!-- --></A><H3>
277getSize</H3>
278<PRE>
279public <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</A> <B>getSize</B>()</PRE>
280<DL>
281<DD><DL>
282<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../org/apache/solr/common/util/ContentStream.html#getSize()">getSize</A></CODE> in interface <CODE><A HREF="../../../../../../org/apache/solr/common/util/ContentStream.html" title="interface in org.apache.solr.common.util">ContentStream</A></CODE></DL>
283</DD>
284<DD><DL>
285
286<DT><B>Returns:</B><DD>the stream size or <code>null</code> if not known</DL>
287</DD>
288</DL>
289<HR>
290
291<A NAME="getStream()"><!-- --></A><H3>
292getStream</H3>
293<PRE>
294public <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</A> <B>getStream</B>()
295                      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>
296<DL>
297<DD><B>Description copied from interface: <CODE><A HREF="../../../../../../org/apache/solr/common/util/ContentStream.html#getStream()">ContentStream</A></CODE></B></DD>
298<DD>Get an open stream.  You are responsible for closing it.  Consider using
299 something like:
300 <pre>
301   InputStream stream = stream.getStream();
302   try {
303     // use the stream...
304   }
305   finally {
306     IOUtils.closeQuietly(stream);
307   }
308  </pre>
309 
310 Only the first call to <code>getStream()</code> or <code>getReader()</code>
311 is guaranteed to work.  The runtime behavior for additional calls is undefined.
312
313 Note: you must call <code>getStream()</code> or <code>getReader()</code> before
314 the attributes (name, contentType, etc) are guaranteed to be set.  Streams may be
315 lazy loaded only when this method is called.
316<P>
317<DD><DL>
318<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../org/apache/solr/common/util/ContentStream.html#getStream()">getStream</A></CODE> in interface <CODE><A HREF="../../../../../../org/apache/solr/common/util/ContentStream.html" title="interface in org.apache.solr.common.util">ContentStream</A></CODE></DL>
319</DD>
320<DD><DL>
321
322<DT><B>Throws:</B>
323<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>
324</DD>
325</DL>
326<HR>
327
328<A NAME="getReader()"><!-- --></A><H3>
329getReader</H3>
330<PRE>
331public <A HREF="http://download.oracle.com/javase/6/docs/api/java/io/Reader.html?is-external=true" title="class or interface in java.io">Reader</A> <B>getReader</B>()
332                 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>
333<DL>
334<DD><B>Description copied from interface: <CODE><A HREF="../../../../../../org/apache/solr/common/util/ContentStream.html#getReader()">ContentStream</A></CODE></B></DD>
335<DD>Get an open stream.  You are responsible for closing it.  Consider using
336 something like:
337 <pre>
338   Reader reader = stream.getReader();
339   try {
340     // use the reader...
341   }
342   finally {
343     IOUtils.closeQuietly(reader);
344   }
345  </pre>
346 
347 Only the first call to <code>getStream()</code> or <code>getReader()</code>
348 is guaranteed to work.  The runtime behavior for additional calls is undefined.
349
350 Note: you must call <code>getStream()</code> or <code>getReader()</code> before
351 the attributes (name, contentType, etc) are guaranteed to be set.  Streams may be
352 lazy loaded only when this method is called.
353<P>
354<DD><DL>
355<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../org/apache/solr/common/util/ContentStream.html#getReader()">getReader</A></CODE> in interface <CODE><A HREF="../../../../../../org/apache/solr/common/util/ContentStream.html" title="interface in org.apache.solr.common.util">ContentStream</A></CODE></DL>
356</DD>
357<DD><DL>
358
359<DT><B>Throws:</B>
360<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>
361</DD>
362</DL>
363<HR>
364
365<A NAME="writeTo(java.io.OutputStream)"><!-- --></A><H3>
366writeTo</H3>
367<PRE>
368public void <B>writeTo</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A>&nbsp;os)
369             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>
370<DL>
371<DD><DL>
372</DL>
373</DD>
374<DD><DL>
375
376<DT><B>Throws:</B>
377<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>
378</DD>
379</DL>
380<!-- ========= END OF CLASS DATA ========= -->
381<HR>
382
383
384<!-- ======= START OF BOTTOM NAVBAR ====== -->
385<A NAME="navbar_bottom"><!-- --></A>
386<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
387<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
388<TR>
389<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
390<A NAME="navbar_bottom_firstrow"><!-- --></A>
391<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
392  <TR ALIGN="center" VALIGN="top">
393  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
394  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
395  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
396  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/RequestWriter.LazyContentStream.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
397  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
398  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
399  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
400  </TR>
401</TABLE>
402</TD>
403<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
404</EM>
405</TD>
406</TR>
407
408<TR>
409<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
410&nbsp;<A HREF="../../../../../../org/apache/solr/client/solrj/request/RequestWriter.html" title="class in org.apache.solr.client.solrj.request"><B>PREV CLASS</B></A>&nbsp;
411&nbsp;<A HREF="../../../../../../org/apache/solr/client/solrj/request/SolrPing.html" title="class in org.apache.solr.client.solrj.request"><B>NEXT CLASS</B></A></FONT></TD>
412<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
413  <A HREF="../../../../../../index.html?org/apache/solr/client/solrj/request/RequestWriter.LazyContentStream.html" target="_top"><B>FRAMES</B></A>  &nbsp;
414&nbsp;<A HREF="RequestWriter.LazyContentStream.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
415&nbsp;<SCRIPT type="text/javascript">
416  <!--
417  if(window==top) {
418    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
419  }
420  //-->
421</SCRIPT>
422<NOSCRIPT>
423  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
424</NOSCRIPT>
425
426
427</FONT></TD>
428</TR>
429<TR>
430<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
431  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
432<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
433DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
434</TR>
435</TABLE>
436<A NAME="skip-navbar_bottom"></A>
437<!-- ======== END OF BOTTOM NAVBAR ======= -->
438
439<HR>
440
441          <address>Copyright &copy; 2000-2012 Apache Software Foundation.  All Rights Reserved.</address>
442          <script src='../../../../../../prettify.js' type='text/javascript'></script>
443          <script type='text/javascript'>
444            (function(){
445              var oldonload = window.onload;
446              if (typeof oldonload != 'function') {
447                window.onload = prettyPrint;
448              } else {
449                window.onload = function() {
450                  oldonload();
451                  prettyPrint();
452                }
453              }
454            })();
455          </script>
456       
457</BODY>
458</HTML>
Note: See TracBrowser for help on using the repository browser.