1 16 package org.apache.myfaces.custom.fileupload; 17 18 import java.io.IOException ; 19 import java.io.InputStream ; 20 21 22 33 public abstract class UploadedFileDefaultImplBase implements UploadedFile 34 { 35 36 private String _name = null; 37 private String _contentType = null; 38 39 40 protected UploadedFileDefaultImplBase(String name, String contentType) 41 { 42 _name = name; 43 _contentType = contentType; 44 } 45 46 51 public abstract byte[] getBytes() throws IOException ; 52 53 54 60 public abstract InputStream getInputStream() throws IOException ; 61 62 63 66 public String getContentType() 67 { 68 return _contentType; 69 } 70 71 72 75 public String getName() 76 { 77 return _name; 78 } 79 80 81 85 public abstract long getSize(); 86 } 87 | Popular Tags |