1 23 24 package com.sun.appserv.management.base; 25 26 import java.io.IOException ; 27 import java.io.File ; 28 29 import com.sun.appserv.management.base.XTypes; 30 import com.sun.appserv.management.base.AMX; 31 import com.sun.appserv.management.base.Utility; 32 import com.sun.appserv.management.base.Singleton; 33 34 38 public interface UploadDownloadMgr 39 extends AMX, Utility, Singleton 40 { 41 42 public static final String J2EE_TYPE = XTypes.UPLOAD_DOWNLOAD_MGR; 43 44 53 public Object initiateUpload(String name, long totalSize ) 54 throws IOException ; 55 56 64 public boolean uploadBytes(Object uploadID, byte[] bytes) 65 throws IOException ; 66 67 68 76 public File takeUpload( Object uploadID ); 77 78 79 80 89 public Object initiateDownload( File theFile, boolean deleteWhenDone ) 90 throws IOException ; 91 92 97 public long getDownloadLength( final Object downloadID ); 98 99 102 public int getMaxDownloadChunkSize(); 103 104 119 public byte[] downloadBytes( Object downloadID, int requestSize ) 120 throws IOException ; 121 122 123 124 } 125 | Popular Tags |