wt.fv.uploadtocache
Class DoUploadToCache_Client

java.lang.Object
  extended bywt.fv.uploadtocache.DoUploadToCache_Client

public class DoUploadToCache_Client
extends Object


Constructor Summary
DoUploadToCache_Client()
           
 
Method Summary
static CachedContentDescriptor[] chunk_doUploadToCache_Client(CacheDescriptor cacheDescr, InputStream[] contentStreams, long[] contentSizes, MultiPartPostListener uploadListener)
           
private static long[] chunk_Upload(URL url, String masterUrl, byte[] contentChunk, long[] byteIdx, long contentFileName, long fileSize, long realFolderId)
           
static void copyStream(InputStream is, OutputStream os)
           
private static void copyStream(InputStream is, OutputStream os, MultiPartPostListener uploadListener, int curFileNum, int n)
           
static CachedContentDescriptor[] doUploadToCache_Client(CacheDescriptor cacheDescr, InputStream[] contentStreams, long[] contentSizes)
           
static CachedContentDescriptor[] doUploadToCache_Client(CacheDescriptor cacheDescr, InputStream[] contentStreams, long[] contentSizes, MultiPartPostListener uploadListener)
           
static CachedContentDescriptor[] doUploadToChache_Client(CacheDescriptor cacheDescr, InputStream[] contentStreams, long[] contentSizes)
           
private static void PP(String s)
           
private static long[] readUploadResultFromConnectionWithReplica(URLConnection con)
           
private static void writeInfoForUploadInConnectionWithReplica(URLConnection con, InputStream[] contentStreams, String masterUrl, long[] contentSizes, long[] contentStreamIds, long[] contentFileNames, MultiPartPostListener uploadListener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoUploadToCache_Client

public DoUploadToCache_Client()
Method Detail

doUploadToCache_Client

public static CachedContentDescriptor[] doUploadToCache_Client(CacheDescriptor cacheDescr,
                                                               InputStream[] contentStreams,
                                                               long[] contentSizes)
                                                        throws WTException
Throws:
WTException

doUploadToChache_Client

public static CachedContentDescriptor[] doUploadToChache_Client(CacheDescriptor cacheDescr,
                                                                InputStream[] contentStreams,
                                                                long[] contentSizes)
                                                         throws WTException
Throws:
WTException

doUploadToCache_Client

public static CachedContentDescriptor[] doUploadToCache_Client(CacheDescriptor cacheDescr,
                                                               InputStream[] contentStreams,
                                                               long[] contentSizes,
                                                               MultiPartPostListener uploadListener)
                                                        throws WTException
Throws:
WTException

writeInfoForUploadInConnectionWithReplica

private static void writeInfoForUploadInConnectionWithReplica(URLConnection con,
                                                              InputStream[] contentStreams,
                                                              String masterUrl,
                                                              long[] contentSizes,
                                                              long[] contentStreamIds,
                                                              long[] contentFileNames,
                                                              MultiPartPostListener uploadListener)
                                                       throws WTException
Throws:
WTException

readUploadResultFromConnectionWithReplica

private static long[] readUploadResultFromConnectionWithReplica(URLConnection con)
                                                         throws WTException
Throws:
WTException

copyStream

private static final void copyStream(InputStream is,
                                     OutputStream os,
                                     MultiPartPostListener uploadListener,
                                     int curFileNum,
                                     int n)
                              throws IOException
Throws:
IOException

copyStream

public static final void copyStream(InputStream is,
                                    OutputStream os)
                             throws IOException
Throws:
IOException

PP

private static void PP(String s)

chunk_doUploadToCache_Client

public static CachedContentDescriptor[] chunk_doUploadToCache_Client(CacheDescriptor cacheDescr,
                                                                     InputStream[] contentStreams,
                                                                     long[] contentSizes,
                                                                     MultiPartPostListener uploadListener)
                                                              throws WTException
Throws:
WTException

chunk_Upload

private static long[] chunk_Upload(URL url,
                                   String masterUrl,
                                   byte[] contentChunk,
                                   long[] byteIdx,
                                   long contentFileName,
                                   long fileSize,
                                   long realFolderId)
                            throws WTException
Throws:
WTException