<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_34) on Wed Oct 10 14:15:23 CST 2012 -->
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>
MultipartUploadMission
</TITLE>

<META NAME="date" CONTENT="2012-10-10">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">

<SCRIPT type="text/javascript">
function windowTitle()
{
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="MultipartUploadMission";
    }
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>

</HEAD>

<BODY BGCOLOR="white" onload="windowTitle();">
<HR>


<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="跳过导航链接"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>概述</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>软件包</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>类</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/MultipartUploadMission.html"><FONT CLASS="NavBarFont1"><B>使用</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>树</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>已过时</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>索引</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>帮助</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../com/aliyun/android/util/MD5Util.html" title="com.aliyun.android.util 中的类"><B>上一个类</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/aliyun/android/util/Pagination.html" title="com.aliyun.android.util 中的类"><B>下一个类</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?com/aliyun/android/util/MultipartUploadMission.html" target="_top"><B>框架</B></A>  &nbsp;
&nbsp;<A HREF="MultipartUploadMission.html" target="_top"><B>无框架</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>所有类</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>所有类</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  摘要：&nbsp;嵌套&nbsp;|&nbsp;<A HREF="#field_summary">字段</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">构造方法</A>&nbsp;|&nbsp;<A HREF="#method_summary">方法</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
详细信息：&nbsp;<A HREF="#field_detail">字段</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">构造方法</A>&nbsp;|&nbsp;<A HREF="#method_detail">方法</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.aliyun.android.util</FONT>
<BR>
类 MultipartUploadMission</H2>
<PRE>
java.lang.Object
  <IMG SRC="../../../../resources/inherit.gif" ALT="继承者 "><B>com.aliyun.android.util.MultipartUploadMission</B>
</PRE>
<HR>
<DL>
<DT><PRE>public class <B>MultipartUploadMission</B><DT>extends java.lang.Object</DL>
</PRE>

<P>
分组上传任务
<P>

<P>
<DL>
<DT><B>作者：</B></DT>
  <DD>Michael</DD>
</DL>
<HR>

<P>
<!-- =========== FIELD SUMMARY =========== -->

<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>字段摘要</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.Integer</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/aliyun/android/util/MultipartUploadMission.html#DEFAULT_MAX_PARTS">DEFAULT_MAX_PARTS</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
</TABLE>
&nbsp;
<!-- ======== CONSTRUCTOR SUMMARY ======== -->

