wt.fv.uploadtocache
Class FileUploadStream

java.lang.Object
  extended byjava.io.InputStream
      extended bywt.fv.uploadtocache.FileUploadStream

public class FileUploadStream
extends InputStream


Field Summary
private static int BUFF_SIZE
           
private  InputStream is
           
private  long isSize
           
private  UploadFileContext uploadFileContext
           
private static String wt_tmp
           
 
Fields inherited from class java.io.InputStream
 
Constructor Summary
private FileUploadStream(InputStream a_is, long a_isSize, UploadFileContext a_UploadFileContext)
           
 
Method Summary
private  InputStream getInputStream()
           
static void moveStream(InputStream from, OutputStream to)
           
static FileUploadStream newFileUploadStream(InputStream is, long isSize)
           
 int read()
           
static void storeStream(ContentHolder holder, ApplicationData appData, ObjectInputStream ois)
           
 void upload(ObjectOutputStream oos)
           
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUFF_SIZE

private static final int BUFF_SIZE
See Also:
Constant Field Values

wt_tmp

private static String wt_tmp

is

private InputStream is

isSize

private long isSize

uploadFileContext

private UploadFileContext uploadFileContext
Constructor Detail

FileUploadStream

private FileUploadStream(InputStream a_is,
                         long a_isSize,
                         UploadFileContext a_UploadFileContext)
Method Detail

newFileUploadStream

public static FileUploadStream newFileUploadStream(InputStream is,
                                                   long isSize)

upload

public void upload(ObjectOutputStream oos)
            throws WTException,
                   IOException
Throws:
WTException
IOException

storeStream

public static void storeStream(ContentHolder holder,
                               ApplicationData appData,
                               ObjectInputStream ois)
                        throws WTException,
                               IOException,
                               ClassNotFoundException
Throws:
WTException
IOException
ClassNotFoundException

read

public int read()
         throws IOException
Throws:
IOException

getInputStream

private InputStream getInputStream()

moveStream

public static void moveStream(InputStream from,
                              OutputStream to)
                       throws IOException
Throws:
IOException