1 16 17 package org.springframework.web.multipart; 18 19 import java.io.File ; 20 import java.io.IOException ; 21 import java.io.InputStream ; 22 23 37 public interface MultipartFile { 38 39 43 String getName(); 44 45 52 String getOriginalFilename(); 53 54 59 String getContentType(); 60 61 65 boolean isEmpty(); 66 67 71 long getSize(); 72 73 78 byte[] getBytes() throws IOException ; 79 80 86 InputStream getInputStream() throws IOException ; 87 88 101 void transferTo(File dest) throws IOException , IllegalStateException ; 102 103 } 104 | Popular Tags |