<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>构造方法摘要</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/aliyun/android/util/MultipartUploadMission.html#MultipartUploadMission(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.Integer)">MultipartUploadMission</A></B>(java.lang.String&nbsp;accessId,
                       java.lang.String&nbsp;accessKey,
                       java.lang.String&nbsp;bucketName,
                       java.lang.String&nbsp;targetObjectKey,
                       java.lang.String&nbsp;localFile,
                       java.lang.Integer&nbsp;partSize)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;构造新实例</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>方法摘要</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/aliyun/android/util/MultipartUploadMission.html#abort()">abort</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;取消上传，使用MultipartUploadAbortTask，如果其所属的某些 Part 仍然在上传， 那么这次中止操作将无法删除这些
 Part。</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/aliyun/android/oss/model/OSSObject.html" title="com.aliyun.android.oss.model 中的类">OSSObject</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/aliyun/android/util/MultipartUploadMission.html#complete()">complete</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;结束分组上传</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/aliyun/android/util/MultipartUploadMission.html#getAccessId()">getAccessId</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/aliyun/android/util/MultipartUploadMission.html#getAccessKey()">getAccessKey</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/aliyun/android/util/MultipartUploadMission.html#getBucketName()">getBucketName</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.util.Date</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/aliyun/android/util/MultipartUploadMission.html#getInitTime()">getInitTime</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/aliyun/android/util/MultipartUploadMission.html#getLocalFile()">getLocalFile</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.Integer</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/aliyun/android/util/MultipartUploadMission.html#getPartSize()">getPartSize</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/aliyun/android/util/MultipartUploadMission.html#getTargetObjectKey()">getTargetObjectKey</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/aliyun/android/util/MultipartUploadMission.html#getUploadId()">getUploadId</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/aliyun/android/util/MultipartUploadMission.html#init()">init</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;使用MultipartUploadInitTask进行初始化
 然后读取文件，并根据partSize进行截断，填充数据和partNumber到parts中</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/aliyun/android/util/Pagination.html" title="com.aliyun.android.util 中的类">Pagination</A>&lt;<A HREF="../../../../com/aliyun/android/oss/model/Part.html" title="com.aliyun.android.oss.model 中的类">Part</A>&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/aliyun/android/util/MultipartUploadMission.html#listSuccessParts()">listSuccessParts</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;罗列已经上传成功的文件块，默认每页1000个Part</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/aliyun/android/util/Pagination.html" title="com.aliyun.android.util 中的类">Pagination</A>&lt;<A HREF="../../../../com/aliyun/android/oss/model/Part.html" title="com.aliyun.android.oss.model 中的类">Part</A>&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/aliyun/android/util/MultipartUploadMission.html#listSuccessParts(java.lang.Integer)">listSuccessParts</A></B>(java.lang.Integer&nbsp;maxParts)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;罗列已经上传成功的文件块</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/aliyun/android/oss/model/OSSObject.html" title="com.aliyun.android.oss.model 中的类">OSSObject</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/aliyun/android/util/MultipartUploadMission.html#quickUpload()">quickUpload</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;简单的分组上传方式</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/aliyun/android/util/MultipartUploadMission.html#setAccessId(java.lang.String)">setAccessId</A></B>(java.lang.String&nbsp;accessId)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/aliyun/android/util/MultipartUploadMission.html#setAccessKey(java.lang.String)">setAccessKey</A></B>(java.lang.String&nbsp;accessKey)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/aliyun/android/util/MultipartUploadMission.html#setBucketName(java.lang.String)">setBucketName</A></B>(java.lang.String&nbsp;bucketName)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/aliyun/android/util/MultipartUploadMission.html#setInitTime(java.util.Date)">setInitTime</A></B>(java.util.Date&nbsp;initTime)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/aliyun/android/util/MultipartUploadMission.html#setLocalFile(java.lang.String)">setLocalFile</A></B>(java.lang.String&nbsp;localFile)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/aliyun/android/util/MultipartUploadMission.html#setPartSize(java.lang.Integer)">setPartSize</A></B>(java.lang.Integer&nbsp;partSize)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/aliyun/android/util/MultipartUploadMission.html#setTargetObjectKey(java.lang.String)">setTargetObjectKey</A></B>(java.lang.String&nbsp;targetObjectKey)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/aliyun/android/util/MultipartUploadMission.html#setUploadId(java.lang.String)">setUploadId</A></B>(java.lang.String&nbsp;uploadId)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.util.List&lt;<A HREF="../../../../com/aliyun/android/oss/model/Part.html" title="com.aliyun.android.oss.model 中的类">Part</A>&gt;</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/aliyun/android/util/MultipartUploadMission.html#uploadFile()">uploadFile</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;切割文件并进行上传
 由于分块上传的文件往往较手机内存来说很大，所以不能全部读入到内存中，需要切割一块后就直接上传，然后释放内存</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/aliyun/android/util/MultipartUploadMission.html#uploadPart(com.aliyun.android.oss.model.Part)">uploadPart</A></B>(<A HREF="../../../../com/aliyun/android/oss/model/Part.html" title="com.aliyun.android.oss.model 中的类">Part</A>&nbsp;part)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;调用UploadPartTask上传每一块文件，并对parts进行etag填充。</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>从类 java.lang.Object 继承的方法</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ FIELD DETAIL =========== -->

<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>字段详细信息</B></FONT></TH>
</TR>
</TABLE>

<A NAME="DEFAULT_MAX_PARTS"><!-- --></A><H3>
DEFAULT_MAX_PARTS</H3>
<PRE>
public static java.lang.Integer <B>DEFAULT_MAX_PARTS</B></PRE>
<DL>
<DL>
</DL>
</DL>

<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>构造方法详细信息</B></FONT></TH>
</TR>
</TABLE>

<A NAME="MultipartUploadMission(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.Integer)"><!-- --></A><H3>
MultipartUploadMission</H3>
<PRE>
public <B>MultipartUploadMission</B>(java.lang.String&nbsp;accessId,
                              java.lang.String&nbsp;accessKey,
                              java.lang.String&nbsp;bucketName,
                              java.lang.String&nbsp;targetObjectKey,
                              java.lang.String&nbsp;localFile,
                              java.lang.Integer&nbsp;partSize)</PRE>
<DL>
<DD>构造新实例
<P>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>方法详细信息</B></FONT></TH>
</TR>
</TABLE>

