source: proiecte/HadoopJUnit/hadoop-0.20.1/docs/api/org/apache/hadoop/fs/FSOutputSummer.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: 21.3 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:51 UTC 2009 -->
6<TITLE>
7FSOutputSummer (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="FSOutputSummer (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/FSOutputSummer.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/fs/FSInputStream.html" title="class in org.apache.hadoop.fs"><B>PREV CLASS</B></A>&nbsp;
59&nbsp;<A HREF="../../../../org/apache/hadoop/fs/FsShell.html" title="class in org.apache.hadoop.fs"><B>NEXT CLASS</B></A></FONT></TD>
60<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
61  <A HREF="../../../../index.html?org/apache/hadoop/fs/FSOutputSummer.html" target="_top"><B>FRAMES</B></A>  &nbsp;
62&nbsp;<A HREF="FSOutputSummer.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.fs</FONT>
92<BR>
93Class FSOutputSummer</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 "><A HREF="http://java.sun.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">java.io.OutputStream</A>
97      <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.hadoop.fs.FSOutputSummer</B>
98</PRE>
99<DL>
100<DT><B>All Implemented Interfaces:</B> <DD><A HREF="http://java.sun.com/javase/6/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io">Closeable</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/io/Flushable.html?is-external=true" title="class or interface in java.io">Flushable</A></DD>
101</DL>
102<HR>
103<DL>
104<DT><PRE>public abstract class <B>FSOutputSummer</B><DT>extends <A HREF="http://java.sun.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A></DL>
105</PRE>
106
107<P>
108This is a generic output stream for generating checksums for
109 data before it is written to the underlying stream
110<P>
111
112<P>
113<HR>
114
115<P>
116
117<!-- ======== CONSTRUCTOR SUMMARY ======== -->
118
119<A NAME="constructor_summary"><!-- --></A>
120<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
121<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
122<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
123<B>Constructor Summary</B></FONT></TH>
124</TR>
125<TR BGCOLOR="white" CLASS="TableRowColor">
126<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
127<CODE>protected </CODE></FONT></TD>
128<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FSOutputSummer.html#FSOutputSummer(java.util.zip.Checksum, int, int)">FSOutputSummer</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/zip/Checksum.html?is-external=true" title="class or interface in java.util.zip">Checksum</A>&nbsp;sum,
129               int&nbsp;maxChunkSize,
130               int&nbsp;checksumSize)</CODE>
131
132<BR>
133&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
134</TR>
135</TABLE>
136&nbsp;
137<!-- ========== METHOD SUMMARY =========== -->
138
139<A NAME="method_summary"><!-- --></A>
140<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
141<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
142<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
143<B>Method Summary</B></FONT></TH>
144</TR>
145<TR BGCOLOR="white" CLASS="TableRowColor">
146<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
147<CODE>static&nbsp;byte[]</CODE></FONT></TD>
148<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FSOutputSummer.html#convertToByteStream(java.util.zip.Checksum, int)">convertToByteStream</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/zip/Checksum.html?is-external=true" title="class or interface in java.util.zip">Checksum</A>&nbsp;sum,
149                    int&nbsp;checksumSize)</CODE>
150
151<BR>
152&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts a checksum integer value to a byte stream</TD>
153</TR>
154<TR BGCOLOR="white" CLASS="TableRowColor">
155<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
156<CODE>protected &nbsp;void</CODE></FONT></TD>
157<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FSOutputSummer.html#flushBuffer()">flushBuffer</A></B>()</CODE>
158
159<BR>
160&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
161</TR>
162<TR BGCOLOR="white" CLASS="TableRowColor">
163<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
164<CODE>protected &nbsp;void</CODE></FONT></TD>
165<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FSOutputSummer.html#flushBuffer(boolean)">flushBuffer</A></B>(boolean&nbsp;keep)</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>protected &nbsp;void</CODE></FONT></TD>
173<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FSOutputSummer.html#resetChecksumChunk(int)">resetChecksumChunk</A></B>(int&nbsp;size)</CODE>
174
175<BR>
176&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Resets existing buffer with a new one of the specified size.</TD>
177</TR>
178<TR BGCOLOR="white" CLASS="TableRowColor">
179<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
180<CODE>&nbsp;void</CODE></FONT></TD>
181<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FSOutputSummer.html#write(byte[], int, int)">write</A></B>(byte[]&nbsp;b,
182      int&nbsp;off,
183      int&nbsp;len)</CODE>
184
185<BR>
186&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes <code>len</code> bytes from the specified byte array
187 starting at offset <code>off</code> and generate a checksum for
188 each data chunk.</TD>
189</TR>
190<TR BGCOLOR="white" CLASS="TableRowColor">
191<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
192<CODE>&nbsp;void</CODE></FONT></TD>
193<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FSOutputSummer.html#write(int)">write</A></B>(int&nbsp;b)</CODE>
194
195<BR>
196&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write one byte</TD>
197</TR>
198<TR BGCOLOR="white" CLASS="TableRowColor">
199<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
200<CODE>protected abstract &nbsp;void</CODE></FONT></TD>
201<TD><CODE><B><A HREF="../../../../org/apache/hadoop/fs/FSOutputSummer.html#writeChunk(byte[], int, int, byte[])">writeChunk</A></B>(byte[]&nbsp;b,
202           int&nbsp;offset,
203           int&nbsp;len,
204           byte[]&nbsp;checksum)</CODE>
205
206<BR>
207&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
208</TR>
209</TABLE>
210&nbsp;<A NAME="methods_inherited_from_class_java.io.OutputStream"><!-- --></A>
211<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
212<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
213<TH ALIGN="left"><B>Methods inherited from class java.io.<A HREF="http://java.sun.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A></B></TH>
214</TR>
215<TR BGCOLOR="white" CLASS="TableRowColor">
216<TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true#close()" title="class or interface in java.io">close</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true#flush()" title="class or interface in java.io">flush</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true#write(byte[])" title="class or interface in java.io">write</A></CODE></TD>
217</TR>
218</TABLE>
219&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
220<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
221<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
222<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>
223</TR>
224<TR BGCOLOR="white" CLASS="TableRowColor">
225<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>
226</TR>
227</TABLE>
228&nbsp;
229<P>
230
231<!-- ========= CONSTRUCTOR DETAIL ======== -->
232
233<A NAME="constructor_detail"><!-- --></A>
234<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
235<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
236<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
237<B>Constructor Detail</B></FONT></TH>
238</TR>
239</TABLE>
240
241<A NAME="FSOutputSummer(java.util.zip.Checksum, int, int)"><!-- --></A><H3>
242FSOutputSummer</H3>
243<PRE>
244protected <B>FSOutputSummer</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/zip/Checksum.html?is-external=true" title="class or interface in java.util.zip">Checksum</A>&nbsp;sum,
245                         int&nbsp;maxChunkSize,
246                         int&nbsp;checksumSize)</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="writeChunk(byte[], int, int, byte[])"><!-- --></A><H3>
261writeChunk</H3>
262<PRE>
263protected abstract void <B>writeChunk</B>(byte[]&nbsp;b,
264                                   int&nbsp;offset,
265                                   int&nbsp;len,
266                                   byte[]&nbsp;checksum)
267                            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>
268<DL>
269<DD><DL>
270
271<DT><B>Throws:</B>
272<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>
273</DD>
274</DL>
275<HR>
276
277<A NAME="write(int)"><!-- --></A><H3>
278write</H3>
279<PRE>
280public void <B>write</B>(int&nbsp;b)
281           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>
282<DL>
283<DD>Write one byte
284<P>
285<DD><DL>
286<DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true#write(int)" title="class or interface in java.io">write</A></CODE> in class <CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A></CODE></DL>
287</DD>
288<DD><DL>
289
290<DT><B>Throws:</B>
291<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>
292</DD>
293</DL>
294<HR>
295
296<A NAME="write(byte[], int, int)"><!-- --></A><H3>
297write</H3>
298<PRE>
299public void <B>write</B>(byte[]&nbsp;b,
300                  int&nbsp;off,
301                  int&nbsp;len)
302           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>
303<DL>
304<DD>Writes <code>len</code> bytes from the specified byte array
305 starting at offset <code>off</code> and generate a checksum for
306 each data chunk.
307
308 <p> This method stores bytes from the given array into this
309 stream's buffer before it gets checksumed. The buffer gets checksumed
310 and flushed to the underlying output stream when all data
311 in a checksum chunk are in the buffer.  If the buffer is empty and
312 requested length is at least as large as the size of next checksum chunk
313 size, this method will checksum and write the chunk directly
314 to the underlying output stream.  Thus it avoids uneccessary data copy.
315<P>
316<DD><DL>
317<DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true#write(byte[], int, int)" title="class or interface in java.io">write</A></CODE> in class <CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A></CODE></DL>
318</DD>
319<DD><DL>
320<DT><B>Parameters:</B><DD><CODE>b</CODE> - the data.<DD><CODE>off</CODE> - the start offset in the data.<DD><CODE>len</CODE> - the number of bytes to write.
321<DT><B>Throws:</B>
322<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> - if an I/O error occurs.</DL>
323</DD>
324</DL>
325<HR>
326
327<A NAME="flushBuffer()"><!-- --></A><H3>
328flushBuffer</H3>
329<PRE>
330protected void <B>flushBuffer</B>()
331                    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>
332<DL>
333<DD><DL>
334
335<DT><B>Throws:</B>
336<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>
337</DD>
338</DL>
339<HR>
340
341<A NAME="flushBuffer(boolean)"><!-- --></A><H3>
342flushBuffer</H3>
343<PRE>
344protected void <B>flushBuffer</B>(boolean&nbsp;keep)
345                    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>
346<DL>
347<DD><DL>
348
349<DT><B>Throws:</B>
350<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>
351</DD>
352</DL>
353<HR>
354
355<A NAME="convertToByteStream(java.util.zip.Checksum, int)"><!-- --></A><H3>
356convertToByteStream</H3>
357<PRE>
358public static byte[] <B>convertToByteStream</B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/zip/Checksum.html?is-external=true" title="class or interface in java.util.zip">Checksum</A>&nbsp;sum,
359                                         int&nbsp;checksumSize)</PRE>
360<DL>
361<DD>Converts a checksum integer value to a byte stream
362<P>
363<DD><DL>
364</DL>
365</DD>
366</DL>
367<HR>
368
369<A NAME="resetChecksumChunk(int)"><!-- --></A><H3>
370resetChecksumChunk</H3>
371<PRE>
372protected void <B>resetChecksumChunk</B>(int&nbsp;size)</PRE>
373<DL>
374<DD>Resets existing buffer with a new one of the specified size.
375<P>
376<DD><DL>
377</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/FSOutputSummer.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="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
400  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
401  </TR>
402</TABLE>
403</TD>
404<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
405</EM>
406</TD>
407</TR>
408
409<TR>
410<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
411&nbsp;<A HREF="../../../../org/apache/hadoop/fs/FSInputStream.html" title="class in org.apache.hadoop.fs"><B>PREV CLASS</B></A>&nbsp;
412&nbsp;<A HREF="../../../../org/apache/hadoop/fs/FsShell.html" title="class in org.apache.hadoop.fs"><B>NEXT CLASS</B></A></FONT></TD>
413<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
414  <A HREF="../../../../index.html?org/apache/hadoop/fs/FSOutputSummer.html" target="_top"><B>FRAMES</B></A>  &nbsp;
415&nbsp;<A HREF="FSOutputSummer.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
416&nbsp;<SCRIPT type="text/javascript">
417  <!--
418  if(window==top) {
419    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
420  }
421  //-->
422</SCRIPT>
423<NOSCRIPT>
424  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
425</NOSCRIPT>
426
427
428</FONT></TD>
429</TR>
430<TR>
431<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
432  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
433<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
434DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
435</TR>
436</TABLE>
437<A NAME="skip-navbar_bottom"></A>
438<!-- ======== END OF BOTTOM NAVBAR ======= -->
439
440<HR>
441Copyright &copy; 2009 The Apache Software Foundation
442</BODY>
443</HTML>
Note: See TracBrowser for help on using the repository browser.