1 18 19 20 package org.apache.struts.upload; 21 22 23 import java.io.InputStream ; 24 import java.io.IOException ; 25 import java.io.FileNotFoundException ; 26 27 28 33 public interface FormFile 34 { 35 40 public String getContentType(); 41 42 47 public void setContentType(String contentType); 48 49 54 public int getFileSize(); 55 56 61 public void setFileSize(int fileSize); 62 63 69 public String getFileName(); 70 71 76 public void setFileName(String fileName); 77 78 90 public byte[] getFileData() 91 throws FileNotFoundException , IOException ; 92 93 101 public InputStream getInputStream() 102 throws FileNotFoundException , IOException ; 103 104 108 public void destroy(); 109 } 110 | Popular Tags |