<A NAME="init()"><!-- --></A><H3>
init</H3>
<PRE>
public void <B>init</B>()</PRE>
<DL>
<DD>使用MultipartUploadInitTask进行初始化
 然后读取文件，并根据partSize进行截断，填充数据和partNumber到parts中
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="uploadPart(com.aliyun.android.oss.model.Part)"><!-- --></A><H3>
uploadPart</H3>
<PRE>
public void <B>uploadPart</B>(<A HREF="../../../../com/aliyun/android/oss/model/Part.html" title="com.aliyun.android.oss.model 中的类">Part</A>&nbsp;part)</PRE>
<DL>
<DD>调用UploadPartTask上传每一块文件，并对parts进行etag填充。这样用户可以单独起线程去完成每一块的上传。
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="complete()"><!-- --></A><H3>
complete</H3>
<PRE>
public <A HREF="../../../../com/aliyun/android/oss/model/OSSObject.html" title="com.aliyun.android.oss.model 中的类">OSSObject</A> <B>complete</B>()</PRE>
<DL>
<DD>结束分组上传
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="abort()"><!-- --></A><H3>
abort</H3>
<PRE>
public boolean <B>abort</B>()</PRE>
<DL>
<DD>取消上传，使用MultipartUploadAbortTask，如果其所属的某些 Part 仍然在上传， 那么这次中止操作将无法删除这些
 Part。所以如果存在并发访问的情况,为了彻底释放OSS 上的空间,需要调用几次 Abort Multipart Upload 接口。
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="listSuccessParts()"><!-- --></A><H3>
listSuccessParts</H3>
<PRE>
public <A HREF="../../../../com/aliyun/android/util/Pagination.html" title="com.aliyun.android.util 中的类">Pagination</A>&lt;<A HREF="../../../../com/aliyun/android/oss/model/Part.html" title="com.aliyun.android.oss.model 中的类">Part</A>&gt; <B>listSuccessParts</B>()</PRE>
<DL>
<DD>罗列已经上传成功的文件块，默认每页1000个Part
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="listSuccessParts(java.lang.Integer)"><!-- --></A><H3>
listSuccessParts</H3>
<PRE>
public <A HREF="../../../../com/aliyun/android/util/Pagination.html" title="com.aliyun.android.util 中的类">Pagination</A>&lt;<A HREF="../../../../com/aliyun/android/oss/model/Part.html" title="com.aliyun.android.oss.model 中的类">Part</A>&gt; <B>listSuccessParts</B>(java.lang.Integer&nbsp;maxParts)</PRE>
<DL>
<DD>罗列已经上传成功的文件块
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="quickUpload()"><!-- --></A><H3>
quickUpload</H3>
<PRE>
public <A HREF="../../../../com/aliyun/android/oss/model/OSSObject.html" title="com.aliyun.android.oss.model 中的类">OSSObject</A> <B>quickUpload</B>()</PRE>
<DL>
<DD>简单的分组上传方式
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="uploadFile()"><!-- --></A><H3>
uploadFile</H3>
<PRE>
public java.util.List&lt;<A HREF="../../../../com/aliyun/android/oss/model/Part.html" title="com.aliyun.android.oss.model 中的类">Part</A>&gt; <B>uploadFile</B>()</PRE>
<DL>
<DD>切割文件并进行上传
 由于分块上传的文件往往较手机内存来说很大，所以不能全部读入到内存中，需要切割一块后就直接上传，然后释放内存
<P>
<DD><DL>

<DT><B>抛出：</B>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="getBucketName()"><!-- --></A><H3>
getBucketName</H3>
<PRE>
public java.lang.String <B>getBucketName</B>()</PRE>
<DL>
<DD><DL>

<DT><B>返回：</B><DD>the bucketName</DL>
</DD>
</DL>
<HR>

<A NAME="setBucketName(java.lang.String)"><!-- --></A><H3>
setBucketName</H3>
<PRE>
public void <B>setBucketName</B>(java.lang.String&nbsp;bucketName)</PRE>
<DL>
<DD><DL>
<DT><B>参数：</B><DD><CODE>bucketName</CODE> - the bucketName to set</DL>
</DD>
</DL>
<HR>

<A NAME="getTargetObjectKey()"><!-- --></A><H3>
getTargetObjectKey</H3>
<PRE>
public java.lang.String <B>getTargetObjectKey</B>()</PRE>
<DL>
<DD><DL>

<DT><B>返回：</B><DD>the targetObjectKey</DL>
</DD>
</DL>
<HR>

<A NAME="setTargetObjectKey(java.lang.String)"><!-- --></A><H3>
setTargetObjectKey</H3>
<PRE>
public void <B>setTargetObjectKey</B>(java.lang.String&nbsp;targetObjectKey)</PRE>
<DL>
<DD><DL>
<DT><B>参数：</B><DD><CODE>targetObjectKey</CODE> - the targetObjectKey to set</DL>
</DD>
</DL>
<HR>

<A NAME="getLocalFile()"><!-- --></A><H3>
getLocalFile</H3>
<PRE>
public java.lang.String <B>getLocalFile</B>()</PRE>
<DL>
<DD><DL>

<DT><B>返回：</B><DD>the localFile</DL>
</DD>
</DL>
<HR>

