source: proiecte/HadoopJUnit/hadoop-0.20.1/docs/api/org/apache/hadoop/io/compress/bzip2/BZip2DummyCompressor.html @ 120

Last change on this file since 120 was 120, checked in by (none), 14 years ago

Added the mail files for the Hadoop JUNit Project

  • Property svn:executable set to *
File size: 24.8 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_07) on Tue Sep 01 20:56:53 UTC 2009 -->
6<TITLE>
7BZip2DummyCompressor (Hadoop 0.20.1 API)
8</TITLE>
9
10<META NAME="date" CONTENT="2009-09-01">
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="BZip2DummyCompressor (Hadoop 0.20.1 API)";
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="class-use/BZip2DummyCompressor.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
44  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
45  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
46  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</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/hadoop/io/compress/bzip2/BZip2Constants.html" title="interface in org.apache.hadoop.io.compress.bzip2"><B>PREV CLASS</B></A>&nbsp;
59&nbsp;<A HREF="../../../../../../org/apache/hadoop/io/compress/bzip2/BZip2DummyDecompressor.html" title="class in org.apache.hadoop.io.compress.bzip2"><B>NEXT CLASS</B></A></FONT></TD>
60<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
61  <A HREF="../../../../../../index.html?org/apache/hadoop/io/compress/bzip2/BZip2DummyCompressor.html" target="_top"><B>FRAMES</B></A>  &nbsp;
62&nbsp;<A HREF="BZip2DummyCompressor.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.hadoop.io.compress.bzip2</FONT>
92<BR>
93Class BZip2DummyCompressor</H2>
94<PRE>
95<A HREF="http://java.sun.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.hadoop.io.compress.bzip2.BZip2DummyCompressor</B>
97</PRE>
98<DL>
99<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../../org/apache/hadoop/io/compress/Compressor.html" title="interface in org.apache.hadoop.io.compress">Compressor</A></DD>
100</DL>
101<HR>
102<DL>
103<DT><PRE>public class <B>BZip2DummyCompressor</B><DT>extends <A HREF="http://java.sun.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/hadoop/io/compress/Compressor.html" title="interface in org.apache.hadoop.io.compress">Compressor</A></DL>
104</PRE>
105
106<P>
107This is a dummy compressor for BZip2.
108<P>
109
110<P>
111<HR>
112
113<P>
114
115<!-- ======== CONSTRUCTOR SUMMARY ======== -->
116
117<A NAME="constructor_summary"><!-- --></A>
118<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
119<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
120<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
121<B>Constructor Summary</B></FONT></TH>
122</TR>
123<TR BGCOLOR="white" CLASS="TableRowColor">
124<TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/io/compress/bzip2/BZip2DummyCompressor.html#BZip2DummyCompressor()">BZip2DummyCompressor</A></B>()</CODE>
125
126<BR>
127&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
128</TR>
129</TABLE>
130&nbsp;
131<!-- ========== METHOD SUMMARY =========== -->
132
133<A NAME="method_summary"><!-- --></A>
134<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
135<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
136<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
137<B>Method Summary</B></FONT></TH>
138</TR>
139<TR BGCOLOR="white" CLASS="TableRowColor">
140<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
141<CODE>&nbsp;int</CODE></FONT></TD>
142<TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/io/compress/bzip2/BZip2DummyCompressor.html#compress(byte[], int, int)">compress</A></B>(byte[]&nbsp;b,
143         int&nbsp;off,
144         int&nbsp;len)</CODE>
145
146<BR>
147&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fills specified buffer with compressed data.</TD>
148</TR>
149<TR BGCOLOR="white" CLASS="TableRowColor">
150<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
151<CODE>&nbsp;void</CODE></FONT></TD>
152<TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/io/compress/bzip2/BZip2DummyCompressor.html#end()">end</A></B>()</CODE>
153
154<BR>
155&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Closes the compressor and discards any unprocessed input.</TD>
156</TR>
157<TR BGCOLOR="white" CLASS="TableRowColor">
158<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
159<CODE>&nbsp;void</CODE></FONT></TD>
160<TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/io/compress/bzip2/BZip2DummyCompressor.html#finish()">finish</A></B>()</CODE>
161
162<BR>
163&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;When called, indicates that compression should end
164 with the current contents of the input buffer.</TD>
165</TR>
166<TR BGCOLOR="white" CLASS="TableRowColor">
167<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
168<CODE>&nbsp;boolean</CODE></FONT></TD>
169<TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/io/compress/bzip2/BZip2DummyCompressor.html#finished()">finished</A></B>()</CODE>
170
171<BR>
172&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the end of the compressed
173 data output stream has been reached.</TD>
174</TR>
175<TR BGCOLOR="white" CLASS="TableRowColor">
176<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
177<CODE>&nbsp;long</CODE></FONT></TD>
178<TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/io/compress/bzip2/BZip2DummyCompressor.html#getBytesRead()">getBytesRead</A></B>()</CODE>
179
180<BR>
181&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return number of uncompressed bytes input so far.</TD>
182</TR>
183<TR BGCOLOR="white" CLASS="TableRowColor">
184<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
185<CODE>&nbsp;long</CODE></FONT></TD>
186<TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/io/compress/bzip2/BZip2DummyCompressor.html#getBytesWritten()">getBytesWritten</A></B>()</CODE>
187
188<BR>
189&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return number of compressed bytes output so far.</TD>
190</TR>
191<TR BGCOLOR="white" CLASS="TableRowColor">
192<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
193<CODE>&nbsp;boolean</CODE></FONT></TD>
194<TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/io/compress/bzip2/BZip2DummyCompressor.html#needsInput()">needsInput</A></B>()</CODE>
195
196<BR>
197&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the input data buffer is empty and
198 #setInput() should be called to provide more input.</TD>
199</TR>
200<TR BGCOLOR="white" CLASS="TableRowColor">
201<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
202<CODE>&nbsp;void</CODE></FONT></TD>
203<TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/io/compress/bzip2/BZip2DummyCompressor.html#reset()">reset</A></B>()</CODE>
204
205<BR>
206&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Resets compressor so that a new set of input data can be processed.</TD>
207</TR>
208<TR BGCOLOR="white" CLASS="TableRowColor">
209<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
210<CODE>&nbsp;void</CODE></FONT></TD>
211<TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/io/compress/bzip2/BZip2DummyCompressor.html#setDictionary(byte[], int, int)">setDictionary</A></B>(byte[]&nbsp;b,
212              int&nbsp;off,
213              int&nbsp;len)</CODE>
214
215<BR>
216&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets preset dictionary for compression.</TD>
217</TR>
218<TR BGCOLOR="white" CLASS="TableRowColor">
219<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
220<CODE>&nbsp;void</CODE></FONT></TD>
221<TD><CODE><B><A HREF="../../../../../../org/apache/hadoop/io/compress/bzip2/BZip2DummyCompressor.html#setInput(byte[], int, int)">setInput</A></B>(byte[]&nbsp;b,
222         int&nbsp;off,
223         int&nbsp;len)</CODE>
224
225<BR>
226&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets input data for compression.</TD>
227</TR>
228</TABLE>
229&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
230<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
231<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
232<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
233</TR>
234<TR BGCOLOR="white" CLASS="TableRowColor">
235<TD><CODE><A HREF="http://java.sun.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://java.sun.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://java.sun.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://java.sun.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://java.sun.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://java.sun.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://java.sun.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://java.sun.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://java.sun.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://java.sun.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://java.sun.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>
236</TR>
237</TABLE>
238&nbsp;
239<P>
240
241<!-- ========= CONSTRUCTOR DETAIL ======== -->
242
243<A NAME="constructor_detail"><!-- --></A>
244<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
245<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
246<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
247<B>Constructor Detail</B></FONT></TH>
248</TR>
249</TABLE>
250
251<A NAME="BZip2DummyCompressor()"><!-- --></A><H3>
252BZip2DummyCompressor</H3>
253<PRE>
254public <B>BZip2DummyCompressor</B>()</PRE>
255<DL>
256</DL>
257
258<!-- ============ METHOD DETAIL ========== -->
259
260<A NAME="method_detail"><!-- --></A>
261<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
262<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
263<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
264<B>Method Detail</B></FONT></TH>
265</TR>
266</TABLE>
267
268<A NAME="compress(byte[], int, int)"><!-- --></A><H3>
269compress</H3>
270<PRE>
271public int <B>compress</B>(byte[]&nbsp;b,
272                    int&nbsp;off,
273                    int&nbsp;len)
274             throws <A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE>
275<DL>
276<DD><B>Description copied from interface: <CODE><A HREF="../../../../../../org/apache/hadoop/io/compress/Compressor.html#compress(byte[], int, int)">Compressor</A></CODE></B></DD>
277<DD>Fills specified buffer with compressed data. Returns actual number
278 of bytes of compressed data. A return value of 0 indicates that
279 needsInput() should be called in order to determine if more input
280 data is required.
281<P>
282<DD><DL>
283<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../org/apache/hadoop/io/compress/Compressor.html#compress(byte[], int, int)">compress</A></CODE> in interface <CODE><A HREF="../../../../../../org/apache/hadoop/io/compress/Compressor.html" title="interface in org.apache.hadoop.io.compress">Compressor</A></CODE></DL>
284</DD>
285<DD><DL>
286<DT><B>Parameters:</B><DD><CODE>b</CODE> - Buffer for the compressed data<DD><CODE>off</CODE> - Start offset of the data<DD><CODE>len</CODE> - Size of the buffer
287<DT><B>Returns:</B><DD>The actual number of bytes of compressed data.
288<DT><B>Throws:</B>
289<DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL>
290</DD>
291</DL>
292<HR>
293
294<A NAME="end()"><!-- --></A><H3>
295end</H3>
296<PRE>
297public void <B>end</B>()</PRE>
298<DL>
299<DD><B>Description copied from interface: <CODE><A HREF="../../../../../../org/apache/hadoop/io/compress/Compressor.html#end()">Compressor</A></CODE></B></DD>
300<DD>Closes the compressor and discards any unprocessed input.
301<P>
302<DD><DL>
303<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../org/apache/hadoop/io/compress/Compressor.html#end()">end</A></CODE> in interface <CODE><A HREF="../../../../../../org/apache/hadoop/io/compress/Compressor.html" title="interface in org.apache.hadoop.io.compress">Compressor</A></CODE></DL>
304</DD>
305<DD><DL>
306</DL>
307</DD>
308</DL>
309<HR>
310
311<A NAME="finish()"><!-- --></A><H3>
312finish</H3>
313<PRE>
314public void <B>finish</B>()</PRE>
315<DL>
316<DD><B>Description copied from interface: <CODE><A HREF="../../../../../../org/apache/hadoop/io/compress/Compressor.html#finish()">Compressor</A></CODE></B></DD>
317<DD>When called, indicates that compression should end
318 with the current contents of the input buffer.
319<P>
320<DD><DL>
321<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../org/apache/hadoop/io/compress/Compressor.html#finish()">finish</A></CODE> in interface <CODE><A HREF="../../../../../../org/apache/hadoop/io/compress/Compressor.html" title="interface in org.apache.hadoop.io.compress">Compressor</A></CODE></DL>
322</DD>
323<DD><DL>
324</DL>
325</DD>
326</DL>
327<HR>
328
329<A NAME="finished()"><!-- --></A><H3>
330finished</H3>
331<PRE>
332public boolean <B>finished</B>()</PRE>
333<DL>
334<DD><B>Description copied from interface: <CODE><A HREF="../../../../../../org/apache/hadoop/io/compress/Compressor.html#finished()">Compressor</A></CODE></B></DD>
335<DD>Returns true if the end of the compressed
336 data output stream has been reached.
337<P>
338<DD><DL>
339<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../org/apache/hadoop/io/compress/Compressor.html#finished()">finished</A></CODE> in interface <CODE><A HREF="../../../../../../org/apache/hadoop/io/compress/Compressor.html" title="interface in org.apache.hadoop.io.compress">Compressor</A></CODE></DL>
340</DD>
341<DD><DL>
342
343<DT><B>Returns:</B><DD><code>true</code> if the end of the compressed
344 data output stream has been reached.</DL>
345</DD>
346</DL>
347<HR>
348
349<A NAME="getBytesRead()"><!-- --></A><H3>
350getBytesRead</H3>
351<PRE>
352public long <B>getBytesRead</B>()</PRE>
353<DL>
354<DD><B>Description copied from interface: <CODE><A HREF="../../../../../../org/apache/hadoop/io/compress/Compressor.html#getBytesRead()">Compressor</A></CODE></B></DD>
355<DD>Return number of uncompressed bytes input so far.
356<P>
357<DD><DL>
358<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../org/apache/hadoop/io/compress/Compressor.html#getBytesRead()">getBytesRead</A></CODE> in interface <CODE><A HREF="../../../../../../org/apache/hadoop/io/compress/Compressor.html" title="interface in org.apache.hadoop.io.compress">Compressor</A></CODE></DL>
359</DD>
360<DD><DL>
361</DL>
362</DD>
363</DL>
364<HR>
365
366<A NAME="getBytesWritten()"><!-- --></A><H3>
367getBytesWritten</H3>
368<PRE>
369public long <B>getBytesWritten</B>()</PRE>
370<DL>
371<DD><B>Description copied from interface: <CODE><A HREF="../../../../../../org/apache/hadoop/io/compress/Compressor.html#getBytesWritten()">Compressor</A></CODE></B></DD>
372<DD>Return number of compressed bytes output so far.
373<P>
374<DD><DL>
375<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../org/apache/hadoop/io/compress/Compressor.html#getBytesWritten()">getBytesWritten</A></CODE> in interface <CODE><A HREF="../../../../../../org/apache/hadoop/io/compress/Compressor.html" title="interface in org.apache.hadoop.io.compress">Compressor</A></CODE></DL>
376</DD>
377<DD><DL>
378</DL>
379</DD>
380</DL>
381<HR>
382
383<A NAME="needsInput()"><!-- --></A><H3>
384needsInput</H3>
385<PRE>
386public boolean <B>needsInput</B>()</PRE>
387<DL>
388<DD><B>Description copied from interface: <CODE><A HREF="../../../../../../org/apache/hadoop/io/compress/Compressor.html#needsInput()">Compressor</A></CODE></B></DD>
389<DD>Returns true if the input data buffer is empty and
390 #setInput() should be called to provide more input.
391<P>
392<DD><DL>
393<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../org/apache/hadoop/io/compress/Compressor.html#needsInput()">needsInput</A></CODE> in interface <CODE><A HREF="../../../../../../org/apache/hadoop/io/compress/Compressor.html" title="interface in org.apache.hadoop.io.compress">Compressor</A></CODE></DL>
394</DD>
395<DD><DL>
396
397<DT><B>Returns:</B><DD><code>true</code> if the input data buffer is empty and
398 #setInput() should be called in order to provide more input.</DL>
399</DD>
400</DL>
401<HR>
402
403<A NAME="reset()"><!-- --></A><H3>
404reset</H3>
405<PRE>
406public void <B>reset</B>()</PRE>
407<DL>
408<DD><B>Description copied from interface: <CODE><A HREF="../../../../../../org/apache/hadoop/io/compress/Compressor.html#reset()">Compressor</A></CODE></B></DD>
409<DD>Resets compressor so that a new set of input data can be processed.
410<P>
411<DD><DL>
412<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../org/apache/hadoop/io/compress/Compressor.html#reset()">reset</A></CODE> in interface <CODE><A HREF="../../../../../../org/apache/hadoop/io/compress/Compressor.html" title="interface in org.apache.hadoop.io.compress">Compressor</A></CODE></DL>
413</DD>
414<DD><DL>
415</DL>
416</DD>
417</DL>
418<HR>
419
420<A NAME="setDictionary(byte[], int, int)"><!-- --></A><H3>
421setDictionary</H3>
422<PRE>
423public void <B>setDictionary</B>(byte[]&nbsp;b,
424                          int&nbsp;off,
425                          int&nbsp;len)</PRE>
426<DL>
427<DD><B>Description copied from interface: <CODE><A HREF="../../../../../../org/apache/hadoop/io/compress/Compressor.html#setDictionary(byte[], int, int)">Compressor</A></CODE></B></DD>
428<DD>Sets preset dictionary for compression. A preset dictionary
429 is used when the history buffer can be predetermined.
430<P>
431<DD><DL>
432<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../org/apache/hadoop/io/compress/Compressor.html#setDictionary(byte[], int, int)">setDictionary</A></CODE> in interface <CODE><A HREF="../../../../../../org/apache/hadoop/io/compress/Compressor.html" title="interface in org.apache.hadoop.io.compress">Compressor</A></CODE></DL>
433</DD>
434<DD><DL>
435<DT><B>Parameters:</B><DD><CODE>b</CODE> - Dictionary data bytes<DD><CODE>off</CODE> - Start offset<DD><CODE>len</CODE> - Length</DL>
436</DD>
437</DL>
438<HR>
439
440<A NAME="setInput(byte[], int, int)"><!-- --></A><H3>
441setInput</H3>
442<PRE>
443public void <B>setInput</B>(byte[]&nbsp;b,
444                     int&nbsp;off,
445                     int&nbsp;len)</PRE>
446<DL>
447<DD><B>Description copied from interface: <CODE><A HREF="../../../../../../org/apache/hadoop/io/compress/Compressor.html#setInput(byte[], int, int)">Compressor</A></CODE></B></DD>
448<DD>Sets input data for compression.
449 This should be called whenever #needsInput() returns
450 <code>true</code> indicating that more input data is required.
451<P>
452<DD><DL>
453<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../../org/apache/hadoop/io/compress/Compressor.html#setInput(byte[], int, int)">setInput</A></CODE> in interface <CODE><A HREF="../../../../../../org/apache/hadoop/io/compress/Compressor.html" title="interface in org.apache.hadoop.io.compress">Compressor</A></CODE></DL>
454</DD>
455<DD><DL>
456<DT><B>Parameters:</B><DD><CODE>b</CODE> - Input data<DD><CODE>off</CODE> - Start offset<DD><CODE>len</CODE> - Length</DL>
457</DD>
458</DL>
459<!-- ========= END OF CLASS DATA ========= -->
460<HR>
461
462
463<!-- ======= START OF BOTTOM NAVBAR ====== -->
464<A NAME="navbar_bottom"><!-- --></A>
465<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
466<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
467<TR>
468<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
469<A NAME="navbar_bottom_firstrow"><!-- --></A>
470<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
471  <TR ALIGN="center" VALIGN="top">
472  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
473  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
474  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
475  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/BZip2DummyCompressor.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
476  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
477  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
478  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
479  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
480  </TR>
481</TABLE>
482</TD>
483<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
484</EM>
485</TD>
486</TR>
487
488<TR>
489<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
490&nbsp;<A HREF="../../../../../../org/apache/hadoop/io/compress/bzip2/BZip2Constants.html" title="interface in org.apache.hadoop.io.compress.bzip2"><B>PREV CLASS</B></A>&nbsp;
491&nbsp;<A HREF="../../../../../../org/apache/hadoop/io/compress/bzip2/BZip2DummyDecompressor.html" title="class in org.apache.hadoop.io.compress.bzip2"><B>NEXT CLASS</B></A></FONT></TD>
492<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
493  <A HREF="../../../../../../index.html?org/apache/hadoop/io/compress/bzip2/BZip2DummyCompressor.html" target="_top"><B>FRAMES</B></A>  &nbsp;
494&nbsp;<A HREF="BZip2DummyCompressor.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
495&nbsp;<SCRIPT type="text/javascript">
496  <!--
497  if(window==top) {
498    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
499  }
500  //-->
501</SCRIPT>
502<NOSCRIPT>
503  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
504</NOSCRIPT>
505
506
507</FONT></TD>
508</TR>
509<TR>
510<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
511  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
512<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
513DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
514</TR>
515</TABLE>
516<A NAME="skip-navbar_bottom"></A>
517<!-- ======== END OF BOTTOM NAVBAR ======= -->
518
519<HR>
520Copyright &copy; 2009 The Apache Software Foundation
521</BODY>
522</HTML>
Note: See TracBrowser for help on using the repository browser.