source: branches/objectmq-1.0/lib/rabbitmq-java-client-javadoc-3.0.1/com/rabbitmq/client/impl/TruncatedInputStream.html

Last change on this file was 33, checked in by amoreno, 11 years ago

new release version

File size: 14.7 KB
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_18) on Tue Dec 11 11:47:11 GMT 2012 -->
6<TITLE>
7TruncatedInputStream
8</TITLE>
9
10<META NAME="date" CONTENT="2012-12-11">
11
12<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
13
14<SCRIPT type="text/javascript">
15function windowTitle()
16{
17    if (location.href.indexOf('is-external=true') == -1) {
18        parent.document.title="TruncatedInputStream";
19    }
20}
21</SCRIPT>
22<NOSCRIPT>
23</NOSCRIPT>
24
25</HEAD>
26
27<BODY BGCOLOR="white" onload="windowTitle();">
28<HR>
29
30
31<!-- ========= START OF TOP NAVBAR ======= -->
32<A NAME="navbar_top"><!-- --></A>
33<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
34<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
35<TR>
36<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
37<A NAME="navbar_top_firstrow"><!-- --></A>
38<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
39  <TR ALIGN="center" VALIGN="top">
40  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
41  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
42  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
43  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
44  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
45  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
46  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
47  </TR>
48</TABLE>
49</TD>
50<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
51</EM>
52</TD>
53</TR>
54
55<TR>
56<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
57&nbsp;<A HREF="../../../../com/rabbitmq/client/impl/SocketFrameHandler.html" title="class in com.rabbitmq.client.impl"><B>PREV CLASS</B></A>&nbsp;
58&nbsp;<A HREF="../../../../com/rabbitmq/client/impl/ValueReader.html" title="class in com.rabbitmq.client.impl"><B>NEXT CLASS</B></A></FONT></TD>
59<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
60  <A HREF="../../../../index.html?com/rabbitmq/client/impl/TruncatedInputStream.html" target="_top"><B>FRAMES</B></A>  &nbsp;
61&nbsp;<A HREF="TruncatedInputStream.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
62&nbsp;<SCRIPT type="text/javascript">
63  <!--
64  if(window==top) {
65    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
66  }
67  //-->
68</SCRIPT>
69<NOSCRIPT>
70  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
71</NOSCRIPT>
72
73
74</FONT></TD>
75</TR>
76<TR>
77<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
78  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_java.io.FilterInputStream">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
79<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
80DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
81</TR>
82</TABLE>
83<A NAME="skip-navbar_top"></A>
84<!-- ========= END OF TOP NAVBAR ========= -->
85
86<HR>
87<!-- ======== START OF CLASS DATA ======== -->
88<H2>
89<FONT SIZE="-1">
90com.rabbitmq.client.impl</FONT>
91<BR>
92Class TruncatedInputStream</H2>
93<PRE>
94java.lang.Object
95  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by ">java.io.InputStream
96      <IMG SRC="../../../../resources/inherit.gif" ALT="extended by ">java.io.FilterInputStream
97          <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.rabbitmq.client.impl.TruncatedInputStream</B>
98</PRE>
99<DL>
100<DT><B>All Implemented Interfaces:</B> <DD>java.io.Closeable</DD>
101</DL>
102<HR>
103<DL>
104<DT><PRE>public class <B>TruncatedInputStream</B><DT>extends java.io.FilterInputStream</DL>
105</PRE>
106
107<P>
108Utility stream: proxies another stream, making it appear to be no
109 longer than a preset limit.
110<P>
111
112<P>
113<HR>
114
115<P>
116<!-- =========== FIELD SUMMARY =========== -->
117
118<A NAME="field_summary"><!-- --></A>
119<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
120<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
121<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
122<B>Field Summary</B></FONT></TH>
123</TR>
124</TABLE>
125&nbsp;<A NAME="fields_inherited_from_class_java.io.FilterInputStream"><!-- --></A>
126<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
127<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
128<TH ALIGN="left"><B>Fields inherited from class java.io.FilterInputStream</B></TH>
129</TR>
130<TR BGCOLOR="white" CLASS="TableRowColor">
131<TD><CODE>in</CODE></TD>
132</TR>
133</TABLE>
134&nbsp;
135<!-- ======== CONSTRUCTOR SUMMARY ======== -->
136
137<A NAME="constructor_summary"><!-- --></A>
138<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
139<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
140<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
141<B>Constructor Summary</B></FONT></TH>
142</TR>
143<TR BGCOLOR="white" CLASS="TableRowColor">
144<TD><CODE><B><A HREF="../../../../com/rabbitmq/client/impl/TruncatedInputStream.html#TruncatedInputStream(java.io.InputStream, long)">TruncatedInputStream</A></B>(java.io.InputStream&nbsp;in,
145                     long&nbsp;limit)</CODE>
146
147<BR>
148&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
149</TR>
150</TABLE>
151&nbsp;
152<!-- ========== METHOD SUMMARY =========== -->
153
154<A NAME="method_summary"><!-- --></A>
155<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
156<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
157<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
158<B>Method Summary</B></FONT></TH>
159</TR>
160<TR BGCOLOR="white" CLASS="TableRowColor">
161<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
162<CODE>&nbsp;int</CODE></FONT></TD>
163<TD><CODE><B><A HREF="../../../../com/rabbitmq/client/impl/TruncatedInputStream.html#available()">available</A></B>()</CODE>
164
165<BR>
166&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
167</TR>
168<TR BGCOLOR="white" CLASS="TableRowColor">
169<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
170<CODE>&nbsp;void</CODE></FONT></TD>
171<TD><CODE><B><A HREF="../../../../com/rabbitmq/client/impl/TruncatedInputStream.html#mark(int)">mark</A></B>(int&nbsp;readlimit)</CODE>
172
173<BR>
174&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
175</TR>
176<TR BGCOLOR="white" CLASS="TableRowColor">
177<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
178<CODE>&nbsp;int</CODE></FONT></TD>
179<TD><CODE><B><A HREF="../../../../com/rabbitmq/client/impl/TruncatedInputStream.html#read()">read</A></B>()</CODE>
180
181<BR>
182&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
183</TR>
184<TR BGCOLOR="white" CLASS="TableRowColor">
185<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
186<CODE>&nbsp;int</CODE></FONT></TD>
187<TD><CODE><B><A HREF="../../../../com/rabbitmq/client/impl/TruncatedInputStream.html#read(byte[], int, int)">read</A></B>(byte[]&nbsp;b,
188     int&nbsp;off,
189     int&nbsp;len)</CODE>
190
191<BR>
192&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
193</TR>
194<TR BGCOLOR="white" CLASS="TableRowColor">
195<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
196<CODE>&nbsp;void</CODE></FONT></TD>
197<TD><CODE><B><A HREF="../../../../com/rabbitmq/client/impl/TruncatedInputStream.html#reset()">reset</A></B>()</CODE>
198
199<BR>
200&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
201</TR>
202<TR BGCOLOR="white" CLASS="TableRowColor">
203<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
204<CODE>&nbsp;long</CODE></FONT></TD>
205<TD><CODE><B><A HREF="../../../../com/rabbitmq/client/impl/TruncatedInputStream.html#skip(long)">skip</A></B>(long&nbsp;n)</CODE>
206
207<BR>
208&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
209</TR>
210</TABLE>
211&nbsp;<A NAME="methods_inherited_from_class_java.io.FilterInputStream"><!-- --></A>
212<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
213<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
214<TH ALIGN="left"><B>Methods inherited from class java.io.FilterInputStream</B></TH>
215</TR>
216<TR BGCOLOR="white" CLASS="TableRowColor">
217<TD><CODE>close, markSupported, read</CODE></TD>
218</TR>
219</TABLE>
220&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
221<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
222<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
223<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
224</TR>
225<TR BGCOLOR="white" CLASS="TableRowColor">
226<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
227</TR>
228</TABLE>
229&nbsp;
230<P>
231
232<!-- ========= CONSTRUCTOR DETAIL ======== -->
233
234<A NAME="constructor_detail"><!-- --></A>
235<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
236<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
237<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
238<B>Constructor Detail</B></FONT></TH>
239</TR>
240</TABLE>
241
242<A NAME="TruncatedInputStream(java.io.InputStream, long)"><!-- --></A><H3>
243TruncatedInputStream</H3>
244<PRE>
245public <B>TruncatedInputStream</B>(java.io.InputStream&nbsp;in,
246                            long&nbsp;limit)</PRE>
247<DL>
248</DL>
249
250<!-- ============ METHOD DETAIL ========== -->
251
252<A NAME="method_detail"><!-- --></A>
253<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
254<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
255<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
256<B>Method Detail</B></FONT></TH>
257</TR>
258</TABLE>
259
260<A NAME="available()"><!-- --></A><H3>
261available</H3>
262<PRE>
263public int <B>available</B>()
264              throws java.io.IOException</PRE>
265<DL>
266<DD><DL>
267<DT><B>Overrides:</B><DD><CODE>available</CODE> in class <CODE>java.io.FilterInputStream</CODE></DL>
268</DD>
269<DD><DL>
270
271<DT><B>Throws:</B>
272<DD><CODE>java.io.IOException</CODE></DL>
273</DD>
274</DL>
275<HR>
276
277<A NAME="mark(int)"><!-- --></A><H3>
278mark</H3>
279<PRE>
280public void <B>mark</B>(int&nbsp;readlimit)</PRE>
281<DL>
282<DD><DL>
283<DT><B>Overrides:</B><DD><CODE>mark</CODE> in class <CODE>java.io.FilterInputStream</CODE></DL>
284</DD>
285<DD><DL>
286</DL>
287</DD>
288</DL>
289<HR>
290
291<A NAME="read()"><!-- --></A><H3>
292read</H3>
293<PRE>
294public int <B>read</B>()
295         throws java.io.IOException</PRE>
296<DL>
297<DD><DL>
298<DT><B>Overrides:</B><DD><CODE>read</CODE> in class <CODE>java.io.FilterInputStream</CODE></DL>
299</DD>
300<DD><DL>
301
302<DT><B>Throws:</B>
303<DD><CODE>java.io.IOException</CODE></DL>
304</DD>
305</DL>
306<HR>
307
308<A NAME="read(byte[], int, int)"><!-- --></A><H3>
309read</H3>
310<PRE>
311public int <B>read</B>(byte[]&nbsp;b,
312                int&nbsp;off,
313                int&nbsp;len)
314         throws java.io.IOException</PRE>
315<DL>
316<DD><DL>
317<DT><B>Overrides:</B><DD><CODE>read</CODE> in class <CODE>java.io.FilterInputStream</CODE></DL>
318</DD>
319<DD><DL>
320
321<DT><B>Throws:</B>
322<DD><CODE>java.io.IOException</CODE></DL>
323</DD>
324</DL>
325<HR>
326
327<A NAME="reset()"><!-- --></A><H3>
328reset</H3>
329<PRE>
330public void <B>reset</B>()
331           throws java.io.IOException</PRE>
332<DL>
333<DD><DL>
334<DT><B>Overrides:</B><DD><CODE>reset</CODE> in class <CODE>java.io.FilterInputStream</CODE></DL>
335</DD>
336<DD><DL>
337
338<DT><B>Throws:</B>
339<DD><CODE>java.io.IOException</CODE></DL>
340</DD>
341</DL>
342<HR>
343
344<A NAME="skip(long)"><!-- --></A><H3>
345skip</H3>
346<PRE>
347public long <B>skip</B>(long&nbsp;n)
348          throws java.io.IOException</PRE>
349<DL>
350<DD><DL>
351<DT><B>Overrides:</B><DD><CODE>skip</CODE> in class <CODE>java.io.FilterInputStream</CODE></DL>
352</DD>
353<DD><DL>
354
355<DT><B>Throws:</B>
356<DD><CODE>java.io.IOException</CODE></DL>
357</DD>
358</DL>
359<!-- ========= END OF CLASS DATA ========= -->
360<HR>
361
362
363<!-- ======= START OF BOTTOM NAVBAR ====== -->
364<A NAME="navbar_bottom"><!-- --></A>
365<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
366<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
367<TR>
368<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
369<A NAME="navbar_bottom_firstrow"><!-- --></A>
370<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
371  <TR ALIGN="center" VALIGN="top">
372  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
373  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
374  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
375  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
376  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
377  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
378  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
379  </TR>
380</TABLE>
381</TD>
382<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
383</EM>
384</TD>
385</TR>
386
387<TR>
388<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
389&nbsp;<A HREF="../../../../com/rabbitmq/client/impl/SocketFrameHandler.html" title="class in com.rabbitmq.client.impl"><B>PREV CLASS</B></A>&nbsp;
390&nbsp;<A HREF="../../../../com/rabbitmq/client/impl/ValueReader.html" title="class in com.rabbitmq.client.impl"><B>NEXT CLASS</B></A></FONT></TD>
391<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
392  <A HREF="../../../../index.html?com/rabbitmq/client/impl/TruncatedInputStream.html" target="_top"><B>FRAMES</B></A>  &nbsp;
393&nbsp;<A HREF="TruncatedInputStream.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
394&nbsp;<SCRIPT type="text/javascript">
395  <!--
396  if(window==top) {
397    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
398  }
399  //-->
400</SCRIPT>
401<NOSCRIPT>
402  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
403</NOSCRIPT>
404
405
406</FONT></TD>
407</TR>
408<TR>
409<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
410  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_java.io.FilterInputStream">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
411<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
412DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
413</TR>
414</TABLE>
415<A NAME="skip-navbar_bottom"></A>
416<!-- ======== END OF BOTTOM NAVBAR ======= -->
417
418<HR>
419
420</BODY>
421</HTML>
Note: See TracBrowser for help on using the repository browser.