<A NAME="setLocalFile(java.lang.String)"><!-- --></A><H3>
setLocalFile</H3>
<PRE>
public void <B>setLocalFile</B>(java.lang.String&nbsp;localFile)</PRE>
<DL>
<DD><DL>
<DT><B>参数：</B><DD><CODE>localFile</CODE> - the localFile to set</DL>
</DD>
</DL>
<HR>

<A NAME="getUploadId()"><!-- --></A><H3>
getUploadId</H3>
<PRE>
public java.lang.String <B>getUploadId</B>()</PRE>
<DL>
<DD><DL>

<DT><B>返回：</B><DD>the uploadId</DL>
</DD>
</DL>
<HR>

<A NAME="setUploadId(java.lang.String)"><!-- --></A><H3>
setUploadId</H3>
<PRE>
public void <B>setUploadId</B>(java.lang.String&nbsp;uploadId)</PRE>
<DL>
<DD><DL>
<DT><B>参数：</B><DD><CODE>uploadId</CODE> - the uploadId to set</DL>
</DD>
</DL>
<HR>

<A NAME="getInitTime()"><!-- --></A><H3>
getInitTime</H3>
<PRE>
public java.util.Date <B>getInitTime</B>()</PRE>
<DL>
<DD><DL>

<DT><B>返回：</B><DD>the initTime</DL>
</DD>
</DL>
<HR>

<A NAME="setInitTime(java.util.Date)"><!-- --></A><H3>
setInitTime</H3>
<PRE>
public void <B>setInitTime</B>(java.util.Date&nbsp;initTime)</PRE>
<DL>
<DD><DL>
<DT><B>参数：</B><DD><CODE>initTime</CODE> - the initTime to set</DL>
</DD>
</DL>
<HR>

<A NAME="getPartSize()"><!-- --></A><H3>
getPartSize</H3>
<PRE>
public java.lang.Integer <B>getPartSize</B>()</PRE>
<DL>
<DD><DL>

<DT><B>返回：</B><DD>the partSize</DL>
</DD>
</DL>
<HR>

<A NAME="setPartSize(java.lang.Integer)"><!-- --></A><H3>
setPartSize</H3>
<PRE>
public void <B>setPartSize</B>(java.lang.Integer&nbsp;partSize)</PRE>
<DL>
<DD><DL>
<DT><B>参数：</B><DD><CODE>partSize</CODE> - the partSize to set</DL>
</DD>
</DL>
<HR>

<A NAME="getAccessId()"><!-- --></A><H3>
getAccessId</H3>
<PRE>
public java.lang.String <B>getAccessId</B>()</PRE>
<DL>
<DD><DL>

<DT><B>返回：</B><DD>the accessId</DL>
</DD>
</DL>
<HR>

<A NAME="setAccessId(java.lang.String)"><!-- --></A><H3>
setAccessId</H3>
<PRE>
public void <B>setAccessId</B>(java.lang.String&nbsp;accessId)</PRE>
<DL>
<DD><DL>
<DT><B>参数：</B><DD><CODE>accessId</CODE> - the accessId to set</DL>
</DD>
</DL>
<HR>

<A NAME="getAccessKey()"><!-- --></A><H3>
getAccessKey</H3>
<PRE>
public java.lang.String <B>getAccessKey</B>()</PRE>
<DL>
<DD><DL>

<DT><B>返回：</B><DD>the accessKey</DL>
</DD>
</DL>
<HR>

<A NAME="setAccessKey(java.lang.String)"><!-- --></A><H3>
setAccessKey</H3>
<PRE>
public void <B>setAccessKey</B>(java.lang.String&nbsp;accessKey)</PRE>
<DL>
<DD><DL>
<DT><B>参数：</B><DD><CODE>accessKey</CODE> - the accessKey to set</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="跳过导航链接"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>概述</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>软件包</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>类</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/MultipartUploadMission.html"><FONT CLASS="NavBarFont1"><B>使用</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>树</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>已过时</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>索引</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>帮助</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../com/aliyun/android/util/MD5Util.html" title="com.aliyun.android.util 中的类"><B>上一个类</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/aliyun/android/util/Pagination.html" title="com.aliyun.android.util 中的类"><B>下一个类</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?com/aliyun/android/util/MultipartUploadMission.html" target="_top"><B>框架</B></A>  &nbsp;
&nbsp;<A HREF="MultipartUploadMission.html" target="_top"><B>无框架</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>所有类</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>所有类</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  摘要：&nbsp;嵌套&nbsp;|&nbsp;<A HREF="#field_summary">字段</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">构造方法</A>&nbsp;|&nbsp;<A HREF="#method_summary">方法</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
详细信息：&nbsp;<A HREF="#field_detail">字段</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">构造方法</A>&nbsp;|&nbsp;<A HREF="#method_detail">方法</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>

</BODY>
</HTML>
